Decompiled source of DesolateReefStage5 v1.0.0
CorruptsAllVoidStages.dll
Decompiled 4 days ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using AK.Wwise; using BepInEx; using HG; using HG.Reflection; using Microsoft.CodeAnalysis; using On.RoR2; using R2API; using RoR2; using RoR2.CharacterAI; using RoR2.ContentManagement; using RoR2.EntitlementManagement; using RoR2.ExpansionManagement; using RoR2.Navigation; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Networking; using UnityEngine.Rendering.PostProcessing; using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: OptIn] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("CorruptsAllVoidStages")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("CorruptsAllVoidStages")] [assembly: AssemblyTitle("CorruptsAllVoidStages")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace CorruptsAllVoidStages { public static class Assets { public static ExpansionDef NewVoidStageHiddenExpansion { get; private set; } public static Material matVoidTerrainNew { get; private set; } public static Material matVoidMetalOvergrown { get; private set; } public static GameObject VoidCoralLit { get; private set; } public static GameObject UnderwaterLemurianMaster { get; private set; } public static UnlockableDef[] NewtStatueUnlockables { get; private set; } public static void SetNewVoidStageHiddenExpansion(EntitlementDef entitlementDLC1) { NewVoidStageHiddenExpansion = ScriptableObject.CreateInstance<ExpansionDef>(); ((Object)NewVoidStageHiddenExpansion).name = "groovesalad.NewVoidStageHiddenExpansion"; NewVoidStageHiddenExpansion.requiredEntitlement = entitlementDLC1; NewVoidStageHiddenExpansion.nameToken = string.Empty; NewVoidStageHiddenExpansion.descriptionToken = string.Empty; } public static void SetMatVoidTerrainNew(Material matVoidTerrain, Texture texSand1) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) matVoidTerrainNew = new Material(matVoidTerrain); matVoidTerrainNew.SetTexture("_RedChannelTopTex", texSand1); matVoidTerrainNew.SetTextureScale("_RedChannelTopTex", new Vector2(2f, 2f)); matVoidTerrainNew.SetFloat("_RedChannelBias", 2.45f); matVoidTerrainNew.SetFloat("_GreenChannelBias", 0.037f); } public static void SetMatVoidMetalOvergrown(Material matVoidMetalTrimGrassyVertexColorsOnly, Texture texSand1, Texture texVoidMoss) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) matVoidMetalOvergrown = new Material(matVoidMetalTrimGrassyVertexColorsOnly); matVoidMetalOvergrown.SetColor("_Color", Color32.op_Implicit(new Color32((byte)155, (byte)155, (byte)155, byte.MaxValue))); matVoidMetalOvergrown.SetFloat("_SpecularStrength", 0.06365327f); matVoidMetalOvergrown.SetFloat("_SpecularExponent", 0.7722783f); matVoidMetalOvergrown.SetTexture("_SnowTex", texSand1); matVoidMetalOvergrown.SetFloat("_SnowBias", 0.05808783f); matVoidMetalOvergrown.SetFloat("_Depth", 0.5279048f); matVoidMetalOvergrown.EnableKeyword("DIRTON"); matVoidMetalOvergrown.SetTexture("_DirtTex", texVoidMoss); matVoidMetalOvergrown.SetFloat("_DirtBias", 0.5306497f); } public static void SetVoidCoralLit(GameObject SPCoralMDLit, Texture texRampVoidFlatCoral, Texture texVoidMoss) { //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown //IL_00ac: Unknown result type (might be due to invalid IL or missing references) VoidCoralLit = PrefabAPI.InstantiateClone(SPCoralMDLit, "VoidCoralLit", false); Light componentInChildren = VoidCoralLit.GetComponentInChildren<Light>(); if (Object.op_Implicit((Object)(object)componentInChildren)) { componentInChildren.intensity = 4f; componentInChildren.range = 15f; } Transform obj = VoidCoralLit.transform.Find("meshSPCoralString"); if (obj != null) { ((Component)obj).gameObject.SetActive(false); } MeshRenderer val = default(MeshRenderer); if (VoidCoralLit.TryGetComponent<MeshRenderer>(ref val)) { ((Renderer)val).sharedMaterial = new Material(((Renderer)val).sharedMaterial); ((Renderer)val).sharedMaterial.SetFloat("_EmPower", 0.5f); ((Renderer)val).sharedMaterial.SetColor("_Color", Color.white); ((Renderer)val).sharedMaterial.SetTexture("_MainTex", texRampVoidFlatCoral); ((Renderer)val).sharedMaterial.SetTexture("_BlueChannelTex", texVoidMoss); } } public static void SetUnderwaterLemurianMaster(GameObject LemurianMaster) { UnderwaterLemurianMaster = PrefabAPI.InstantiateClone(LemurianMaster, "UnderwaterLemurianMaster", true); AISkillDriver[] components = UnderwaterLemurianMaster.GetComponents<AISkillDriver>(); AISkillDriver val = ((IEnumerable<AISkillDriver>)components).FirstOrDefault((Func<AISkillDriver, bool>)((AISkillDriver x) => x.customName == "StrafeAndShoot")); if (Object.op_Implicit((Object)(object)val)) { Object.DestroyImmediate((Object)(object)val); } AISkillDriver val2 = ((IEnumerable<AISkillDriver>)components).FirstOrDefault((Func<AISkillDriver, bool>)((AISkillDriver x) => x.customName == "StrafeIdley")); if (Object.op_Implicit((Object)(object)val2)) { Object.DestroyImmediate((Object)(object)val2); } } public static void SetNewtStatueUnlockables() { NewtStatueUnlockables = (UnlockableDef[])(object)new UnlockableDef[3]; for (int i = 0; i < NewtStatueUnlockables.Length; i++) { UnlockableDef val = ScriptableObject.CreateInstance<UnlockableDef>(); val.cachedName = "NewtStatue.desolatereef." + i; val.nameToken = "UNLOCKABLE_NEWTSTATUE"; val.hidden = true; NewtStatueUnlockables[i] = val; } } } [BepInPlugin("com.groovesalad.DesolateReef", "DesolateReef", "1.1.1")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class CorruptsAllVoidStages : BaseUnityPlugin, IContentPackProvider { public bool disableOcclusionCulling; public AssetBundleCreateRequest desolateReefAssets; public ContentPack contentPack; public RuntimeVoidStageTemplate voidStageTemplate; public string identifier => "groovesalad.CorruptsAllVoidStages"; public void Awake() { //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown disableOcclusionCulling = ((BaseUnityPlugin)this).Config.Bind<bool>("Optimization", "Disable Occlusion Culling", true, "Disables occlusion culling on Desolate Reef. Enabling culling will slightly improve performance but may cause flickering in certain areas of the map.").Value; desolateReefAssets = AssetBundle.LoadFromFileAsync(Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "desolatereefassets")); contentPack = new ContentPack { identifier = identifier }; Language.Init(); ContentManager.collectContentPackProviders += (CollectContentPackProvidersDelegate)delegate(AddContentPackProviderDelegate add) { add.Invoke((IContentPackProvider)(object)this); }; RuleDef.FromExpansion += new hook_FromExpansion(RuleDef_FromExpansion); RuleDef.AvailableChoiceCount += new hook_AvailableChoiceCount(RuleDef_AvailableChoiceCount); SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; Run.onRunStartGlobal += Run_onRunStartGlobal; if (disableOcclusionCulling) { CameraRigController.onCameraEnableGlobal += CameraRigController_onCameraEnableGlobal; } } public IEnumerator LoadStaticContentAsync(LoadStaticContentAsyncArgs args) { AsyncOperationHandle<EntitlementDef> entitlementDLC1; AsyncOperationHandle<SceneDef> voidstage; AsyncOperationHandle<SceneCollection> sgStage5; AsyncOperationHandle<SceneCollection> sgStage6; AsyncOperationHandle<MusicTrackDef> soundlessDepths; AsyncOperationHandle<MusicTrackDef> thermodynamicEquilibrium; AsyncOperationHandle<Material> matBazaarSeerGolemplains; AsyncOperationHandle<Material> matVoidTerrain; AsyncOperationHandle<Texture> texSand1; AsyncOperationHandle<Material> matVoidMetalTrimGrassyVertexColorsOnly; AsyncOperationHandle<Texture> texVoidMoss; AsyncOperationHandle<GameObject> SPCoralMDLit; AsyncOperationHandle<Texture> texRampVoidFlatCoral; AsyncOperationHandle<GameObject> VoidStageDiorama; AsyncOperationHandle<Material> matVoidTrim; AsyncOperationHandle<GameObject> LemurianMaster; AsyncOperationHandle<NodeGraph> voidstage_GroundNodeGraph; AsyncOperationHandle<NodeGraph> voidstage_AirNodeGraph; AsyncOperationHandle<UnlockableDef> Logs_Stages_voidstage; AsyncOperationHandle<IList<AsyncOperationHandle>> groupOp = Addressables.ResourceManager.CreateGenericGroupOperation(new List<AsyncOperationHandle> { CreateAddressableOp<EntitlementDef>("RoR2/DLC1/Common/entitlementDLC1.asset", out entitlementDLC1), CreateAddressableOp<SceneDef>("RoR2/DLC1/voidstage/voidstage.asset", out voidstage), CreateAddressableOp<SceneCollection>("RoR2/Base/SceneGroups/sgStage5.asset", out sgStage5), CreateAddressableOp<SceneCollection>("RoR2/Base/SceneGroups/sgStage1.asset", out sgStage6), CreateAddressableOp<MusicTrackDef>("RoR2/DLC1/Common/muGameplayDLC1_08.asset", out soundlessDepths), CreateAddressableOp<MusicTrackDef>("RoR2/DLC1/Common/muBossfightDLC1_12.asset", out thermodynamicEquilibrium), CreateAddressableOp<Material>("RoR2/Base/bazaar/matBazaarSeerGolemplains.mat", out matBazaarSeerGolemplains), CreateAddressableOp<Material>("RoR2/DLC1/voidstage/matVoidTerrain.mat", out matVoidTerrain), CreateAddressableOp<Texture>("RoR2/Base/Common/Props/texSand1.png", out texSand1), CreateAddressableOp<Material>("RoR2/DLC1/voidstage/matVoidMetalTrimGrassyVertexColorsOnly.mat", out matVoidMetalTrimGrassyVertexColorsOnly), CreateAddressableOp<Texture>("RoR2/DLC1/voidstage/texVoidMoss.tga", out texVoidMoss), CreateAddressableOp<GameObject>("RoR2/DLC1/sulfurpools/SPCoralMDLit.prefab", out SPCoralMDLit), CreateAddressableOp<Texture>("RoR2/DLC1/Common/ColorRamps/texRampVoidFlatCoral.png", out texRampVoidFlatCoral), CreateAddressableOp<GameObject>("RoR2/DLC1/voidstage/VoidStageDiorama.prefab", out VoidStageDiorama), CreateAddressableOp<Material>("RoR2/DLC1/voidstage/matVoidTrim.mat", out matVoidTrim), CreateAddressableOp<GameObject>("RoR2/Base/Lemurian/LemurianMaster.prefab", out LemurianMaster), CreateAddressableOp<NodeGraph>("RoR2/DLC1/voidstage/voidstage_GroundNodeGraph.asset", out voidstage_GroundNodeGraph), CreateAddressableOp<NodeGraph>("RoR2/DLC1/voidstage/voidstage_AirNodeGraph.asset", out voidstage_AirNodeGraph), CreateAddressableOp<UnlockableDef>("RoR2/DLC1/voidstage/Logs.Stages.voidstage.asset", out Logs_Stages_voidstage) }, true); yield return desolateReefAssets; AssetBundleRequest texDesolateReefPreview = desolateReefAssets.assetBundle.LoadAssetAsync<Sprite>("texDesolateReefPreview"); AssetBundleRequest texDesolateReefSeerPreview = desolateReefAssets.assetBundle.LoadAssetAsync<Sprite>("texDesolateReefSeerPreview"); while (!groupOp.IsDone) { args.ReportProgress(groupOp.PercentComplete); yield return null; } Assets.SetNewVoidStageHiddenExpansion(entitlementDLC1.Result); voidstage.Result.requiredExpansion = Assets.NewVoidStageHiddenExpansion; voidstage.Result.sceneType = (SceneType)1; voidstage.Result.blockOrbitalSkills = false; voidstage.Result.destinationsGroup = sgStage6.Result; ref SceneEntry[] sceneEntries = ref sgStage5.Result._sceneEntries; SceneEntry val = new SceneEntry { sceneDef = voidstage.Result }; ((SceneEntry)(ref val)).weight = 1f; ArrayUtils.ArrayAppend<SceneEntry>(ref sceneEntries, ref val); voidstage.Result.destinations = Array.Empty<SceneDef>(); voidstage.Result.stageOrder = 5; voidstage.Result.validForRandomSelection = true; voidstage.Result.mainTrack = soundlessDepths.Result; voidstage.Result.bossTrack = thermodynamicEquilibrium.Result; voidstage.Result.nameToken = "GS_MAP_DESOLATEREEF_TITLE"; voidstage.Result.subtitleToken = "GS_MAP_DESOLATEREEF_SUBTITLE"; voidstage.Result.loreToken = "GS_MAP_DESOLATEREEF_LORE"; voidstage.Result.portalSelectionMessageString = "GS_BAZAAR_SEER_DESOLATEREEF"; Assets.SetMatVoidTerrainNew(matVoidTerrain.Result, texSand1.Result); Assets.SetMatVoidMetalOvergrown(matVoidMetalTrimGrassyVertexColorsOnly.Result, texSand1.Result, texVoidMoss.Result); Assets.SetVoidCoralLit(SPCoralMDLit.Result, texRampVoidFlatCoral.Result, texVoidMoss.Result); voidstage.Result.dioramaPrefab = PrefabAPI.InstantiateClone(VoidStageDiorama.Result, "DesolateReefDiorama", false); ModelPanelParameters modelPanelParameters = default(ModelPanelParameters); if (voidstage.Result.dioramaPrefab.TryGetComponent<ModelPanelParameters>(ref modelPanelParameters)) { modelPanelParameters.minDistance = 20f; modelPanelParameters.maxDistance = 200f; } if (voidstage.Result.dioramaPrefab.transform.TryFind("Holder", out var holder)) { ((Component)holder).transform.localScale = Vector3.one * 4f; Transform obj = ((Component)holder).transform.Find("FX"); if (obj != null) { ((Component)obj).gameObject.SetActive(false); } Transform obj2 = ((Component)holder).transform.Find("Lights"); if (obj2 != null) { ((Component)obj2).gameObject.SetActive(false); } Transform obj3 = ((Component)holder).transform.Find("VoidWhale"); if (obj3 != null) { ((Component)obj3).gameObject.SetActive(false); } if (holder.TryFind("mdlVoidStageDiorama/mdlVoidStageDioramaBase", out var mdlVoidStageDioramaBase)) { Transform obj4 = ((Component)mdlVoidStageDioramaBase).transform.Find("dioramawater"); if (obj4 != null) { ((Component)obj4).gameObject.SetActive(false); } Transform obj5 = ((Component)mdlVoidStageDioramaBase).transform.Find("mdlVoidMetalSpiralWalkway.001/mdlPortalFrame.001"); if (obj5 != null) { ((Component)obj5).gameObject.SetActive(false); } Transform obj6 = ((Component)mdlVoidStageDioramaBase).transform.Find("mdlVoidSupportPlatform.004"); if (obj6 != null) { ((Component)obj6).gameObject.SetActive(false); } Transform obj7 = ((Component)mdlVoidStageDioramaBase).transform.Find("mdlVoidEastPlatform.001/Pipe"); if (obj7 != null) { ((Component)obj7).gameObject.SetActive(false); } if (((Component)mdlVoidStageDioramaBase).transform.TryFind("mdlVoidTerrainSouthSmallRoof.001", out var mdlVoidTerrainSouthSmallRoof)) { MeshRenderer meshRenderer3 = default(MeshRenderer); if (((Component)mdlVoidTerrainSouthSmallRoof).TryGetComponent<MeshRenderer>(ref meshRenderer3)) { ((Renderer)meshRenderer3).sharedMaterial = Assets.matVoidTerrainNew; } if (mdlVoidTerrainSouthSmallRoof.TryFind("mdlVoidRepairsPlatform.001", out var mdlVoidRepairsPlatform)) { MeshRenderer platformMeshRenderer = default(MeshRenderer); if (((Component)mdlVoidRepairsPlatform).TryGetComponent<MeshRenderer>(ref platformMeshRenderer)) { ((Renderer)platformMeshRenderer).enabled = false; } foreach (Transform child in mdlVoidRepairsPlatform.AllChildren()) { ((Component)child).gameObject.SetActive(false); } if (mdlVoidRepairsPlatform.TryFind("mdlVoidArchEntry.002", out var mdlVoidArchEntry)) { ((Component)mdlVoidArchEntry).gameObject.SetActive(true); MeshRenderer archMeshRenderer = default(MeshRenderer); if (((Component)mdlVoidArchEntry).TryGetComponent<MeshRenderer>(ref archMeshRenderer)) { ((Renderer)archMeshRenderer).sharedMaterial = matVoidTrim.Result; } Transform obj8 = mdlVoidArchEntry.Find("mdlVoidArchEntry.003"); if (obj8 != null) { ((Component)obj8).gameObject.SetActive(false); } mdlVoidArchEntry.localScale = Vector3.one * 3f; } } } MeshRenderer meshRenderer2 = default(MeshRenderer); if (((Component)mdlVoidStageDioramaBase).transform.TryFind("mdlVoidEastPlatform.001", out var mdlVoidEastPlatform) && ((Component)mdlVoidEastPlatform).TryGetComponent<MeshRenderer>(ref meshRenderer2)) { ((Renderer)meshRenderer2).sharedMaterial = Assets.matVoidMetalOvergrown; } MeshRenderer meshRenderer = default(MeshRenderer); if (((Component)mdlVoidStageDioramaBase).transform.TryFind("mdlVoidMetalSpiralWalkway.001", out var mdlVoidMetalSpiralWalkway) && ((Component)mdlVoidMetalSpiralWalkway).TryGetComponent<MeshRenderer>(ref meshRenderer)) { ((Renderer)meshRenderer).sharedMaterial = Assets.matVoidMetalOvergrown; } MeshRenderer baseMeshRenderer = default(MeshRenderer); if (((Component)mdlVoidStageDioramaBase).TryGetComponent<MeshRenderer>(ref baseMeshRenderer)) { ((Renderer)baseMeshRenderer).sharedMaterial = Assets.matVoidMetalOvergrown; } } Transform obj9 = ((Component)holder).transform.Find("Grass/CrabFoam1Prop (15)"); if (obj9 != null) { ((Component)obj9).gameObject.SetActive(false); } Transform obj10 = ((Component)holder).transform.Find("Grass/CrabFoam1Prop (16)"); if (obj10 != null) { ((Component)obj10).gameObject.SetActive(false); } Transform obj11 = ((Component)holder).transform.Find("Grass/CrabFoam1Prop (17)"); if (obj11 != null) { ((Component)obj11).gameObject.SetActive(false); } Transform obj12 = ((Component)holder).transform.Find("Grass/CrabFoam1Prop (18)"); if (obj12 != null) { ((Component)obj12).gameObject.SetActive(false); } if (((Component)holder).transform.TryFind("Grass/VoidFanCoral (1)", out var voidFanCoral)) { voidFanCoral.localScale = Vector3.one * 0.25f; } if (((Component)holder).transform.TryFind("Grass/VoidBubbleCoral (1)", out var voidBubbleCoral)) { voidBubbleCoral.localScale = Vector3.one * 0.25f; Transform obj13 = voidBubbleCoral.Find("VoidBubble/Point Light"); if (obj13 != null) { ((Component)obj13).gameObject.SetActive(false); } Transform obj14 = voidBubbleCoral.Find("VoidBubble/Bubble"); if (obj14 != null) { ((Component)obj14).gameObject.SetActive(true); } } GameObject largeVoidCoralLit = Object.Instantiate<GameObject>(Assets.VoidCoralLit, holder); largeVoidCoralLit.transform.localPosition = new Vector3(0f, 0.8f, 0f); largeVoidCoralLit.transform.localScale = Vector3.one * 1.5f; GameObject smallVoidCoralLit = Object.Instantiate<GameObject>(Assets.VoidCoralLit, holder); smallVoidCoralLit.transform.localPosition = new Vector3(-0.7f, 0.9f, -3.7f); smallVoidCoralLit.transform.localEulerAngles = new Vector3(270f, 310f, 0f); smallVoidCoralLit.transform.localScale = Vector3.one * 0.8f; } Assets.SetUnderwaterLemurianMaster(LemurianMaster.Result); IZone[] disabledGroundNodeZones = (IZone[])(object)new IZone[9] { (IZone)(object)new SimpleBoxZone { cornerA = new Vector3(-45f, 29f, -26f), cornerB = new Vector3(45f, 68f, -95f) }, (IZone)(object)new SimpleRadialZone { center = new Vector2(2.425146f, -12.55224f), height = new RangeFloat { min = 37.74302f, max = 130f }, radius = 100f }, (IZone)(object)new SimpleSphereZone { center = new Vector3(31.51681f, 9.069029f, -83.28874f), radius = 4f }, (IZone)(object)new SimpleSphereZone { center = new Vector3(-54.34208f, -3.969529f, 27.88097f), radius = 4f }, (IZone)(object)new SimpleBoxZone { cornerA = new Vector3(-30f, 22f, 214f), cornerB = new Vector3(-220.7236f, 42.97554f, 400f) }, (IZone)(object)new SimpleRadialZone { center = new Vector2(-184f, 209f), height = new RangeFloat { min = 25f, max = 50f }, radius = 15f }, (IZone)(object)new SimpleSphereZone { center = new Vector3(-111.0189f, 19.61561f, 197.9515f), radius = 4f }, (IZone)(object)new SimpleBoxZone { cornerA = new Vector3(-112.1319f, 20.08289f, 201f), cornerB = new Vector3(-140.7579f, 28f, 217f) }, (IZone)(object)new SimpleSphereZone { center = new Vector3(157.7814f, 6.52061f, -173.4296f), radius = 4f } }; IZone[] disabledAirNodeZones = (IZone[])(object)new IZone[3] { (IZone)(object)new SimpleBoxZone { cornerA = new Vector3(-274.8925f, 142.8943f, 129.8717f), cornerB = new Vector3(-52.02304f, 103.5345f, -60.19645f) }, (IZone)(object)new SimpleBoxZone { cornerA = new Vector3(-63.34568f, 42.65285f, 72.64758f), cornerB = new Vector3(43.69559f, 4.374349f, 44.70821f) }, (IZone)(object)new SimpleSphereZone { center = new Vector3(48.7455f, 23.94464f, -70.06884f), radius = 15f } }; byte disabledGroundeNodeGateIndex = voidstage_GroundNodeGraph.Result.RegisterGateName("groovesalad.disabledNodes"); for (int j = 0; j < voidstage_GroundNodeGraph.Result.nodes.Length; j++) { Vector3 position2 = voidstage_GroundNodeGraph.Result.nodes[j].position; if (disabledGroundNodeZones.Any((IZone x) => x.IsInBounds(position2))) { voidstage_GroundNodeGraph.Result.nodes[j].gateIndex = disabledGroundeNodeGateIndex; } } byte disabledAirNodeGateIndex = voidstage_AirNodeGraph.Result.RegisterGateName("groovesalad.disabledNodes"); for (int i = 0; i < voidstage_AirNodeGraph.Result.nodes.Length; i++) { Vector3 position = voidstage_AirNodeGraph.Result.nodes[i].position; if (disabledAirNodeZones.Any((IZone x) => x.IsInBounds(position))) { voidstage_AirNodeGraph.Result.nodes[i].gateIndex = disabledAirNodeGateIndex; } } Logs_Stages_voidstage.Result.nameToken = "GS_UNLOCKABLE_LOG_STAGES_DESOLATEREEF"; Assets.SetNewtStatueUnlockables(); yield return texDesolateReefPreview; yield return texDesolateReefSeerPreview; ref Texture previewTexture = ref voidstage.Result.previewTexture; Object asset = texDesolateReefPreview.asset; previewTexture = (Texture)(object)((Sprite)((asset is Sprite) ? asset : null)).texture; voidstage.Result.portalMaterial = new Material(matBazaarSeerGolemplains.Result); ? val2 = voidstage.Result.portalMaterial; Object asset2 = texDesolateReefSeerPreview.asset; ((Material)val2).SetTexture("_MainTex", (Texture)(object)((Sprite)((asset2 is Sprite) ? asset2 : null)).texture); desolateReefAssets.assetBundle.Unload(false); contentPack.expansionDefs.Add((ExpansionDef[])(object)new ExpansionDef[1] { Assets.NewVoidStageHiddenExpansion }); contentPack.masterPrefabs.Add((GameObject[])(object)new GameObject[1] { Assets.UnderwaterLemurianMaster }); contentPack.unlockableDefs.Add(Assets.NewtStatueUnlockables); static AsyncOperationHandle CreateAddressableOp<TObject>(object key, out AsyncOperationHandle<TObject> op) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) return AsyncOperationHandle<TObject>.op_Implicit(op = Addressables.LoadAssetAsync<TObject>(key)); } } public IEnumerator GenerateContentPackAsync(GetContentPackAsyncArgs args) { ContentPack.Copy(contentPack, args.output); yield break; } public IEnumerator FinalizeAsync(FinalizeAsyncArgs args) { yield break; } private RuleDef RuleDef_FromExpansion(orig_FromExpansion orig, ExpansionDef expansionDef) { RuleDef val = orig.Invoke(expansionDef); if ((Object)(object)expansionDef == (Object)(object)Assets.NewVoidStageHiddenExpansion) { val.forceLobbyDisplay = false; } return val; } private int RuleDef_AvailableChoiceCount(orig_AvailableChoiceCount orig, RuleDef self, RuleChoiceMask availability) { int result = orig.Invoke(self, availability); if (self.globalName == "Expansions.groovesalad.NewVoidStageHiddenExpansion") { return 0; } return result; } private void SceneManager_activeSceneChanged(Scene oldScene, Scene newScene) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) if (((Scene)(ref newScene)).name == "voidstage") { (voidStageTemplate ?? (voidStageTemplate = new RuntimeVoidStageTemplate(newScene))).Apply(newScene); } } private void Run_onRunStartGlobal(Run run) { if (NetworkServer.active) { run.SetEventFlag("NoVoidStage"); } } private void CameraRigController_onCameraEnableGlobal(CameraRigController cameraRigController) { SceneDef mostRecentSceneDef = SceneCatalog.mostRecentSceneDef; if (((mostRecentSceneDef != null) ? mostRecentSceneDef.cachedName : null) == "voidstage" && Object.op_Implicit((Object)(object)cameraRigController.sceneCam)) { cameraRigController.sceneCam.useOcclusionCulling = false; } } } public static class Language { public static void Init() { LanguageAPI.Add(new Dictionary<string, string> { { "GS_MAP_DESOLATEREEF_TITLE", "Desolate Reef" }, { "GS_MAP_DESOLATEREEF_SUBTITLE", "Ruins of the Damned" }, { "GS_BAZAAR_SEER_DESOLATEREEF", "<style=cWorldEvent>You dream of oceanic depths.</style>" }, { "GS_UNLOCKABLE_LOG_STAGES_DESOLATEREEF", "Environment Log: Desolate Reef" } }); } } public class RuntimeVoidStageTemplate { public PostProcessProfile ppSceneVoidStageNew; public Material matVoidOverhangNew; public Material matVoidCrystalNew; public DccsPool dpMonsters; public DirectorCardCategorySelection dccsMonsters; public DirectorCardCategorySelection dccsMonstersDLC1; public DccsPool dpInteractables; public DirectorCardCategorySelection dccsInteractables; public DirectorCardCategorySelection dccsInteractablesDLC1; public RuntimeVoidStageTemplate(Scene voidStage) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_0195: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Expected O, but got Unknown //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Unknown result type (might be due to invalid IL or missing references) //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Unknown result type (might be due to invalid IL or missing references) //IL_023c: Unknown result type (might be due to invalid IL or missing references) //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02ca: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Expected O, but got Unknown //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02df: Unknown result type (might be due to invalid IL or missing references) //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Expected O, but got Unknown //IL_02fc: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0321: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Expected O, but got Unknown //IL_032e: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_0361: Unknown result type (might be due to invalid IL or missing references) //IL_0366: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Unknown result type (might be due to invalid IL or missing references) //IL_0371: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Unknown result type (might be due to invalid IL or missing references) //IL_0387: Expected O, but got Unknown //IL_0389: Unknown result type (might be due to invalid IL or missing references) //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03af: Expected O, but got Unknown //IL_03b1: Unknown result type (might be due to invalid IL or missing references) //IL_03b6: Unknown result type (might be due to invalid IL or missing references) //IL_03bc: Unknown result type (might be due to invalid IL or missing references) //IL_03c1: Unknown result type (might be due to invalid IL or missing references) //IL_03cf: Unknown result type (might be due to invalid IL or missing references) //IL_03d7: Expected O, but got Unknown //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03de: Unknown result type (might be due to invalid IL or missing references) //IL_03e7: Unknown result type (might be due to invalid IL or missing references) //IL_040f: Unknown result type (might be due to invalid IL or missing references) //IL_0414: Unknown result type (might be due to invalid IL or missing references) //IL_041a: Unknown result type (might be due to invalid IL or missing references) //IL_041f: Unknown result type (might be due to invalid IL or missing references) //IL_042d: Unknown result type (might be due to invalid IL or missing references) //IL_0435: Expected O, but got Unknown //IL_0437: Unknown result type (might be due to invalid IL or missing references) //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_0442: Unknown result type (might be due to invalid IL or missing references) //IL_0447: Unknown result type (might be due to invalid IL or missing references) //IL_0455: Unknown result type (might be due to invalid IL or missing references) //IL_045d: Expected O, but got Unknown //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_0464: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_047d: Unknown result type (might be due to invalid IL or missing references) //IL_0485: Expected O, but got Unknown //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_0492: Unknown result type (might be due to invalid IL or missing references) //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_04a5: Unknown result type (might be due to invalid IL or missing references) //IL_04ad: Expected O, but got Unknown //IL_04b2: Unknown result type (might be due to invalid IL or missing references) //IL_04b4: Unknown result type (might be due to invalid IL or missing references) //IL_04bd: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_04ea: Unknown result type (might be due to invalid IL or missing references) //IL_04f0: Unknown result type (might be due to invalid IL or missing references) //IL_04f5: Unknown result type (might be due to invalid IL or missing references) //IL_0503: Unknown result type (might be due to invalid IL or missing references) //IL_050a: Unknown result type (might be due to invalid IL or missing references) //IL_0512: Expected O, but got Unknown //IL_0517: Unknown result type (might be due to invalid IL or missing references) //IL_0519: Unknown result type (might be due to invalid IL or missing references) //IL_054f: Unknown result type (might be due to invalid IL or missing references) //IL_0577: Unknown result type (might be due to invalid IL or missing references) //IL_057c: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Unknown result type (might be due to invalid IL or missing references) //IL_0587: Unknown result type (might be due to invalid IL or missing references) //IL_0595: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Expected O, but got Unknown //IL_059f: Unknown result type (might be due to invalid IL or missing references) //IL_05a4: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Unknown result type (might be due to invalid IL or missing references) //IL_05af: Unknown result type (might be due to invalid IL or missing references) //IL_05bd: Unknown result type (might be due to invalid IL or missing references) //IL_05c5: Expected O, but got Unknown //IL_05c7: Unknown result type (might be due to invalid IL or missing references) //IL_05cc: Unknown result type (might be due to invalid IL or missing references) //IL_05d2: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Unknown result type (might be due to invalid IL or missing references) //IL_05e5: Unknown result type (might be due to invalid IL or missing references) //IL_05ed: Expected O, but got Unknown //IL_05f2: Unknown result type (might be due to invalid IL or missing references) //IL_05f4: Unknown result type (might be due to invalid IL or missing references) //IL_05fd: Unknown result type (might be due to invalid IL or missing references) //IL_0625: Unknown result type (might be due to invalid IL or missing references) //IL_062a: Unknown result type (might be due to invalid IL or missing references) //IL_0630: Unknown result type (might be due to invalid IL or missing references) //IL_0635: Unknown result type (might be due to invalid IL or missing references) //IL_0643: Unknown result type (might be due to invalid IL or missing references) //IL_064b: Expected O, but got Unknown //IL_064d: Unknown result type (might be due to invalid IL or missing references) //IL_0652: Unknown result type (might be due to invalid IL or missing references) //IL_0658: Unknown result type (might be due to invalid IL or missing references) //IL_065d: Unknown result type (might be due to invalid IL or missing references) //IL_066b: Unknown result type (might be due to invalid IL or missing references) //IL_0673: Expected O, but got Unknown //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_0680: Unknown result type (might be due to invalid IL or missing references) //IL_0685: Unknown result type (might be due to invalid IL or missing references) //IL_0693: Unknown result type (might be due to invalid IL or missing references) //IL_069b: Expected O, but got Unknown //IL_069d: Unknown result type (might be due to invalid IL or missing references) //IL_06a2: Unknown result type (might be due to invalid IL or missing references) //IL_06a8: Unknown result type (might be due to invalid IL or missing references) //IL_06ad: Unknown result type (might be due to invalid IL or missing references) //IL_06bb: Unknown result type (might be due to invalid IL or missing references) //IL_06c3: Expected O, but got Unknown //IL_06c5: Unknown result type (might be due to invalid IL or missing references) //IL_06ca: Unknown result type (might be due to invalid IL or missing references) //IL_06d0: Unknown result type (might be due to invalid IL or missing references) //IL_06d5: Unknown result type (might be due to invalid IL or missing references) //IL_06e3: Unknown result type (might be due to invalid IL or missing references) //IL_06eb: Expected O, but got Unknown //IL_06f0: Unknown result type (might be due to invalid IL or missing references) //IL_06f2: Unknown result type (might be due to invalid IL or missing references) //IL_06fb: Unknown result type (might be due to invalid IL or missing references) //IL_0723: Unknown result type (might be due to invalid IL or missing references) //IL_0728: Unknown result type (might be due to invalid IL or missing references) //IL_072e: Unknown result type (might be due to invalid IL or missing references) //IL_0733: Unknown result type (might be due to invalid IL or missing references) //IL_0741: Unknown result type (might be due to invalid IL or missing references) //IL_0749: Expected O, but got Unknown //IL_074b: Unknown result type (might be due to invalid IL or missing references) //IL_0750: Unknown result type (might be due to invalid IL or missing references) //IL_0756: Unknown result type (might be due to invalid IL or missing references) //IL_075b: Unknown result type (might be due to invalid IL or missing references) //IL_0769: Unknown result type (might be due to invalid IL or missing references) //IL_0771: Expected O, but got Unknown //IL_0773: Unknown result type (might be due to invalid IL or missing references) //IL_0778: Unknown result type (might be due to invalid IL or missing references) //IL_077e: Unknown result type (might be due to invalid IL or missing references) //IL_0783: Unknown result type (might be due to invalid IL or missing references) //IL_0791: Unknown result type (might be due to invalid IL or missing references) //IL_0799: Expected O, but got Unknown //IL_079b: Unknown result type (might be due to invalid IL or missing references) //IL_07a0: Unknown result type (might be due to invalid IL or missing references) //IL_07a6: Unknown result type (might be due to invalid IL or missing references) //IL_07ab: Unknown result type (might be due to invalid IL or missing references) //IL_07b9: Unknown result type (might be due to invalid IL or missing references) //IL_07c1: Expected O, but got Unknown //IL_07c6: Unknown result type (might be due to invalid IL or missing references) //IL_07c8: Unknown result type (might be due to invalid IL or missing references) //IL_07d1: Unknown result type (might be due to invalid IL or missing references) //IL_07f9: Unknown result type (might be due to invalid IL or missing references) //IL_07fe: Unknown result type (might be due to invalid IL or missing references) //IL_0804: Unknown result type (might be due to invalid IL or missing references) //IL_0809: Unknown result type (might be due to invalid IL or missing references) //IL_0817: Unknown result type (might be due to invalid IL or missing references) //IL_081e: Unknown result type (might be due to invalid IL or missing references) //IL_0826: Expected O, but got Unknown //IL_082b: Unknown result type (might be due to invalid IL or missing references) //IL_082d: Unknown result type (might be due to invalid IL or missing references) //IL_0861: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Expected O, but got Unknown //IL_0896: Unknown result type (might be due to invalid IL or missing references) //IL_089d: Expected O, but got Unknown //IL_08d9: Unknown result type (might be due to invalid IL or missing references) //IL_08de: Unknown result type (might be due to invalid IL or missing references) //IL_08ea: Unknown result type (might be due to invalid IL or missing references) //IL_08f6: Expected O, but got Unknown //IL_0900: Unknown result type (might be due to invalid IL or missing references) //IL_0907: Expected O, but got Unknown //IL_0935: Unknown result type (might be due to invalid IL or missing references) //IL_093a: Unknown result type (might be due to invalid IL or missing references) //IL_0940: Unknown result type (might be due to invalid IL or missing references) //IL_0945: Unknown result type (might be due to invalid IL or missing references) //IL_0953: Unknown result type (might be due to invalid IL or missing references) //IL_095e: Unknown result type (might be due to invalid IL or missing references) //IL_096a: Expected O, but got Unknown //IL_096c: Unknown result type (might be due to invalid IL or missing references) //IL_0973: Expected O, but got Unknown //IL_097a: Unknown result type (might be due to invalid IL or missing references) //IL_097f: Unknown result type (might be due to invalid IL or missing references) //IL_09af: Unknown result type (might be due to invalid IL or missing references) //IL_09b4: Unknown result type (might be due to invalid IL or missing references) //IL_09ba: Unknown result type (might be due to invalid IL or missing references) //IL_09bf: Unknown result type (might be due to invalid IL or missing references) //IL_09cd: Unknown result type (might be due to invalid IL or missing references) //IL_09d8: Unknown result type (might be due to invalid IL or missing references) //IL_09e4: Expected O, but got Unknown //IL_09e6: Unknown result type (might be due to invalid IL or missing references) //IL_09eb: Unknown result type (might be due to invalid IL or missing references) //IL_09f1: Unknown result type (might be due to invalid IL or missing references) //IL_09f6: Unknown result type (might be due to invalid IL or missing references) //IL_0a04: Unknown result type (might be due to invalid IL or missing references) //IL_0a0f: Unknown result type (might be due to invalid IL or missing references) //IL_0a1b: Expected O, but got Unknown //IL_0a31: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Expected O, but got Unknown //IL_0a66: Unknown result type (might be due to invalid IL or missing references) //IL_0a6d: Expected O, but got Unknown //IL_0a74: Unknown result type (might be due to invalid IL or missing references) //IL_0a79: Unknown result type (might be due to invalid IL or missing references) //IL_0aec: Unknown result type (might be due to invalid IL or missing references) //IL_0b15: Unknown result type (might be due to invalid IL or missing references) //IL_0b1a: Unknown result type (might be due to invalid IL or missing references) //IL_0b20: Unknown result type (might be due to invalid IL or missing references) //IL_0b25: Unknown result type (might be due to invalid IL or missing references) //IL_0b33: Unknown result type (might be due to invalid IL or missing references) //IL_0b3c: Expected O, but got Unknown //IL_0b3e: Unknown result type (might be due to invalid IL or missing references) //IL_0b43: Unknown result type (might be due to invalid IL or missing references) //IL_0b49: Unknown result type (might be due to invalid IL or missing references) //IL_0b4e: Unknown result type (might be due to invalid IL or missing references) //IL_0b5c: Unknown result type (might be due to invalid IL or missing references) //IL_0b64: Expected O, but got Unknown //IL_0b66: Unknown result type (might be due to invalid IL or missing references) //IL_0b6b: Unknown result type (might be due to invalid IL or missing references) //IL_0b71: Unknown result type (might be due to invalid IL or missing references) //IL_0b76: Unknown result type (might be due to invalid IL or missing references) //IL_0b84: Unknown result type (might be due to invalid IL or missing references) //IL_0b8c: Expected O, but got Unknown //IL_0b8e: Unknown result type (might be due to invalid IL or missing references) //IL_0b93: Unknown result type (might be due to invalid IL or missing references) //IL_0b99: Unknown result type (might be due to invalid IL or missing references) //IL_0b9e: Unknown result type (might be due to invalid IL or missing references) //IL_0bac: Unknown result type (might be due to invalid IL or missing references) //IL_0bb4: Expected O, but got Unknown //IL_0bb6: Unknown result type (might be due to invalid IL or missing references) //IL_0bbb: Unknown result type (might be due to invalid IL or missing references) //IL_0bc1: Unknown result type (might be due to invalid IL or missing references) //IL_0bc6: Unknown result type (might be due to invalid IL or missing references) //IL_0bd4: Unknown result type (might be due to invalid IL or missing references) //IL_0bdc: Expected O, but got Unknown //IL_0bde: Unknown result type (might be due to invalid IL or missing references) //IL_0be3: Unknown result type (might be due to invalid IL or missing references) //IL_0be9: Unknown result type (might be due to invalid IL or missing references) //IL_0bee: Unknown result type (might be due to invalid IL or missing references) //IL_0bfc: Unknown result type (might be due to invalid IL or missing references) //IL_0c04: Expected O, but got Unknown //IL_0c06: Unknown result type (might be due to invalid IL or missing references) //IL_0c0b: Unknown result type (might be due to invalid IL or missing references) //IL_0c11: Unknown result type (might be due to invalid IL or missing references) //IL_0c16: Unknown result type (might be due to invalid IL or missing references) //IL_0c24: Unknown result type (might be due to invalid IL or missing references) //IL_0c2c: Expected O, but got Unknown //IL_0c2e: Unknown result type (might be due to invalid IL or missing references) //IL_0c33: Unknown result type (might be due to invalid IL or missing references) //IL_0c39: Unknown result type (might be due to invalid IL or missing references) //IL_0c3e: Unknown result type (might be due to invalid IL or missing references) //IL_0c4c: Unknown result type (might be due to invalid IL or missing references) //IL_0c54: Expected O, but got Unknown //IL_0c56: Unknown result type (might be due to invalid IL or missing references) //IL_0c5b: Unknown result type (might be due to invalid IL or missing references) //IL_0c61: Unknown result type (might be due to invalid IL or missing references) //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c74: Unknown result type (might be due to invalid IL or missing references) //IL_0c7c: Expected O, but got Unknown //IL_0c81: Unknown result type (might be due to invalid IL or missing references) //IL_0c83: Unknown result type (might be due to invalid IL or missing references) //IL_0c8c: Unknown result type (might be due to invalid IL or missing references) //IL_0cb4: Unknown result type (might be due to invalid IL or missing references) //IL_0cb9: Unknown result type (might be due to invalid IL or missing references) //IL_0cbf: Unknown result type (might be due to invalid IL or missing references) //IL_0cc4: Unknown result type (might be due to invalid IL or missing references) //IL_0cd2: Unknown result type (might be due to invalid IL or missing references) //IL_0cdb: Expected O, but got Unknown //IL_0ce0: Unknown result type (might be due to invalid IL or missing references) //IL_0ce2: Unknown result type (might be due to invalid IL or missing references) //IL_0ceb: Unknown result type (might be due to invalid IL or missing references) //IL_0d13: Unknown result type (might be due to invalid IL or missing references) //IL_0d18: Unknown result type (might be due to invalid IL or missing references) //IL_0d1e: Unknown result type (might be due to invalid IL or missing references) //IL_0d23: Unknown result type (might be due to invalid IL or missing references) //IL_0d31: Unknown result type (might be due to invalid IL or missing references) //IL_0d3a: Expected O, but got Unknown //IL_0d3c: Unknown result type (might be due to invalid IL or missing references) //IL_0d41: Unknown result type (might be due to invalid IL or missing references) //IL_0d47: Unknown result type (might be due to invalid IL or missing references) //IL_0d4c: Unknown result type (might be due to invalid IL or missing references) //IL_0d5a: Unknown result type (might be due to invalid IL or missing references) //IL_0d63: Expected O, but got Unknown //IL_0d65: Unknown result type (might be due to invalid IL or missing references) //IL_0d6a: Unknown result type (might be due to invalid IL or missing references) //IL_0d70: Unknown result type (might be due to invalid IL or missing references) //IL_0d75: Unknown result type (might be due to invalid IL or missing references) //IL_0d83: Unknown result type (might be due to invalid IL or missing references) //IL_0d8c: Expected O, but got Unknown //IL_0d8e: Unknown result type (might be due to invalid IL or missing references) //IL_0d93: Unknown result type (might be due to invalid IL or missing references) //IL_0d99: Unknown result type (might be due to invalid IL or missing references) //IL_0d9e: Unknown result type (might be due to invalid IL or missing references) //IL_0dac: Unknown result type (might be due to invalid IL or missing references) //IL_0db4: Expected O, but got Unknown //IL_0db9: Unknown result type (might be due to invalid IL or missing references) //IL_0dbb: Unknown result type (might be due to invalid IL or missing references) //IL_0dc4: Unknown result type (might be due to invalid IL or missing references) //IL_0dec: Unknown result type (might be due to invalid IL or missing references) //IL_0df1: Unknown result type (might be due to invalid IL or missing references) //IL_0df7: Unknown result type (might be due to invalid IL or missing references) //IL_0dfc: Unknown result type (might be due to invalid IL or missing references) //IL_0e0a: Unknown result type (might be due to invalid IL or missing references) //IL_0e12: Expected O, but got Unknown //IL_0e17: Unknown result type (might be due to invalid IL or missing references) //IL_0e19: Unknown result type (might be due to invalid IL or missing references) //IL_0e22: Unknown result type (might be due to invalid IL or missing references) //IL_0e4a: Unknown result type (might be due to invalid IL or missing references) //IL_0e4f: Unknown result type (might be due to invalid IL or missing references) //IL_0e55: Unknown result type (might be due to invalid IL or missing references) //IL_0e5a: Unknown result type (might be due to invalid IL or missing references) //IL_0e68: Unknown result type (might be due to invalid IL or missing references) //IL_0e70: Expected O, but got Unknown //IL_0e75: Unknown result type (might be due to invalid IL or missing references) //IL_0e77: Unknown result type (might be due to invalid IL or missing references) //IL_0e80: Unknown result type (might be due to invalid IL or missing references) //IL_0ea8: Unknown result type (might be due to invalid IL or missing references) //IL_0ead: Unknown result type (might be due to invalid IL or missing references) //IL_0eb3: Unknown result type (might be due to invalid IL or missing references) //IL_0eb8: Unknown result type (might be due to invalid IL or missing references) //IL_0ec6: Unknown result type (might be due to invalid IL or missing references) //IL_0ece: Expected O, but got Unknown //IL_0ed0: Unknown result type (might be due to invalid IL or missing references) //IL_0ed5: Unknown result type (might be due to invalid IL or missing references) //IL_0edb: Unknown result type (might be due to invalid IL or missing references) //IL_0ee0: Unknown result type (might be due to invalid IL or missing references) //IL_0eee: Unknown result type (might be due to invalid IL or missing references) //IL_0ef5: Unknown result type (might be due to invalid IL or missing references) //IL_0efb: Unknown result type (might be due to invalid IL or missing references) //IL_0f00: Unknown result type (might be due to invalid IL or missing references) //IL_0f0f: Expected O, but got Unknown //IL_0f11: Unknown result type (might be due to invalid IL or missing references) //IL_0f16: Unknown result type (might be due to invalid IL or missing references) //IL_0f1c: Unknown result type (might be due to invalid IL or missing references) //IL_0f21: Unknown result type (might be due to invalid IL or missing references) //IL_0f2f: Unknown result type (might be due to invalid IL or missing references) //IL_0f36: Unknown result type (might be due to invalid IL or missing references) //IL_0f3e: Expected O, but got Unknown //IL_0f40: Unknown result type (might be due to invalid IL or missing references) //IL_0f45: Unknown result type (might be due to invalid IL or missing references) //IL_0f4b: Unknown result type (might be due to invalid IL or missing references) //IL_0f50: Unknown result type (might be due to invalid IL or missing references) //IL_0f5e: Unknown result type (might be due to invalid IL or missing references) //IL_0f65: Unknown result type (might be due to invalid IL or missing references) //IL_0f6d: Expected O, but got Unknown //IL_0f72: Unknown result type (might be due to invalid IL or missing references) //IL_0f74: Unknown result type (might be due to invalid IL or missing references) //IL_0f7d: Unknown result type (might be due to invalid IL or missing references) //IL_0fa5: Unknown result type (might be due to invalid IL or missing references) //IL_0faa: Unknown result type (might be due to invalid IL or missing references) //IL_0fb0: Unknown result type (might be due to invalid IL or missing references) //IL_0fb5: Unknown result type (might be due to invalid IL or missing references) //IL_0fc3: Unknown result type (might be due to invalid IL or missing references) //IL_0fcc: Expected O, but got Unknown //IL_0fce: Unknown result type (might be due to invalid IL or missing references) //IL_0fd3: Unknown result type (might be due to invalid IL or missing references) //IL_0fd9: Unknown result type (might be due to invalid IL or missing references) //IL_0fde: Unknown result type (might be due to invalid IL or missing references) //IL_0fec: Unknown result type (might be due to invalid IL or missing references) //IL_0ff3: Unknown result type (might be due to invalid IL or missing references) //IL_0ffb: Expected O, but got Unknown //IL_0ffd: Unknown result type (might be due to invalid IL or missing references) //IL_1002: Unknown result type (might be due to invalid IL or missing references) //IL_1008: Unknown result type (might be due to invalid IL or missing references) //IL_100d: Unknown result type (might be due to invalid IL or missing references) //IL_101b: Unknown result type (might be due to invalid IL or missing references) //IL_1022: Unknown result type (might be due to invalid IL or missing references) //IL_102a: Expected O, but got Unknown //IL_102c: Unknown result type (might be due to invalid IL or missing references) //IL_1031: Unknown result type (might be due to invalid IL or missing references) //IL_1037: Unknown result type (might be due to invalid IL or missing references) //IL_103c: Unknown result type (might be due to invalid IL or missing references) //IL_104a: Unknown result type (might be due to invalid IL or missing references) //IL_1051: Unknown result type (might be due to invalid IL or missing references) //IL_1059: Expected O, but got Unknown //IL_105b: Unknown result type (might be due to invalid IL or missing references) //IL_1060: Unknown result type (might be due to invalid IL or missing references) //IL_1066: Unknown result type (might be due to invalid IL or missing references) //IL_106b: Unknown result type (might be due to invalid IL or missing references) //IL_1079: Unknown result type (might be due to invalid IL or missing references) //IL_1082: Expected O, but got Unknown //IL_1087: Unknown result type (might be due to invalid IL or missing references) //IL_1089: Unknown result type (might be due to invalid IL or missing references) //IL_10bf: Unknown result type (might be due to invalid IL or missing references) //IL_10e8: Unknown result type (might be due to invalid IL or missing references) //IL_10ed: Unknown result type (might be due to invalid IL or missing references) //IL_10f3: Unknown result type (might be due to invalid IL or missing references) //IL_10f8: Unknown result type (might be due to invalid IL or missing references) //IL_1106: Unknown result type (might be due to invalid IL or missing references) //IL_1112: Expected O, but got Unknown //IL_1114: Unknown result type (might be due to invalid IL or missing references) //IL_1119: Unknown result type (might be due to invalid IL or missing references) //IL_111f: Unknown result type (might be due to invalid IL or missing references) //IL_1124: Unknown result type (might be due to invalid IL or missing references) //IL_1132: Unknown result type (might be due to invalid IL or missing references) //IL_113b: Expected O, but got Unknown //IL_113d: Unknown result type (might be due to invalid IL or missing references) //IL_1142: Unknown result type (might be due to invalid IL or missing references) //IL_1148: Unknown result type (might be due to invalid IL or missing references) //IL_114d: Unknown result type (might be due to invalid IL or missing references) //IL_115b: Unknown result type (might be due to invalid IL or missing references) //IL_1164: Expected O, but got Unknown //IL_1166: Unknown result type (might be due to invalid IL or missing references) //IL_116b: Unknown result type (might be due to invalid IL or missing references) //IL_1171: Unknown result type (might be due to invalid IL or missing references) //IL_1176: Unknown result type (might be due to invalid IL or missing references) //IL_1184: Unknown result type (might be due to invalid IL or missing references) //IL_118d: Expected O, but got Unknown //IL_118f: Unknown result type (might be due to invalid IL or missing references) //IL_1194: Unknown result type (might be due to invalid IL or missing references) //IL_119a: Unknown result type (might be due to invalid IL or missing references) //IL_119f: Unknown result type (might be due to invalid IL or missing references) //IL_11ad: Unknown result type (might be due to invalid IL or missing references) //IL_11b5: Expected O, but got Unknown //IL_11b7: Unknown result type (might be due to invalid IL or missing references) //IL_11bc: Unknown result type (might be due to invalid IL or missing references) //IL_11c2: Unknown result type (might be due to invalid IL or missing references) //IL_11c7: Unknown result type (might be due to invalid IL or missing references) //IL_11d5: Unknown result type (might be due to invalid IL or missing references) //IL_11de: Expected O, but got Unknown //IL_11e0: Unknown result type (might be due to invalid IL or missing references) //IL_11e5: Unknown result type (might be due to invalid IL or missing references) //IL_11eb: Unknown result type (might be due to invalid IL or missing references) //IL_11f0: Unknown result type (might be due to invalid IL or missing references) //IL_11fe: Unknown result type (might be due to invalid IL or missing references) //IL_1207: Expected O, but got Unknown //IL_1209: Unknown result type (might be due to invalid IL or missing references) //IL_120e: Unknown result type (might be due to invalid IL or missing references) //IL_1214: Unknown result type (might be due to invalid IL or missing references) //IL_1219: Unknown result type (might be due to invalid IL or missing references) //IL_1227: Unknown result type (might be due to invalid IL or missing references) //IL_1230: Expected O, but got Unknown //IL_1232: Unknown result type (might be due to invalid IL or missing references) //IL_1237: Unknown result type (might be due to invalid IL or missing references) //IL_123d: Unknown result type (might be due to invalid IL or missing references) //IL_1242: Unknown result type (might be due to invalid IL or missing references) //IL_1250: Unknown result type (might be due to invalid IL or missing references) //IL_1259: Expected O, but got Unknown //IL_125c: Unknown result type (might be due to invalid IL or missing references) //IL_1261: Unknown result type (might be due to invalid IL or missing references) //IL_1267: Unknown result type (might be due to invalid IL or missing references) //IL_126c: Unknown result type (might be due to invalid IL or missing references) //IL_127a: Unknown result type (might be due to invalid IL or missing references) //IL_1282: Expected O, but got Unknown //IL_1285: Unknown result type (might be due to invalid IL or missing references) //IL_128a: Unknown result type (might be due to invalid IL or missing references) //IL_1290: Unknown result type (might be due to invalid IL or missing references) //IL_1295: Unknown result type (might be due to invalid IL or missing references) //IL_12a3: Unknown result type (might be due to invalid IL or missing references) //IL_12ab: Expected O, but got Unknown //IL_12ae: Unknown result type (might be due to invalid IL or missing references) //IL_12b3: Unknown result type (might be due to invalid IL or missing references) //IL_12b9: Unknown result type (might be due to invalid IL or missing references) //IL_12be: Unknown result type (might be due to invalid IL or missing references) //IL_12cc: Unknown result type (might be due to invalid IL or missing references) //IL_12d4: Expected O, but got Unknown //IL_12d9: Unknown result type (might be due to invalid IL or missing references) //IL_12db: Unknown result type (might be due to invalid IL or missing references) //IL_12e4: Unknown result type (might be due to invalid IL or missing references) //IL_130c: Unknown result type (might be due to invalid IL or missing references) //IL_1311: Unknown result type (might be due to invalid IL or missing references) //IL_1317: Unknown result type (might be due to invalid IL or missing references) //IL_131c: Unknown result type (might be due to invalid IL or missing references) //IL_132a: Unknown result type (might be due to invalid IL or missing references) //IL_1333: Expected O, but got Unknown //IL_1338: Unknown result type (might be due to invalid IL or missing references) //IL_133a: Unknown result type (might be due to invalid IL or missing references) //IL_1343: Unknown result type (might be due to invalid IL or missing references) //IL_136b: Unknown result type (might be due to invalid IL or missing references) //IL_1370: Unknown result type (might be due to invalid IL or missing references) //IL_1376: Unknown result type (might be due to invalid IL or missing references) //IL_137b: Unknown result type (might be due to invalid IL or missing references) //IL_1389: Unknown result type (might be due to invalid IL or missing references) //IL_1392: Expected O, but got Unknown //IL_1394: Unknown result type (might be due to invalid IL or missing references) //IL_1399: Unknown result type (might be due to invalid IL or missing references) //IL_139f: Unknown result type (might be due to invalid IL or missing references) //IL_13a4: Unknown result type (might be due to invalid IL or missing references) //IL_13b2: Unknown result type (might be due to invalid IL or missing references) //IL_13bb: Expected O, but got Unknown //IL_13bd: Unknown result type (might be due to invalid IL or missing references) //IL_13c2: Unknown result type (might be due to invalid IL or missing references) //IL_13c8: Unknown result type (might be due to invalid IL or missing references) //IL_13cd: Unknown result type (might be due to invalid IL or missing references) //IL_13db: Unknown result type (might be due to invalid IL or missing references) //IL_13e4: Expected O, but got Unknown //IL_13e6: Unknown result type (might be due to invalid IL or missing references) //IL_13eb: Unknown result type (might be due to invalid IL or missing references) //IL_13f1: Unknown result type (might be due to invalid IL or missing references) //IL_13f6: Unknown result type (might be due to invalid IL or missing references) //IL_1404: Unknown result type (might be due to invalid IL or missing references) //IL_140c: Expected O, but got Unknown //IL_1411: Unknown result type (might be due to invalid IL or missing references) //IL_1413: Unknown result type (might be due to invalid IL or missing references) //IL_141c: Unknown result type (might be due to invalid IL or missing references) //IL_1444: Unknown result type (might be due to invalid IL or missing references) //IL_1449: Unknown result type (might be due to invalid IL or missing references) //IL_144f: Unknown result type (might be due to invalid IL or missing references) //IL_1454: Unknown result type (might be due to invalid IL or missing references) //IL_1462: Unknown result type (might be due to invalid IL or missing references) //IL_146a: Expected O, but got Unknown //IL_146f: Unknown result type (might be due to invalid IL or missing references) //IL_1471: Unknown result type (might be due to invalid IL or missing references) //IL_147a: Unknown result type (might be due to invalid IL or missing references) //IL_14a2: Unknown result type (might be due to invalid IL or missing references) //IL_14a7: Unknown result type (might be due to invalid IL or missing references) //IL_14ad: Unknown result type (might be due to invalid IL or missing references) //IL_14b2: Unknown result type (might be due to invalid IL or missing references) //IL_14c0: Unknown result type (might be due to invalid IL or missing references) //IL_14c8: Expected O, but got Unknown //IL_14cd: Unknown result type (might be due to invalid IL or missing references) //IL_14cf: Unknown result type (might be due to invalid IL or missing references) //IL_14d8: Unknown result type (might be due to invalid IL or missing references) //IL_1500: Unknown result type (might be due to invalid IL or missing references) //IL_1505: Unknown result type (might be due to invalid IL or missing references) //IL_150b: Unknown result type (might be due to invalid IL or missing references) //IL_1510: Unknown result type (might be due to invalid IL or missing references) //IL_151e: Unknown result type (might be due to invalid IL or missing references) //IL_1526: Expected O, but got Unknown //IL_1528: Unknown result type (might be due to invalid IL or missing references) //IL_152d: Unknown result type (might be due to invalid IL or missing references) //IL_1533: Unknown result type (might be due to invalid IL or missing references) //IL_1538: Unknown result type (might be due to invalid IL or missing references) //IL_1546: Unknown result type (might be due to invalid IL or missing references) //IL_154d: Unknown result type (might be due to invalid IL or missing references) //IL_1553: Unknown result type (might be due to invalid IL or missing references) //IL_1558: Unknown result type (might be due to invalid IL or missing references) //IL_1567: Expected O, but got Unknown //IL_1569: Unknown result type (might be due to invalid IL or missing references) //IL_156e: Unknown result type (might be due to invalid IL or missing references) //IL_1574: Unknown result type (might be due to invalid IL or missing references) //IL_1579: Unknown result type (might be due to invalid IL or missing references) //IL_1587: Unknown result type (might be due to invalid IL or missing references) //IL_158e: Unknown result type (might be due to invalid IL or missing references) //IL_1596: Expected O, but got Unknown //IL_1598: Unknown result type (might be due to invalid IL or missing references) //IL_159d: Unknown result type (might be due to invalid IL or missing references) //IL_15a3: Unknown result type (might be due to invalid IL or missing references) //IL_15a8: Unknown result type (might be due to invalid IL or missing references) //IL_15b6: Unknown result type (might be due to invalid IL or missing references) //IL_15bd: Unknown result type (might be due to invalid IL or missing references) //IL_15c5: Expected O, but got Unknown //IL_15ca: Unknown result type (might be due to invalid IL or missing references) //IL_15cc: Unknown result type (might be due to invalid IL or missing references) //IL_15d5: Unknown result type (might be due to invalid IL or missing references) //IL_15fd: Unknown result type (might be due to invalid IL or missing references) //IL_1602: Unknown result type (might be due to invalid IL or missing references) //IL_1608: Unknown result type (might be due to invalid IL or missing references) //IL_160d: Unknown result type (might be due to invalid IL or missing references) //IL_161b: Unknown result type (might be due to invalid IL or missing references) //IL_1624: Expected O, but got Unknown //IL_1626: Unknown result type (might be due to invalid IL or missing references) //IL_162b: Unknown result type (might be due to invalid IL or missing references) //IL_1631: Unknown result type (might be due to invalid IL or missing references) //IL_1636: Unknown result type (might be due to invalid IL or missing references) //IL_1644: Unknown result type (might be due to invalid IL or missing references) //IL_164b: Unknown result type (might be due to invalid IL or missing references) //IL_1653: Expected O, but got Unknown //IL_1655: Unknown result type (might be due to invalid IL or missing references) //IL_165a: Unknown result type (might be due to invalid IL or missing references) //IL_1660: Unknown result type (might be due to invalid IL or missing references) //IL_1665: Unknown result type (might be due to invalid IL or missing references) //IL_1673: Unknown result type (might be due to invalid IL or missing references) //IL_167a: Unknown result type (might be due to invalid IL or missing references) //IL_1682: Expected O, but got Unknown //IL_1684: Unknown result type (might be due to invalid IL or missing references) //IL_1689: Unknown result type (might be due to invalid IL or missing references) //IL_168f: Unknown result type (might be due to invalid IL or missing references) //IL_1694: Unknown result type (might be due to invalid IL or missing references) //IL_16a2: Unknown result type (might be due to invalid IL or missing references) //IL_16a9: Unknown result type (might be due to invalid IL or missing references) //IL_16b1: Expected O, but got Unknown //IL_16b3: Unknown result type (might be due to invalid IL or missing references) //IL_16b8: Unknown result type (might be due to invalid IL or missing references) //IL_16be: Unknown result type (might be due to invalid IL or missing references) //IL_16c3: Unknown result type (might be due to invalid IL or missing references) //IL_16d1: Unknown result type (might be due to invalid IL or missing references) //IL_16da: Expected O, but got Unknown //IL_16df: Unknown result type (might be due to invalid IL or missing references) //IL_16e1: Unknown result type (might be due to invalid IL or missing references) //IL_16ea: Unknown result type (might be due to invalid IL or missing references) //IL_1712: Unknown result type (might be due to invalid IL or missing references) //IL_1717: Unknown result type (might be due to invalid IL or missing references) //IL_171d: Unknown result type (might be due to invalid IL or missing references) //IL_1722: Unknown result type (might be due to invalid IL or missing references) //IL_1730: Unknown result type (might be due to invalid IL or missing references) //IL_1739: Expected O, but got Unknown //IL_173b: Unknown result type (might be due to invalid IL or missing references) //IL_1740: Unknown result type (might be due to invalid IL or missing references) //IL_1746: Unknown result type (might be due to invalid IL or missing references) //IL_174b: Unknown result type (might be due to invalid IL or missing references) //IL_1759: Unknown result type (might be due to invalid IL or missing references) //IL_1760: Unknown result type (might be due to invalid IL or missing references) //IL_1768: Expected O, but got Unknown //IL_176d: Unknown result type (might be due to invalid IL or missing references) //IL_176f: Unknown result type (might be due to invalid IL or missing references) //IL_17a3: Unknown result type (might be due to invalid IL or missing references) //IL_17aa: Expected O, but got Unknown //IL_17d8: Unknown result type (might be due to invalid IL or missing references) //IL_17df: Expected O, but got Unknown //IL_181b: Unknown result type (might be due to invalid IL or missing references) //IL_1820: Unknown result type (might be due to invalid IL or missing references) //IL_182c: Unknown result type (might be due to invalid IL or missing references) //IL_1838: Expected O, but got Unknown PostProcessProfile val = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/DLC1/Common/Void/ppSceneVoidStage.asset").WaitForCompletion(); ppSceneVoidStageNew = ScriptableObject.CreateInstance<PostProcessProfile>(); ((Object)ppSceneVoidStageNew).name = "ppSceneVoidStageNew"; foreach (PostProcessEffectSettings setting in val.settings) { ppSceneVoidStageNew.AddSettings(Object.Instantiate<PostProcessEffectSettings>(setting)); } RampFog val2 = default(RampFog); if (ppSceneVoidStageNew.TryGetSettings<RampFog>(ref val2)) { ((ParameterOverride<float>)(object)val2.fogZero).Override(-0.001f); ((ParameterOverride<float>)(object)val2.fogOne).Override(0.06f); ((ParameterOverride<Color>)(object)val2.fogColorStart).Override(Color32.op_Implicit(new Color32((byte)61, (byte)63, (byte)82, (byte)0))); ((ParameterOverride<Color>)(object)val2.fogColorMid).Override(Color32.op_Implicit(new Color32((byte)66, (byte)67, (byte)101, (byte)100))); ((ParameterOverride<Color>)(object)val2.fogColorEnd).Override(Color32.op_Implicit(new Color32((byte)34, (byte)21, (byte)56, byte.MaxValue))); ((ParameterOverride<float>)(object)val2.skyboxStrength).Override(0.05f); } Vignette val3 = default(Vignette); if (ppSceneVoidStageNew.TryGetSettings<Vignette>(ref val3)) { ((ParameterOverride<float>)(object)val3.intensity).Override(0.4f); } matVoidOverhangNew = new Material(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/voidstage/matVoidOverhang.mat").WaitForCompletion()); matVoidOverhangNew.SetTexture("_SnowTex", Addressables.LoadAssetAsync<Texture>((object)"RoR2/Base/Common/Props/texSand1.png").WaitForCompletion()); matVoidCrystalNew = new Material(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/voidstage/matVoidCrystal.mat").WaitForCompletion()); matVoidCrystalNew.SetColor("_Color", Color.white); matVoidCrystalNew.SetTexture("_MainTex", Addressables.LoadAssetAsync<Texture>((object)"RoR2/DLC1/sulfurpools/texSPCoralEmi.png").WaitForCompletion()); matVoidCrystalNew.SetFloat("_RampInfo", 0f); ExpansionDef val4 = Addressables.LoadAssetAsync<ExpansionDef>((object)"RoR2/DLC1/Common/DLC1.asset").WaitForCompletion(); CharacterSpawnCard val5 = ScriptableObject.CreateInstance<CharacterSpawnCard>(); ((Object)val5).name = "cscUnderwaterLemurian"; ((SpawnCard)val5).prefab = Assets.UnderwaterLemurianMaster; ((SpawnCard)val5).sendOverNetwork = true; ((SpawnCard)val5).hullSize = (HullClassification)0; ((SpawnCard)val5).nodeGraphType = (GraphType)0; ((SpawnCard)val5).requiredFlags = (NodeFlags)0; ((SpawnCard)val5).forbiddenFlags = (NodeFlags)4; ((SpawnCard)val5).directorCreditCost = 8; ((SpawnCard)val5).occupyPosition = false; dccsMonsters = ScriptableObject.CreateInstance<DirectorCardCategorySelection>(); ((Object)dccsMonsters).name = "dccsVoidStageMonstersNew"; dccsMonsters.categories = (Category[])(object)new Category[4] { new Category { name = "Basic Monsters", selectionWeight = 3f, cards = (DirectorCard[])(object)new DirectorCard[3] { new DirectorCard { spawnCard = (SpawnCard)(object)val5, selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Imp/cscImp.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/RoboBallBoss/cscRoboBallMini.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true } } }, new Category { name = "Minibosses", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[3] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Golem/cscGolemSandy.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/LemurianBruiser/cscLemurianBruiser.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ClayBruiser/cscClayBruiser.asset").WaitForCompletion(), selectionWeight = 3 } } }, new Category { name = "Champions", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Titan/cscTitanGooLake.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ImpBoss/cscImpBoss.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/RoboBallBoss/cscRoboBallBoss.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ElectricWorm/cscElectricWorm.asset").WaitForCompletion(), selectionWeight = 2 } } }, new Category { name = "Special", selectionWeight = 1f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Scav/cscScav.asset").WaitForCompletion(), selectionWeight = 1, minimumStageCompletions = 5 } } } }; dccsMonstersDLC1 = ScriptableObject.CreateInstance<DirectorCardCategorySelection>(); ((Object)dccsMonstersDLC1).name = "dccsVoidStageMonstersDLC1New"; dccsMonstersDLC1.categories = (Category[])(object)new Category[4] { new Category { name = "Basic Monsters", selectionWeight = 3f, cards = (DirectorCard[])(object)new DirectorCard[3] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Imp/cscImp.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Lemurian/cscLemurian.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/RoboBallBoss/cscRoboBallMini.asset").WaitForCompletion(), selectionWeight = 2 } } }, new Category { name = "Minibosses", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[5] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Golem/cscGolemSandy.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ClayBruiser/cscClayBruiser.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/LemurianBruiser/cscLemurianBruiser.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/ClayGrenadier/cscClayGrenadier.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/Gup/cscGupBody.asset").WaitForCompletion(), selectionWeight = 1 } } }, new Category { name = "Champions", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Titan/cscTitanGooLake.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ImpBoss/cscImpBoss.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/RoboBallBoss/cscRoboBallBoss.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ElectricWorm/cscElectricWorm.asset").WaitForCompletion(), selectionWeight = 1 } } }, new Category { name = "Special", selectionWeight = 1f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Scav/cscScav.asset").WaitForCompletion(), selectionWeight = 1, minimumStageCompletions = 5 } } } }; dpMonsters = ScriptableObject.CreateInstance<DccsPool>(); ((Object)dpMonsters).name = "dpVoidStageMonstersNew"; DccsPool obj = dpMonsters; Category[] array = new Category[3]; Category val6 = new Category(); val6.name = "Standard"; val6.categoryWeight = 0.98f; val6.alwaysIncluded = Array.Empty<PoolEntry>(); Category obj2 = val6; ConditionalPoolEntry[] array2 = new ConditionalPoolEntry[1]; ConditionalPoolEntry val7 = new ConditionalPoolEntry(); ((PoolEntry)val7).dccs = dccsMonstersDLC1; ((PoolEntry)val7).weight = 1f; val7.requiredExpansions = (ExpansionDef[])(object)new ExpansionDef[1] { val4 }; array2[0] = val7; obj2.includedIfConditionsMet = (ConditionalPoolEntry[])(object)array2; val6.includedIfNoConditionsMet = (PoolEntry[])(object)new PoolEntry[1] { new PoolEntry { dccs = dccsMonsters, weight = 1f } }; array[0] = val6; val6 = new Category(); val6.name = "Family"; val6.categoryWeight = 0.02f; val6.alwaysIncluded = Array.Empty<PoolEntry>(); Category obj3 = val6; ConditionalPoolEntry[] obj4 = new ConditionalPoolEntry[4] { new ConditionalPoolEntry { dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsGolemFamilySandy.asset").WaitForCompletion(), weight = 3f, requiredExpansions = Array.Empty<ExpansionDef>() }, default(ConditionalPoolEntry), default(ConditionalPoolEntry), default(ConditionalPoolEntry) }; val7 = new ConditionalPoolEntry(); ((PoolEntry)val7).dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsImpFamily.asset").WaitForCompletion(); ((PoolEntry)val7).weight = 2f; val7.requiredExpansions = (ExpansionDef[])(object)new ExpansionDef[1] { val4 }; obj4[1] = val7; obj4[2] = new ConditionalPoolEntry { dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsParentFamily.asset").WaitForCompletion(), weight = 1f, requiredExpansions = Array.Empty<ExpansionDef>() }; obj4[3] = new ConditionalPoolEntry { dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/DLC1/Common/dccsConstructFamily.asset").WaitForCompletion(), weight = 3f, requiredExpansions = Array.Empty<ExpansionDef>() }; obj3.includedIfConditionsMet = (ConditionalPoolEntry[])(object)obj4; val6.includedIfNoConditionsMet = Array.Empty<PoolEntry>(); array[1] = val6; val6 = new Category(); val6.name = "VoidInvasion"; val6.categoryWeight = 0.02f; val6.alwaysIncluded = Array.Empty<PoolEntry>(); Category obj5 = val6; ConditionalPoolEntry[] array3 = new ConditionalPoolEntry[1]; val7 = new ConditionalPoolEntry(); ((PoolEntry)val7).dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/DLC1/Common/dccsVoidFamily.asset").WaitForCompletion(); ((PoolEntry)val7).weight = 1f; val7.requiredExpansions = (ExpansionDef[])(object)new ExpansionDef[1] { val4 }; array3[0] = val7; obj5.includedIfConditionsMet = (ConditionalPoolEntry[])(object)array3; val6.includedIfNoConditionsMet = Array.Empty<PoolEntry>(); array[2] = val6; obj.poolCategories = (Category[])(object)array; dccsInteractables = ScriptableObject.CreateInstance<DirectorCardCategorySelection>(); ((Object)dccsInteractables).name = "dccsVoidStageInteractablesNew"; dccsInteractables.categories = (Category[])(object)new Category[7] { new Category { name = "Chests", selectionWeight = 45f, cards = (DirectorCard[])(object)new DirectorCard[9] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Chest1/iscChest1.asset").WaitForCompletion(), selectionWeight = 24 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Chest2/iscChest2.asset").WaitForCompletion(), selectionWeight = 4 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/EquipmentBarrel/iscEquipmentBarrel.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/TripleShopEquipment/iscTripleShopEquipment.asset").WaitForCompletion(), selectionWeight = 4 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/LunarChest/iscLunarChest.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/TripleShopLarge/iscTripleShopLarge.asset").WaitForCompletion(), selectionWeight = 4 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestDamage.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestHealing.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestUtility.asset").WaitForCompletion(), selectionWeight = 2 } } }, new Category { name = "Barrels", selectionWeight = 10f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Barrel1/iscBarrel1.asset").WaitForCompletion(), selectionWeight = 10 } } }, new Category { name = "Shrines", selectionWeight = 8f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineChance/iscShrineChance.asset").WaitForCompletion(), selectionWeight = 40 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCombat/iscShrineCombat.asset").WaitForCompletion(), selectionWeight = 10 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineBoss/iscShrineBoss.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCleanse/iscShrineCleanse.asset").WaitForCompletion(), selectionWeight = 5 } } }, new Category { name = "Drones", selectionWeight = 3f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Drones/iscBrokenEmergencyDrone.asset").WaitForCompletion(), selectionWeight = 3 } } }, new Category { name = "Misc", selectionWeight = 1f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Drones/iscBrokenTurret1.asset").WaitForCompletion(), selectionWeight = 6 } } }, new Category { name = "Rare", selectionWeight = 0.4f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Chest1StealthedVariant/iscChest1Stealthed.asset").WaitForCompletion(), selectionWeight = 6 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/RadarTower/iscRadarTower.asset").WaitForCompletion(), selectionWeight = 2, forbiddenUnlockableDef = Addressables.LoadAssetAsync<UnlockableDef>((object)"RoR2/DLC1/voidstage/Logs.Stages.voidstage.asset").WaitForCompletion() }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineGoldshoresAccess/iscShrineGoldshoresAccess.asset").WaitForCompletion(), selectionWeight = 2, minimumStageCompletions = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/GoldChest/iscGoldChest.asset").WaitForCompletion(), selectionWeight = 2, minimumStageCompletions = 3 } } }, new Category { name = "Duplicator", selectionWeight = 8f, cards = (DirectorCard[])(object)new DirectorCard[5] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Duplicator/iscDuplicator.asset").WaitForCompletion(), selectionWeight = 28 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/DuplicatorLarge/iscDuplicatorLarge.asset").WaitForCompletion(), selectionWeight = 6, minimumStageCompletions = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/DuplicatorMilitary/iscDuplicatorMilitary.asset").WaitForCompletion(), selectionWeight = 1, minimumStageCompletions = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/DuplicatorWild/iscDuplicatorWild.asset").WaitForCompletion(), selectionWeight = 2, minimumStageCompletions = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Scrapper/iscScrapper.asset").WaitForCompletion(), selectionWeight = 13 } } } }; dccsInteractablesDLC1 = ScriptableObject.CreateInstance<DirectorCardCategorySelection>(); ((Object)dccsInteractablesDLC1).name = "dccsVoidStageInteractablesDLC1New"; dccsInteractablesDLC1.categories = (Category[])(object)new Category[8] { new Category { name = "Chests", selectionWeight = 45f, cards = (DirectorCard[])(object)new DirectorCard[12] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Chest1/iscChest1.asset").WaitForCompletion(), selectionWeight = 240 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Chest2/iscChest2.asset").WaitForCompletion(), selectionWeight = 37 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/EquipmentBarrel/iscEquipmentBarrel.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/TripleShopEquipment/iscTripleShopEquipment.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/LunarChest/iscLunarChest.asset").WaitForCompletion(), selectionWeight = 5 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/TripleShopLarge/iscTripleShopLarge.asset").WaitForCompletion(), selectionWeight = 40 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestDamage.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestHealing.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/CategoryChest/iscCategoryChestUtility.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Healing.asset").WaitForCompletion(), selectionWeight = 5 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Damage.asset").WaitForCompletion(), selectionWeight = 5 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Utility.asset").WaitForCompletion(), selectionWeight = 5 } } }, new Category { name = "Barrels", selectionWeight = 10f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Barrel1/iscBarrel1.asset").WaitForCompletion(), selectionWeight = 10 } } }, new Category { name = "Shrines", selectionWeight = 8f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineChance/iscShrineChance.asset").WaitForCompletion(), selectionWeight = 40 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCombat/iscShrineCombat.asset").WaitForCompletion(), selectionWeight = 15 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineBoss/iscShrineBoss.asset").WaitForCompletion(), selectionWeight = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCleanse/iscShrineCleanse.asset").WaitForCompletion(), selectionWeight = 5 } } }, new Category { name = "Drones", selectionWeight = 3f, cards = (DirectorCard[])(object)new DirectorCard[1] { new DirectorCard { spawnCard