Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of DesolateReef v1.1.1
CorruptsAllVoidStages.dll
Decompiled 2 years 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 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 = "")] [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: UnverifiableCode] 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> sgStage2; AsyncOperationHandle<SceneCollection> sgStage3; 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/sgStage2.asset", out sgStage2), CreateAddressableOp<SceneCollection>("RoR2/Base/SceneGroups/sgStage3.asset", out sgStage3), CreateAddressableOp<MusicTrackDef>("RoR2/DLC1/Common/muGameplayDLC1_06.asset", out soundlessDepths), CreateAddressableOp<MusicTrackDef>("RoR2/Base/Common/muSong05.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 = sgStage3.Result; ref SceneEntry[] sceneEntries = ref sgStage2.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 = 2; 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_02f9: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Expected O, but got Unknown //IL_0303: Unknown result type (might be due to invalid IL or missing references) //IL_0308: Unknown result type (might be due to invalid IL or missing references) //IL_030e: Unknown result type (might be due to invalid IL or missing references) //IL_0313: 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_0328: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Expected O, but got Unknown //IL_0332: Unknown result type (might be due to invalid IL or missing references) //IL_0337: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Unknown result type (might be due to invalid IL or missing references) //IL_0342: Unknown result type (might be due to invalid IL or missing references) //IL_0350: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Unknown result type (might be due to invalid IL or missing references) //IL_035f: Expected O, but got Unknown //IL_0364: 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_036f: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: 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_03b5: Unknown result type (might be due to invalid IL or missing references) //IL_03bd: Expected O, but got Unknown //IL_03bf: Unknown result type (might be due to invalid IL or missing references) //IL_03c4: Unknown result type (might be due to invalid IL or missing references) //IL_03ca: 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_03dd: Unknown result type (might be due to invalid IL or missing references) //IL_03e4: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Expected O, but got Unknown //IL_03ee: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_03f9: Unknown result type (might be due to invalid IL or missing references) //IL_03fe: Unknown result type (might be due to invalid IL or missing references) //IL_040c: Unknown result type (might be due to invalid IL or missing references) //IL_0414: Expected O, but got Unknown //IL_0419: Unknown result type (might be due to invalid IL or missing references) //IL_041b: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_044c: Unknown result type (might be due to invalid IL or missing references) //IL_0451: Unknown result type (might be due to invalid IL or missing references) //IL_0457: Unknown result type (might be due to invalid IL or missing references) //IL_045c: 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_0472: Expected O, but got Unknown //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_0479: Unknown result type (might be due to invalid IL or missing references) //IL_047f: Unknown result type (might be due to invalid IL or missing references) //IL_0484: 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_049a: Expected O, but got Unknown //IL_049c: Unknown result type (might be due to invalid IL or missing references) //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04ba: Unknown result type (might be due to invalid IL or missing references) //IL_04c2: Expected O, but got Unknown //IL_04c7: Unknown result type (might be due to invalid IL or missing references) //IL_04c9: Unknown result type (might be due to invalid IL or missing references) //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04fa: Unknown result type (might be due to invalid IL or missing references) //IL_04ff: Unknown result type (might be due to invalid IL or missing references) //IL_0505: 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_0518: Unknown result type (might be due to invalid IL or missing references) //IL_051f: Unknown result type (might be due to invalid IL or missing references) //IL_0527: Expected O, but got Unknown //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_052e: Unknown result type (might be due to invalid IL or missing references) //IL_0564: Unknown result type (might be due to invalid IL or missing references) //IL_058c: Unknown result type (might be due to invalid IL or missing references) //IL_0591: Unknown result type (might be due to invalid IL or missing references) //IL_0597: Unknown result type (might be due to invalid IL or missing references) //IL_059c: 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_05b1: Unknown result type (might be due to invalid IL or missing references) //IL_05b9: Expected O, but got Unknown //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c0: Unknown result type (might be due to invalid IL or missing references) //IL_05c6: Unknown result type (might be due to invalid IL or missing references) //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d9: Unknown result type (might be due to invalid IL or missing references) //IL_05e0: Unknown result type (might be due to invalid IL or missing references) //IL_05e8: Expected O, but got Unknown //IL_05ea: Unknown result type (might be due to invalid IL or missing references) //IL_05ef: Unknown result type (might be due to invalid IL or missing references) //IL_05f5: Unknown result type (might be due to invalid IL or missing references) //IL_05fa: Unknown result type (might be due to invalid IL or missing references) //IL_0608: Unknown result type (might be due to invalid IL or missing references) //IL_060f: Unknown result type (might be due to invalid IL or missing references) //IL_0611: Unknown result type (might be due to invalid IL or missing references) //IL_0617: Expected O, but got Unknown //IL_0619: Unknown result type (might be due to invalid IL or missing references) //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_0624: Unknown result type (might be due to invalid IL or missing references) //IL_0629: Unknown result type (might be due to invalid IL or missing references) //IL_0637: Unknown result type (might be due to invalid IL or missing references) //IL_063f: Expected O, but got Unknown //IL_0641: Unknown result type (might be due to invalid IL or missing references) //IL_0646: Unknown result type (might be due to invalid IL or missing references) //IL_064c: Unknown result type (might be due to invalid IL or missing references) //IL_0651: Unknown result type (might be due to invalid IL or missing references) //IL_065f: Unknown result type (might be due to invalid IL or missing references) //IL_0666: Unknown result type (might be due to invalid IL or missing references) //IL_066d: Unknown result type (might be due to invalid IL or missing references) //IL_0675: Expected O, but got Unknown //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_067c: 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_06ad: Unknown result type (might be due to invalid IL or missing references) //IL_06b2: Unknown result type (might be due to invalid IL or missing references) //IL_06b8: Unknown result type (might be due to invalid IL or missing references) //IL_06bd: Unknown result type (might be due to invalid IL or missing references) //IL_06cb: Unknown result type (might be due to invalid IL or missing references) //IL_06d3: Expected O, but got Unknown //IL_06d5: Unknown result type (might be due to invalid IL or missing references) //IL_06da: Unknown result type (might be due to invalid IL or missing references) //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_06e5: Unknown result type (might be due to invalid IL or missing references) //IL_06f3: Unknown result type (might be due to invalid IL or missing references) //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_0702: Expected O, but got Unknown //IL_0704: Unknown result type (might be due to invalid IL or missing references) //IL_0709: Unknown result type (might be due to invalid IL or missing references) //IL_070f: Unknown result type (might be due to invalid IL or missing references) //IL_0714: Unknown result type (might be due to invalid IL or missing references) //IL_0722: Unknown result type (might be due to invalid IL or missing references) //IL_072a: Expected O, but got Unknown //IL_072c: Unknown result type (might be due to invalid IL or missing references) //IL_0731: Unknown result type (might be due to invalid IL or missing references) //IL_0737: Unknown result type (might be due to invalid IL or missing references) //IL_073c: Unknown result type (might be due to invalid IL or missing references) //IL_074a: Unknown result type (might be due to invalid IL or missing references) //IL_0752: Expected O, but got Unknown //IL_0757: Unknown result type (might be due to invalid IL or missing references) //IL_0759: Unknown result type (might be due to invalid IL or missing references) //IL_0762: Unknown result type (might be due to invalid IL or missing references) //IL_078a: Unknown result type (might be due to invalid IL or missing references) //IL_078f: Unknown result type (might be due to invalid IL or missing references) //IL_0795: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_07a8: Unknown result type (might be due to invalid IL or missing references) //IL_07b0: Expected O, but got Unknown //IL_07b2: Unknown result type (might be due to invalid IL or missing references) //IL_07b7: Unknown result type (might be due to invalid IL or missing references) //IL_07bd: Unknown result type (might be due to invalid IL or missing references) //IL_07c2: Unknown result type (might be due to invalid IL or missing references) //IL_07d0: Unknown result type (might be due to invalid IL or missing references) //IL_07d8: Expected O, but got Unknown //IL_07da: Unknown result type (might be due to invalid IL or missing references) //IL_07df: Unknown result type (might be due to invalid IL or missing references) //IL_07e5: Unknown result type (might be due to invalid IL or missing references) //IL_07ea: Unknown result type (might be due to invalid IL or missing references) //IL_07f8: Unknown result type (might be due to invalid IL or missing references) //IL_0800: Expected O, but got Unknown //IL_0802: Unknown result type (might be due to invalid IL or missing references) //IL_0807: Unknown result type (might be due to invalid IL or missing references) //IL_080d: Unknown result type (might be due to invalid IL or missing references) //IL_0812: Unknown result type (might be due to invalid IL or missing references) //IL_0820: Unknown result type (might be due to invalid IL or missing references) //IL_0827: Unknown result type (might be due to invalid IL or missing references) //IL_082e: Unknown result type (might be due to invalid IL or missing references) //IL_0836: Expected O, but got Unknown //IL_083b: Unknown result type (might be due to invalid IL or missing references) //IL_083d: Unknown result type (might be due to invalid IL or missing references) //IL_0846: Unknown result type (might be due to invalid IL or missing references) //IL_086e: Unknown result type (might be due to invalid IL or missing references) //IL_0873: Unknown result type (might be due to invalid IL or missing references) //IL_0879: Unknown result type (might be due to invalid IL or missing references) //IL_087e: Unknown result type (might be due to invalid IL or missing references) //IL_088c: Unknown result type (might be due to invalid IL or missing references) //IL_0893: Unknown result type (might be due to invalid IL or missing references) //IL_089b: Expected O, but got Unknown //IL_08a0: Unknown result type (might be due to invalid IL or missing references) //IL_08a2: Unknown result type (might be due to invalid IL or missing references) //IL_08d6: Unknown result type (might be due to invalid IL or missing references) //IL_08dd: Expected O, but got Unknown //IL_090b: Unknown result type (might be due to invalid IL or missing references) //IL_0912: Expected O, but got Unknown //IL_094e: 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_095f: Unknown result type (might be due to invalid IL or missing references) //IL_096b: Expected O, but got Unknown //IL_0975: Unknown result type (might be due to invalid IL or missing references) //IL_097c: Expected O, but got Unknown //IL_09aa: 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_09b5: 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_09c8: Unknown result type (might be due to invalid IL or missing references) //IL_09d3: Unknown result type (might be due to invalid IL or missing references) //IL_09df: Expected O, but got Unknown //IL_09e1: Unknown result type (might be due to invalid IL or missing references) //IL_09e8: Expected O, but got Unknown //IL_09ef: Unknown result type (might be due to invalid IL or missing references) //IL_09f4: Unknown result type (might be due to invalid IL or missing references) //IL_0a24: Unknown result type (might be due to invalid IL or missing references) //IL_0a29: Unknown result type (might be due to invalid IL or missing references) //IL_0a2f: Unknown result type (might be due to invalid IL or missing references) //IL_0a34: Unknown result type (might be due to invalid IL or missing references) //IL_0a42: Unknown result type (might be due to invalid IL or missing references) //IL_0a4d: Unknown result type (might be due to invalid IL or missing references) //IL_0a59: Expected O, but got Unknown //IL_0a5b: Unknown result type (might be due to invalid IL or missing references) //IL_0a60: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Unknown result type (might be due to invalid IL or missing references) //IL_0a6b: 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_0a84: Unknown result type (might be due to invalid IL or missing references) //IL_0a90: Expected O, but got Unknown //IL_0aa6: Unknown result type (might be due to invalid IL or missing references) //IL_0aad: Expected O, but got Unknown //IL_0adb: Unknown result type (might be due to invalid IL or missing references) //IL_0ae2: Expected O, but got Unknown //IL_0ae9: Unknown result type (might be due to invalid IL or missing references) //IL_0aee: Unknown result type (might be due to invalid IL or missing references) //IL_0b61: Unknown result type (might be due to invalid IL or missing references) //IL_0b8a: Unknown result type (might be due to invalid IL or missing references) //IL_0b8f: Unknown result type (might be due to invalid IL or missing references) //IL_0b95: Unknown result type (might be due to invalid IL or missing references) //IL_0b9a: Unknown result type (might be due to invalid IL or missing references) //IL_0ba8: Unknown result type (might be due to invalid IL or missing references) //IL_0bb1: Expected O, but got Unknown //IL_0bb3: Unknown result type (might be due to invalid IL or missing references) //IL_0bb8: Unknown result type (might be due to invalid IL or missing references) //IL_0bbe: Unknown result type (might be due to invalid IL or missing references) //IL_0bc3: Unknown result type (might be due to invalid IL or missing references) //IL_0bd1: Unknown result type (might be due to invalid IL or missing references) //IL_0bd9: Expected O, but got Unknown //IL_0bdb: Unknown result type (might be due to invalid IL or missing references) //IL_0be0: Unknown result type (might be due to invalid IL or missing references) //IL_0be6: Unknown result type (might be due to invalid IL or missing references) //IL_0beb: Unknown result type (might be due to invalid IL or missing references) //IL_0bf9: Unknown result type (might be due to invalid IL or missing references) //IL_0c01: Expected O, but got Unknown //IL_0c03: Unknown result type (might be due to invalid IL or missing references) //IL_0c08: Unknown result type (might be due to invalid IL or missing references) //IL_0c0e: Unknown result type (might be due to invalid IL or missing references) //IL_0c13: Unknown result type (might be due to invalid IL or missing references) //IL_0c21: Unknown result type (might be due to invalid IL or missing references) //IL_0c29: Expected O, but got Unknown //IL_0c2b: Unknown result type (might be due to invalid IL or missing references) //IL_0c30: Unknown result type (might be due to invalid IL or missing references) //IL_0c36: Unknown result type (might be due to invalid IL or missing references) //IL_0c3b: Unknown result type (might be due to invalid IL or missing references) //IL_0c49: Unknown result type (might be due to invalid IL or missing references) //IL_0c51: Expected O, but got Unknown //IL_0c53: Unknown result type (might be due to invalid IL or missing references) //IL_0c58: Unknown result type (might be due to invalid IL or missing references) //IL_0c5e: Unknown result type (might be due to invalid IL or missing references) //IL_0c63: Unknown result type (might be due to invalid IL or missing references) //IL_0c71: Unknown result type (might be due to invalid IL or missing references) //IL_0c79: Expected O, but got Unknown //IL_0c7b: Unknown result type (might be due to invalid IL or missing references) //IL_0c80: Unknown result type (might be due to invalid IL or missing references) //IL_0c86: Unknown result type (might be due to invalid IL or missing references) //IL_0c8b: Unknown result type (might be due to invalid IL or missing references) //IL_0c99: Unknown result type (might be due to invalid IL or missing references) //IL_0ca1: Expected O, but got Unknown //IL_0ca3: Unknown result type (might be due to invalid IL or missing references) //IL_0ca8: Unknown result type (might be due to invalid IL or missing references) //IL_0cae: Unknown result type (might be due to invalid IL or missing references) //IL_0cb3: Unknown result type (might be due to invalid IL or missing references) //IL_0cc1: Unknown result type (might be due to invalid IL or missing references) //IL_0cc9: Expected O, but got Unknown //IL_0ccb: Unknown result type (might be due to invalid IL or missing references) //IL_0cd0: Unknown result type (might be due to invalid IL or missing references) //IL_0cd6: Unknown result type (might be due to invalid IL or missing references) //IL_0cdb: Unknown result type (might be due to invalid IL or missing references) //IL_0ce9: Unknown result type (might be due to invalid IL or missing references) //IL_0cf1: Expected O, but got Unknown //IL_0cf6: Unknown result type (might be due to invalid IL or missing references) //IL_0cf8: Unknown result type (might be due to invalid IL or missing references) //IL_0d01: Unknown result type (might be due to invalid IL or missing references) //IL_0d29: Unknown result type (might be due to invalid IL or missing references) //IL_0d2e: Unknown result type (might be due to invalid IL or missing references) //IL_0d34: Unknown result type (might be due to invalid IL or missing references) //IL_0d39: 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_0d50: Expected O, but got Unknown //IL_0d55: Unknown result type (might be due to invalid IL or missing references) //IL_0d57: Unknown result type (might be due to invalid IL or missing references) //IL_0d60: Unknown result type (might be due to invalid IL or missing references) //IL_0d88: Unknown result type (might be due to invalid IL or missing references) //IL_0d8d: 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_0d98: Unknown result type (might be due to invalid IL or missing references) //IL_0da6: Unknown result type (might be due to invalid IL or missing references) //IL_0daf: Expected O, but got Unknown //IL_0db1: Unknown result type (might be due to invalid IL or missing references) //IL_0db6: Unknown result type (might be due to invalid IL or missing references) //IL_0dbc: Unknown result type (might be due to invalid IL or missing references) //IL_0dc1: Unknown result type (might be due to invalid IL or missing references) //IL_0dcf: Unknown result type (might be due to invalid IL or missing references) //IL_0dd8: Expected O, but got Unknown //IL_0dda: Unknown result type (might be due to invalid IL or missing references) //IL_0ddf: Unknown result type (might be due to invalid IL or missing references) //IL_0de5: Unknown result type (might be due to invalid IL or missing references) //IL_0dea: Unknown result type (might be due to invalid IL or missing references) //IL_0df8: Unknown result type (might be due to invalid IL or missing references) //IL_0e01: Expected O, but got Unknown //IL_0e03: Unknown result type (might be due to invalid IL or missing references) //IL_0e08: Unknown result type (might be due to invalid IL or missing references) //IL_0e0e: Unknown result type (might be due to invalid IL or missing references) //IL_0e13: Unknown result type (might be due to invalid IL or missing references) //IL_0e21: Unknown result type (might be due to invalid IL or missing references) //IL_0e29: Expected O, but got Unknown //IL_0e2e: Unknown result type (might be due to invalid IL or missing references) //IL_0e30: Unknown result type (might be due to invalid IL or missing references) //IL_0e39: Unknown result type (might be due to invalid IL or missing references) //IL_0e61: Unknown result type (might be due to invalid IL or missing references) //IL_0e66: Unknown result type (might be due to invalid IL or missing references) //IL_0e6c: Unknown result type (might be due to invalid IL or missing references) //IL_0e71: Unknown result type (might be due to invalid IL or missing references) //IL_0e7f: Unknown result type (might be due to invalid IL or missing references) //IL_0e87: Expected O, but got Unknown //IL_0e8c: Unknown result type (might be due to invalid IL or missing references) //IL_0e8e: Unknown result type (might be due to invalid IL or missing references) //IL_0e97: Unknown result type (might be due to invalid IL or missing references) //IL_0ebf: Unknown result type (might be due to invalid IL or missing references) //IL_0ec4: Unknown result type (might be due to invalid IL or missing references) //IL_0eca: Unknown result type (might be due to invalid IL or missing references) //IL_0ecf: Unknown result type (might be due to invalid IL or missing references) //IL_0edd: Unknown result type (might be due to invalid IL or missing references) //IL_0ee5: Expected O, but got Unknown //IL_0eea: Unknown result type (might be due to invalid IL or missing references) //IL_0eec: 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_0f1d: Unknown result type (might be due to invalid IL or missing references) //IL_0f22: Unknown result type (might be due to invalid IL or missing references) //IL_0f28: Unknown result type (might be due to invalid IL or missing references) //IL_0f2d: Unknown result type (might be due to invalid IL or missing references) //IL_0f3b: Unknown result type (might be due to invalid IL or missing references) //IL_0f43: Expected O, but got Unknown //IL_0f45: Unknown result type (might be due to invalid IL or missing references) //IL_0f4a: 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_0f55: Unknown result type (might be due to invalid IL or missing references) //IL_0f63: Unknown result type (might be due to invalid IL or missing references) //IL_0f6a: Unknown result type (might be due to invalid IL or missing references) //IL_0f70: Unknown result type (might be due to invalid IL or missing references) //IL_0f75: Unknown result type (might be due to invalid IL or missing references) //IL_0f84: Expected O, but got Unknown //IL_0f86: Unknown result type (might be due to invalid IL or missing references) //IL_0f8b: Unknown result type (might be due to invalid IL or missing references) //IL_0f91: Unknown result type (might be due to invalid IL or missing references) //IL_0f96: Unknown result type (might be due to invalid IL or missing references) //IL_0fa4: Unknown result type (might be due to invalid IL or missing references) //IL_0fab: Unknown result type (might be due to invalid IL or missing references) //IL_0fb3: Expected O, but got Unknown //IL_0fb5: Unknown result type (might be due to invalid IL or missing references) //IL_0fba: Unknown result type (might be due to invalid IL or missing references) //IL_0fc0: Unknown result type (might be due to invalid IL or missing references) //IL_0fc5: 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_0fda: Unknown result type (might be due to invalid IL or missing references) //IL_0fe2: Expected O, but got Unknown //IL_0fe7: Unknown result type (might be due to invalid IL or missing references) //IL_0fe9: Unknown result type (might be due to invalid IL or missing references) //IL_0ff2: Unknown result type (might be due to invalid IL or missing references) //IL_101a: Unknown result type (might be due to invalid IL or missing references) //IL_101f: Unknown result type (might be due to invalid IL or missing references) //IL_1025: Unknown result type (might be due to invalid IL or missing references) //IL_102a: Unknown result type (might be due to invalid IL or missing references) //IL_1038: Unknown result type (might be due to invalid IL or missing references) //IL_1041: Expected O, but got Unknown //IL_1043: Unknown result type (might be due to invalid IL or missing references) //IL_1048: Unknown result type (might be due to invalid IL or missing references) //IL_104e: Unknown result type (might be due to invalid IL or missing references) //IL_1053: Unknown result type (might be due to invalid IL or missing references) //IL_1061: Unknown result type (might be due to invalid IL or missing references) //IL_1068: Unknown result type (might be due to invalid IL or missing references) //IL_1070: Expected O, but got Unknown //IL_1072: Unknown result type (might be due to invalid IL or missing references) //IL_1077: Unknown result type (might be due to invalid IL or missing references) //IL_107d: Unknown result type (might be due to invalid IL or missing references) //IL_1082: Unknown result type (might be due to invalid IL or missing references) //IL_1090: Unknown result type (might be due to invalid IL or missing references) //IL_1097: Unknown result type (might be due to invalid IL or missing references) //IL_109f: Expected O, but got Unknown //IL_10a1: Unknown result type (might be due to invalid IL or missing references) //IL_10a6: Unknown result type (might be due to invalid IL or missing references) //IL_10ac: Unknown result type (might be due to invalid IL or missing references) //IL_10b1: 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_10c6: Unknown result type (might be due to invalid IL or missing references) //IL_10ce: Expected O, but got Unknown //IL_10d0: Unknown result type (might be due to invalid IL or missing references) //IL_10d5: Unknown result type (might be due to invalid IL or missing references) //IL_10db: Unknown result type (might be due to invalid IL or missing references) //IL_10e0: Unknown result type (might be due to invalid IL or missing references) //IL_10ee: Unknown result type (might be due to invalid IL or missing references) //IL_10f7: Expected O, but got Unknown //IL_10fc: Unknown result type (might be due to invalid IL or missing references) //IL_10fe: Unknown result type (might be due to invalid IL or missing references) //IL_1134: Unknown result type (might be due to invalid IL or missing references) //IL_115d: Unknown result type (might be due to invalid IL or missing references) //IL_1162: Unknown result type (might be due to invalid IL or missing references) //IL_1168: Unknown result type (might be due to invalid IL or missing references) //IL_116d: Unknown result type (might be due to invalid IL or missing references) //IL_117b: Unknown result type (might be due to invalid IL or missing references) //IL_1187: Expected O, but got Unknown //IL_1189: Unknown result type (might be due to invalid IL or missing references) //IL_118e: 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_1199: Unknown result type (might be due to invalid IL or missing references) //IL_11a7: Unknown result type (might be due to invalid IL or missing references) //IL_11b0: Expected O, but got Unknown //IL_11b2: Unknown result type (might be due to invalid IL or missing references) //IL_11b7: Unknown result type (might be due to invalid IL or missing references) //IL_11bd: 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_11d0: Unknown result type (might be due to invalid IL or missing references) //IL_11d9: Expected O, but got Unknown //IL_11db: Unknown result type (might be due to invalid IL or missing references) //IL_11e0: Unknown result type (might be due to invalid IL or missing references) //IL_11e6: 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_11f9: Unknown result type (might be due to invalid IL or missing references) //IL_1202: Expected O, but got Unknown //IL_1204: Unknown result type (might be due to invalid IL or missing references) //IL_1209: Unknown result type (might be due to invalid IL or missing references) //IL_120f: 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_1222: Unknown result type (might be due to invalid IL or missing references) //IL_122b: Expected O, but got Unknown //IL_122d: Unknown result type (might be due to invalid IL or missing references) //IL_1232: Unknown result type (might be due to invalid IL or missing references) //IL_1238: 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_124b: Unknown result type (might be due to invalid IL or missing references) //IL_1254: Expected O, but got Unknown //IL_1256: Unknown result type (might be due to invalid IL or missing references) //IL_125b: 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_1266: Unknown result type (might be due to invalid IL or missing references) //IL_1274: Unknown result type (might be due to invalid IL or missing references) //IL_127d: Expected O, but got Unknown //IL_127f: Unknown result type (might be due to invalid IL or missing references) //IL_1284: 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_128f: Unknown result type (might be due to invalid IL or missing references) //IL_129d: Unknown result type (might be due to invalid IL or missing references) //IL_12a6: Expected O, but got Unknown //IL_12a8: Unknown result type (might be due to invalid IL or missing references) //IL_12ad: 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_12b8: Unknown result type (might be due to invalid IL or missing references) //IL_12c6: Unknown result type (might be due to invalid IL or missing references) //IL_12cf: Expected O, but got Unknown //IL_12d2: Unknown result type (might be due to invalid IL or missing references) //IL_12d7: Unknown result type (might be due to invalid IL or missing references) //IL_12dd: Unknown result type (might be due to invalid IL or missing references) //IL_12e2: Unknown result type (might be due to invalid IL or missing references) //IL_12f0: Unknown result type (might be due to invalid IL or missing references) //IL_12f8: Expected O, but got Unknown //IL_12fd: Unknown result type (might be due to invalid IL or missing references) //IL_12ff: Unknown result type (might be due to invalid IL or missing references) //IL_1308: Unknown result type (might be due to invalid IL or missing references) //IL_1330: Unknown result type (might be due to invalid IL or missing references) //IL_1335: Unknown result type (might be due to invalid IL or missing references) //IL_133b: Unknown result type (might be due to invalid IL or missing references) //IL_1340: Unknown result type (might be due to invalid IL or missing references) //IL_134e: Unknown result type (might be due to invalid IL or missing references) //IL_1357: Expected O, but got Unknown //IL_135c: Unknown result type (might be due to invalid IL or missing references) //IL_135e: Unknown result type (might be due to invalid IL or missing references) //IL_1367: Unknown result type (might be due to invalid IL or missing references) //IL_138f: Unknown result type (might be due to invalid IL or missing references) //IL_1394: Unknown result type (might be due to invalid IL or missing references) //IL_139a: 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_13ad: Unknown result type (might be due to invalid IL or missing references) //IL_13b6: Expected O, but got Unknown //IL_13b8: Unknown result type (might be due to invalid IL or missing references) //IL_13bd: Unknown result type (might be due to invalid IL or missing references) //IL_13c3: 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_13d6: Unknown result type (might be due to invalid IL or missing references) //IL_13df: Expected O, but got Unknown //IL_13e1: Unknown result type (might be due to invalid IL or missing references) //IL_13e6: Unknown result type (might be due to invalid IL or missing references) //IL_13ec: 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_13ff: Unknown result type (might be due to invalid IL or missing references) //IL_1408: Expected O, but got Unknown //IL_140a: Unknown result type (might be due to invalid IL or missing references) //IL_140f: Unknown result type (might be due to invalid IL or missing references) //IL_1415: Unknown result type (might be due to invalid IL or missing references) //IL_141a: Unknown result type (might be due to invalid IL or missing references) //IL_1428: Unknown result type (might be due to invalid IL or missing references) //IL_1430: Expected O, but got Unknown //IL_1435: Unknown result type (might be due to invalid IL or missing references) //IL_1437: Unknown result type (might be due to invalid IL or missing references) //IL_1440: Unknown result type (might be due to invalid IL or missing references) //IL_1468: Unknown result type (might be due to invalid IL or missing references) //IL_146d: Unknown result type (might be due to invalid IL or missing references) //IL_1473: Unknown result type (might be due to invalid IL or missing references) //IL_1478: Unknown result type (might be due to invalid IL or missing references) //IL_1486: Unknown result type (might be due to invalid IL or missing references) //IL_148e: Expected O, but got Unknown //IL_1493: Unknown result type (might be due to invalid IL or missing references) //IL_1495: Unknown result type (might be due to invalid IL or missing references) //IL_149e: Unknown result type (might be due to invalid IL or missing references) //IL_14c6: Unknown result type (might be due to invalid IL or missing references) //IL_14cb: Unknown result type (might be due to invalid IL or missing references) //IL_14d1: Unknown result type (might be due to invalid IL or missing references) //IL_14d6: Unknown result type (might be due to invalid IL or missing references) //IL_14e4: Unknown result type (might be due to invalid IL or missing references) //IL_14ec: Expected O, but got Unknown //IL_14f1: Unknown result type (might be due to invalid IL or missing references) //IL_14f3: Unknown result type (might be due to invalid IL or missing references) //IL_14fc: Unknown result type (might be due to invalid IL or missing references) //IL_1524: Unknown result type (might be due to invalid IL or missing references) //IL_1529: Unknown result type (might be due to invalid IL or missing references) //IL_152f: Unknown result type (might be due to invalid IL or missing references) //IL_1534: Unknown result type (might be due to invalid IL or missing references) //IL_1542: Unknown result type (might be due to invalid IL or missing references) //IL_154a: Expected O, but got Unknown //IL_154c: Unknown result type (might be due to invalid IL or missing references) //IL_1551: Unknown result type (might be due to invalid IL or missing references) //IL_1557: Unknown result type (might be due to invalid IL or missing references) //IL_155c: Unknown result type (might be due to invalid IL or missing references) //IL_156a: Unknown result type (might be due to invalid IL or missing references) //IL_1571: Unknown result type (might be due to invalid IL or missing references) //IL_1577: Unknown result type (might be due to invalid IL or missing references) //IL_157c: Unknown result type (might be due to invalid IL or missing references) //IL_158b: Expected O, but got Unknown //IL_158d: Unknown result type (might be due to invalid IL or missing references) //IL_1592: Unknown result type (might be due to invalid IL or missing references) //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_15ab: Unknown result type (might be due to invalid IL or missing references) //IL_15b2: Unknown result type (might be due to invalid IL or missing references) //IL_15ba: Expected O, but got Unknown //IL_15bc: Unknown result type (might be due to invalid IL or missing references) //IL_15c1: Unknown result type (might be due to invalid IL or missing references) //IL_15c7: 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_15da: Unknown result type (might be due to invalid IL or missing references) //IL_15e1: Unknown result type (might be due to invalid IL or missing references) //IL_15e9: Expected O, but got Unknown //IL_15ee: Unknown result type (might be due to invalid IL or missing references) //IL_15f0: Unknown result type (might be due to invalid IL or missing references) //IL_15f9: Unknown result type (might be due to invalid IL or missing references) //IL_1621: Unknown result type (might be due to invalid IL or missing references) //IL_1626: Unknown result type (might be due to invalid IL or missing references) //IL_162c: 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_163f: Unknown result type (might be due to invalid IL or missing references) //IL_1648: Expected O, but got Unknown //IL_164a: Unknown result type (might be due to invalid IL or missing references) //IL_164f: Unknown result type (might be due to invalid IL or missing references) //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_1668: Unknown result type (might be due to invalid IL or missing references) //IL_166f: Unknown result type (might be due to invalid IL or missing references) //IL_1677: Expected O, but got Unknown //IL_1679: Unknown result type (might be due to invalid IL or missing references) //IL_167e: Unknown result type (might be due to invalid IL or missing references) //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_1697: Unknown result type (might be due to invalid IL or missing references) //IL_169e: Unknown result type (might be due to invalid IL or missing references) //IL_16a6: Expected O, but got Unknown //IL_16a8: Unknown result type (might be due to invalid IL or missing references) //IL_16ad: Unknown result type (might be due to invalid IL or missing references) //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_16c6: Unknown result type (might be due to invalid IL or missing references) //IL_16cd: Unknown result type (might be due to invalid IL or missing references) //IL_16d5: Expected O, but got Unknown //IL_16d7: Unknown result type (might be due to invalid IL or missing references) //IL_16dc: Unknown result type (might be due to invalid IL or missing references) //IL_16e2: Unknown result type (might be due to invalid IL or missing references) //IL_16e7: Unknown result type (might be due to invalid IL or missing references) //IL_16f5: Unknown result type (might be due to invalid IL or missing references) //IL_16fe: Expected O, but got Unknown //IL_1703: Unknown result type (might be due to invalid IL or missing references) //IL_1705: Unknown result type (might be due to invalid IL or missing references) //IL_170e: Unknown result type (might be due to invalid IL or missing references) //IL_1736: Unknown result type (might be due to invalid IL or missing references) //IL_173b: Unknown result type (might be due to invalid IL or missing references) //IL_1741: 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_1754: Unknown result type (might be due to invalid IL or missing references) //IL_175d: Expected O, but got Unknown //IL_175f: Unknown result type (might be due to invalid IL or missing references) //IL_1764: Unknown result type (might be due to invalid IL or missing references) //IL_176a: 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_177d: Unknown result type (might be due to invalid IL or missing references) //IL_1784: Unknown result type (might be due to invalid IL or missing references) //IL_178c: Expected O, but got Unknown //IL_1791: Unknown result type (might be due to invalid IL or missing references) //IL_1793: Unknown result type (might be due to invalid IL or missing references) //IL_17c7: Unknown result type (might be due to invalid IL or missing references) //IL_17ce: Expected O, but got Unknown //IL_17fc: Unknown result type (might be due to invalid IL or missing references) //IL_1803: Expected O, but got Unknown //IL_183f: Unknown result type (might be due to invalid IL or missing references) //IL_1844: Unknown result type (might be due to invalid IL or missing references) //IL_1850: Unknown result type (might be due to invalid IL or missing references) //IL_185c: 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[4] { new DirectorCard { spawnCard = (SpawnCard)(object)val5, selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Wisp/cscLesserWisp.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Jellyfish/cscJellyfish.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/HermitCrab/cscHermitCrab.asset").WaitForCompletion(), selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)2 } } }, 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 = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/GreaterWisp/cscGreaterWisp.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/MiniMushroom/cscMiniMushroom.asset").WaitForCompletion(), selectionWeight = 1 } } }, new Category { name = "Champions", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[3] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Titan/cscTitanGooLake.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Vagrant/cscVagrant.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/MagmaWorm/cscMagmaWorm.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 } } } }; 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[5] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Wisp/cscLesserWisp.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Jellyfish/cscJellyfish.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/HermitCrab/cscHermitCrab.asset").WaitForCompletion(), selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/AcidLarva/cscAcidLarva.asset").WaitForCompletion(), selectionWeight = 2 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/MajorAndMinorConstruct/cscMinorConstruct.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true, minimumStageCompletions = 3 } } }, new Category { name = "Minibosses", selectionWeight = 2f, cards = (DirectorCard[])(object)new DirectorCard[4] { new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/Golem/cscGolemSandy.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/GreaterWisp/cscGreaterWisp.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/MiniMushroom/cscMiniMushroom.asset").WaitForCompletion(), selectionWeight = 1 }, 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/Vagrant/cscVagrant.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/MagmaWorm/cscMagmaWorm.asset").WaitForCompletion(), selectionWeight = 1 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/DLC1/MajorAndMinorConstruct/cscMegaConstruct.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 3 } } }, 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/dccsGolemFamily.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/dccsGupFamily.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/dccsImpFamily.asset").WaitForCompletion(), weight = 1f, requiredExpansions = Array.Empty<ExpansionDef>() }; obj4[3] = new ConditionalPoolEntry { dccs = Addressables.LoadAssetAsync<DirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsJellyfishFamily.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/TripleShop/iscTripleShop.asset").WaitForCompletion(), selectionWeight = 8 }, 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 = 1 }, 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 = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineBoss/iscShrineBoss.asset").WaitForCompletion(), selectionWeight = 10 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCleanse/iscShrineCleanse.asset").WaitForCompletion(), selectionWeight = 3 } } }, 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 = 6f, 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 = 30 }, 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 = 4 }, 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 = 12 } } } }; 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[10] { 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/TripleShop/iscTripleShop.asset").WaitForCompletion(), selectionWeight = 80 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/LunarChest/iscLunarChest.asset").WaitForCompletion(), selectionWeight = 10 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/TripleShopLarge/iscTripleShopLarge.asset").WaitForCompletion(), selectionWeight = 10 }, 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 = 3 } } }, 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 = 20 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineBoss/iscShrineBoss.asset").WaitForCompletion(), selectionWeight = 10 }, new DirectorCard { spawnCard = Addressables.LoadAssetAsync<SpawnCard>((object)"RoR2/Base/ShrineCleanse/iscShrineCleanse.asset").WaitForCompletion(), selectionWeight = 3 } } }, 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 = 6f, 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 } } },