Decompiled source of WLoopWeather v1.5.0
LoopVariants.dll
Decompiled 3 weeks ago
The result has been truncated due to the large size, download it to view full contents!
using System; 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 BepInEx; using BepInEx.Configuration; using EntityStates; using EntityStates.Destructible; using HG; using On.EntityStates.Destructible; using On.RoR2; using On.RoR2.UI; using RiskOfOptions; using RiskOfOptions.OptionConfigs; using RiskOfOptions.Options; using RoR2; using RoR2.UI; using TMPro; using ThreeEyedGames; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.Rendering.PostProcessing; using VariantConfig; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("LoopVariants")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+a995d56cedb03472696611ebdb34b9f8019605d5")] [assembly: AssemblyProduct("LoopVariants")] [assembly: AssemblyTitle("LoopVariants")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace LoopVariants; internal static class Assets { public static AssetBundle Bundle; public static PluginInfo PluginInfo; public static string Folder = "LoopWeather"; internal static string assemblyDir => Path.GetDirectoryName(PluginInfo.Location); public static T LoadAssetAsync<T>(string name) where T : Object { AssetBundleRequest val = Bundle.LoadAssetAsync<T>(name); Object asset = val.asset; return (T)(object)((asset is T) ? asset : null); } internal static void Init(PluginInfo info) { //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown PluginInfo = info; if (!Directory.Exists(GetPathToFile(Folder))) { Debug.LogWarning((object)(Folder + " | Folder does not exist")); Folder = "plugins\\" + Folder; if (!Directory.Exists(GetPathToFile(Folder))) { Debug.LogWarning((object)(Folder + " | Folder does not exist")); } } if (Directory.Exists(GetPathToFile(Folder + "\\Languages"))) { Language.SetFolders += new hook_SetFolders(SetFolders); } else { Debug.LogWarning((object)(Folder + "\\Languages | Folder does not exist")); } if (Directory.Exists(GetPathToFile(Folder + "\\AssetBundles"))) { Bundle = AssetBundle.LoadFromFile(GetPathToFile(Folder + "\\AssetBundles", "loopvariants")); } else { Debug.LogWarning((object)(Folder + "\\AssetBundles | Folder does not exist")); } } private static void SetFolders(orig_SetFolders orig, Language self, IEnumerable<string> newFolders) { IEnumerable<string> second = Directory.EnumerateDirectories(Path.Combine(GetPathToFile(Folder + "\\Languages")), self.name); orig.Invoke(self, newFolders.Union(second)); } internal static string GetPathToFile(string folderName) { return Path.Combine(assemblyDir, folderName); } internal static string GetPathToFile(string folderName, string fileName) { return Path.Combine(assemblyDir, folderName, fileName); } } public static class WConfig { public enum EnumEnemyAdds { Never, LittleGameplayTweaks, Always } public enum AddContent { Never, AutoDetect, Always } public enum TarRiver { Off, VisualOnly, Inflicts } public static ConfigFile ConfigFileSTAGES = new ConfigFile(Paths.ConfigPath + "\\Wolfo.LoopVariants.cfg", true); public static ConfigEntry<bool> Monster_Additions; public static ConfigEntry<bool> Name_Changes; public static ConfigEntry<bool> LegacyVariants; public static ConfigEntry<bool> S_1_Golem; public static ConfigEntry<bool> S_1_Roost; public static ConfigEntry<bool> S_1_Snow; public static ConfigEntry<bool> S_1_SnowIceCream; public static ConfigEntry<bool> S_2_Goolake; public static ConfigEntry<bool> S_2_Goolake_River; public static ConfigEntry<bool> S_2_FoggySwamp; public static ConfigEntry<bool> S_2_Ancient; public static ConfigEntry<bool> S_2_LemurianTemple_Legacy; public static ConfigEntry<bool> S_2_LemurianTemple_HabitatFall; public static ConfigEntry<bool> S_3_Frozen; public static ConfigEntry<bool> S_3_Wisp; public static ConfigEntry<bool> S_3_Sulfur; public static ConfigEntry<bool> S_3_Sulfur_ExtraLights; public static ConfigEntry<bool> S_4_DampAbyss_Legacy; public static ConfigEntry<bool> S_4_Ship; public static ConfigEntry<bool> S_4_Root_Jungle; public static ConfigEntry<bool> S_5_Sky; public static ConfigEntry<bool> S_5_Helminth_Legacy; public static ConfigEntry<bool> S_6_Commencement; public static ConfigEntry<bool> S_6_Meridian; public static ConfigEntry<bool> WIP; public static ConfigEntry<bool> Enemy_1_Golem; public static ConfigEntry<bool> Enemy_1_Roost; public static ConfigEntry<bool> Enemy_1_Snow; public static ConfigEntry<bool> Enemy_1_Lakes; public static ConfigEntry<bool> Enemy_1_Village; public static ConfigEntry<bool> Enemy_2_Goolake; public static ConfigEntry<bool> Enemy_2_Swamp; public static ConfigEntry<bool> Enemy_2_Ancient; public static ConfigEntry<bool> Enemy_2_Temple; public static ConfigEntry<bool> Enemy_3_Frozen; public static ConfigEntry<bool> Enemy_3_Wisp; public static ConfigEntry<bool> Enemy_3_Sulfur; public static ConfigEntry<bool> Enemy_4_Damp_Abyss_Legacy; public static ConfigEntry<bool> Enemy_4_Ship; public static ConfigEntry<bool> Enemy_4_Root_Jungle; public static ConfigEntry<bool> Enemy_5_Sky; public static ConfigEntry<bool> Enemy_6_Commencement; public static ConfigEntry<bool> Enemy_6_Meridian; public static void InitConfig() { Monster_Additions = ConfigFileSTAGES.Bind<bool>("Main", "Add monsters to weather variants", true, "Add additional monsters to the spawn pool of variants.\n\nWill only add if it detects all users have mod."); LegacyVariants = ConfigFileSTAGES.Bind<bool>("Main", "Legacy Variants", false, "I may disable variants i'm not entirely happy with after some time.\nThis changes the config value of all of those\nYou can still turn them on or off individually"); LegacyVariants.SettingChanged += LegacyVariants_SettingChanged; Name_Changes = ConfigFileSTAGES.Bind<bool>("Main", "Name Changes", true, "Should variants display a different name like official variants."); WIP = ConfigFileSTAGES.Bind<bool>("Testing", "Wip", false, "Not much to see"); InitConfigStages(); } private static void LegacyVariants_SettingChanged(object sender, EventArgs e) { S_2_LemurianTemple_Legacy = LegacyVariants; S_4_DampAbyss_Legacy = LegacyVariants; S_5_Helminth_Legacy = LegacyVariants; } public static void RiskConfig() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Expected O, but got Unknown //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Expected O, but got Unknown //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Expected O, but got Unknown //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Expected O, but got Unknown //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Expected O, but got Unknown //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Expected O, but got Unknown //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Expected O, but got Unknown //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Expected O, but got Unknown //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Expected O, but got Unknown //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Expected O, but got Unknown //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Expected O, but got Unknown //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Expected O, but got Unknown //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Expected O, but got Unknown //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Expected O, but got Unknown //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Expected O, but got Unknown ModSettingsManager.SetModIcon(Assets.LoadAssetAsync<Sprite>("Assets/LoopVariants/Icon.png")); ModSettingsManager.SetModDescription("Loop Weather Variants for more stages."); CheckBoxConfig val = new CheckBoxConfig { name = "Gameplay Changes" }; ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Monster_Additions)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Name_Changes)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(LegacyVariants)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_1_Golem)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_1_Snow)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Enemy_1_Snow)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_2_Goolake)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_2_Goolake_River)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_2_FoggySwamp)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_2_Ancient)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Enemy_2_Ancient)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_2_LemurianTemple_Legacy)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_3_Wisp)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Enemy_3_Wisp)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_3_Sulfur)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_3_Sulfur_ExtraLights)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_4_DampAbyss_Legacy)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Enemy_4_Damp_Abyss_Legacy)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_4_Root_Jungle)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(Enemy_4_Root_Jungle)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_5_Helminth_Legacy)); ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(S_6_Meridian)); } public static void InitConfigStages() { S_1_Golem = ConfigFileSTAGES.Bind<bool>("Stage 1", "Titanic Plains", true, "Enable alt weather for this stage. Sunset Plains"); S_1_Roost = ConfigFileSTAGES.Bind<bool>("Stage 1", "Distant Roost", true, "Enable alt weather for this stage. Not implemented"); S_1_Snow = ConfigFileSTAGES.Bind<bool>("Stage 1", "Siphoned Forest", true, "Enable alt weather for this stage. Night Time Aurora Borealis"); Enemy_1_Snow = ConfigFileSTAGES.Bind<bool>("Stage 1", "Siphoned Forest | Monsters", true, "Add mobs to Variant : Greater Wisps"); S_2_Goolake = ConfigFileSTAGES.Bind<bool>("Stage 2", "Abandoned Aquaduct", true, "Enable alt weather for this stage. Tar Filled, Green sick-ish feeling"); S_2_Goolake_River = ConfigFileSTAGES.Bind<bool>("Stage 2", "Abandoned Aquaduct | River of Tar", true, "Enable the Tar River in the alt of this stage"); S_2_FoggySwamp = ConfigFileSTAGES.Bind<bool>("Stage 2", "Wetland Aspect", true, "Enable alt weather for this stage. Foggy and Rainy"); S_2_Ancient = ConfigFileSTAGES.Bind<bool>("Stage 2", "Aphelian Sanctuary", true, "Enable alt weather for this stage. Night Time/Eclipsed Sun"); Enemy_2_Ancient = ConfigFileSTAGES.Bind<bool>("Stage 2", "Aphelian Sanctuary | Monsters", false, "Add mobs to Variant : Lunar Exploders always, Lunar Golem and Wisp on loops."); S_2_LemurianTemple_Legacy = ConfigFileSTAGES.Bind<bool>("Stage 2", "Reformed Altar | Legacy", false, "Enable alt weather for this stage : Golden with Dieback leaves"); S_3_Frozen = ConfigFileSTAGES.Bind<bool>("Stage 3", "Rallypoint Delta", true, "Enable alt weather for this stage Not Implemented"); S_3_Wisp = ConfigFileSTAGES.Bind<bool>("Stage 3", "Scorched Acres", true, "Enable alt weather for this stage : Dusk"); Enemy_3_Wisp = ConfigFileSTAGES.Bind<bool>("Stage 3", "Scorched Acres | Monsters", true, "Add mobs to Variant : Child"); S_3_Sulfur = ConfigFileSTAGES.Bind<bool>("Stage 3", "Sulfur Pool", true, "Enable alt weather for this stage: Blue Lava"); S_3_Sulfur_ExtraLights = ConfigFileSTAGES.Bind<bool>("Stage 3", "Sulfur Pool : Reduce Lights", false, "Reduce Light amount on this stage. This might help optimization"); S_4_DampAbyss_Legacy = ConfigFileSTAGES.Bind<bool>("Stage 4", "Abyssal Depths | Legacy", false, "Enable alt weather for this stage : More Red, vaguely Imp themed"); Enemy_4_Damp_Abyss_Legacy = ConfigFileSTAGES.Bind<bool>("Stage 4", "Abyssal Depths | Legacy | Monsters", false, "Add mobs to Variant : Void Reavers/Barnacles/Imps always, Void Jailer/Devestator/Imp Overlords post-loop"); S_4_Ship = ConfigFileSTAGES.Bind<bool>("Stage 4", "Sirens Call", true, "Enable alt weather for this stage / Not Implemented"); S_4_Root_Jungle = ConfigFileSTAGES.Bind<bool>("Stage 4", "Sundered Grove", true, "Enable alt weather for this stage"); Enemy_4_Root_Jungle = ConfigFileSTAGES.Bind<bool>("Stage 4", "Sundered Grove | Monsters", true, "Add mobs to Variant : Geep & Gip"); S_5_Sky = ConfigFileSTAGES.Bind<bool>("Stage 5", "Sky Meadow", true, "Enable alt weather for this stage. Not Implemented"); S_5_Helminth_Legacy = ConfigFileSTAGES.Bind<bool>("Stage 5", "Helminth Hatchery | Legacy", false, "Enable alt weather for this stage"); S_6_Meridian = ConfigFileSTAGES.Bind<bool>("Stage Final", "Prime Meridian", true, "Change trees to Golden Dieback coloration on loops"); } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Wolfo.LoopVariantsWolfo", "WolfosLoopVariants", "1.5.0")] public class WLoopMain : BaseUnityPlugin { public class ClientPing : ChatMessageBase { public override string ConstructChatString() { peopleWithMod++; return null; } } public static int peopleWithMod; public static bool AddMonsters => WConfig.Monster_Additions.Value && ShouldAddContent; public static bool ShouldAddContent => peopleWithMod == PlayerCharacterMasterController.instances.Count; public void Start() { WConfig.RiskConfig(); } public void Awake() { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Expected O, but got Unknown Assets.Init(((BaseUnityPlugin)this).Info); WConfig.InitConfig(); Main_Variants.Start(); AssignStageToken.Start += new hook_Start(ApplyLoopNameChanges); VariantConfig.applyWeatherDCCS += VariantDCCS; VariantConfig.applyWeatherVisuals += VariantConfig_applyWeatherGlobal; ChatMessageBase.chatMessageTypeToIndex.Add(typeof(ClientPing), (byte)ChatMessageBase.chatMessageIndexToType.Count); ChatMessageBase.chatMessageIndexToType.Add(typeof(ClientPing)); Run.PreStartClient += new hook_PreStartClient(Run_PreStartClient); Run.onRunDestroyGlobal += Run_onRunDestroyGlobal; } private void Run_PreStartClient(orig_PreStartClient orig, Run self) { orig.Invoke(self); Chat.SendBroadcastChat((ChatMessageBase)(object)new ClientPing()); } private void Run_onRunDestroyGlobal(Run obj) { peopleWithMod = 0; } private void VariantConfig_applyWeatherGlobal(SyncLoopWeather weather) { if (weather.AppliedToCurrentStage) { return; } bool flag = false; try { switch (SceneInfo.instance.sceneDef.baseSceneName) { case "golemplains": if (WConfig.S_1_Golem.Value) { flag = true; Variant_Base.Setup(); Variants_1_GolemPlains.LoopWeather(); } break; case "blackbeach": if (WConfig.WIP.Value) { flag = true; Variants_1_BlackBeach.Setup(); Variants_1_BlackBeach.LoopWeather(); } break; case "snowyforest": if (WConfig.S_1_Snow.Value) { flag = true; Variant_Base.Setup(); Variants_1_SnowyForest.LoopWeather(); } break; case "goolake": if (WConfig.S_2_Goolake.Value) { flag = true; Variants_2_Goolake.Setup(); Variants_2_Goolake.LoopWeather(); } break; case "foggyswamp": if (WConfig.S_2_FoggySwamp.Value) { flag = true; Variant_Base.Setup(); Variants_2_FoggySwamp.LoopWeather(); } break; case "ancientloft": if (WConfig.S_2_Ancient.Value) { flag = true; Variants_2_AncientLoft.Setup(); Variants_2_AncientLoft.LoopWeather(); } break; case "lemuriantemple": Variants_2_LemurianTemple.Setup(); Variants_2_LemurianTemple.LoopWeather(); if (WConfig.S_2_LemurianTemple_Legacy.Value) { flag = true; Variants_2_LemurianTemple_Legacy.Setup(); Variants_2_LemurianTemple_Legacy.LoopWeather(); } break; case "frozenwall": if (WConfig.WIP.Value) { flag = true; Variants_3_FrozenWall.Setup(); Variants_3_FrozenWall.LoopWeather(); } break; case "wispgraveyard": if (WConfig.S_3_Wisp.Value) { flag = true; Variant_Base.Setup(); Variants_3_WispGraveyard.LoopWeather(); } break; case "sulfurpools": if (WConfig.S_3_Sulfur.Value) { flag = true; Variants_3_Sulfur.Setup(); Variants_3_Sulfur.LoopWeather(); } break; case "dampcavesimple": if (WConfig.S_4_DampAbyss_Legacy.Value) { flag = true; Variants_4_DampCaveSimpleAbyss.Setup(); Variants_4_DampCaveSimpleAbyss.LoopWeather(); } break; case "shipgraveyard": if (WConfig.WIP.Value) { flag = true; Variants_4_ShipGraveyard.Setup(); Variants_4_ShipGraveyard.LoopWeather(); } break; case "rootjungle": if (WConfig.S_4_Root_Jungle.Value) { flag = true; Variants_4_RootJungle.Setup(); Variants_4_RootJungle.LoopWeather(); } break; case "skymeadow": if (WConfig.WIP.Value) { flag = true; Variants_5_SkyMeadow.Setup(); Variants_5_SkyMeadow.LoopWeather(); } break; case "helminthroost": if (WConfig.S_5_Helminth_Legacy.Value) { flag = true; Variants_5_HelminthRoost.Setup(); Variants_5_HelminthRoost.LoopWeather(); } break; case "moon2": if (WConfig.WIP.Value) { flag = true; Variants_6_Moon.Setup(); Variants_6_Moon.LoopWeather(); } break; case "meridian": if (WConfig.S_6_Meridian.Value) { Variant_Base.Setup(); Variants_6_Meridian.LoopWeather(); } break; } } catch (Exception ex) { Debug.LogError((object)("LoopVariants Error: " + ex)); } if (flag) { SyncLoopWeather.instance.AppliedToCurrentStage = true; SyncLoopWeather.instance.nameTokenOverride = SceneInfo.instance.sceneDef.nameToken + "_LOOP"; SyncLoopWeather.instance.descTokenOverride = SceneInfo.instance.sceneDef.subtitleToken + "_LOOP"; Debug.Log((object)("Applying Weather to " + SceneInfo.instance.sceneDef.baseSceneName)); } } private void VariantDCCS(DirectorCardCategorySelection dccs) { if (!AddMonsters) { return; } try { switch (SceneInfo.instance.sceneDef.baseSceneName) { case "snowyforest": if (WConfig.Enemy_1_Snow.Value && WConfig.S_1_Snow.Value) { Variants_1_SnowyForest.AddVariantMonsters(dccs); } break; case "ancientloft": if (WConfig.Enemy_2_Ancient.Value && WConfig.S_2_Ancient.Value) { Variants_2_AncientLoft.AddVariantMonsters(dccs); } break; case "wispgraveyard": if (WConfig.Enemy_3_Wisp.Value && WConfig.S_3_Wisp.Value) { Variants_3_WispGraveyard.AddVariantMonsters(dccs); } break; case "dampcavesimple": if (WConfig.Enemy_4_Damp_Abyss_Legacy.Value && WConfig.S_4_DampAbyss_Legacy.Value) { Variants_4_DampCaveSimpleAbyss.AddVariantMonsters(dccs); } break; case "rootjungle": if (WConfig.Enemy_4_Root_Jungle.Value && WConfig.S_4_Root_Jungle.Value) { Variants_4_RootJungle.AddVariantMonsters(dccs); } break; } } catch (Exception ex) { Debug.LogWarning((object)("LoopVariants Error: " + ex)); } } private static void ApplyLoopNameChanges(orig_Start orig, AssignStageToken self) { orig.Invoke(self); if (WConfig.Name_Changes.Value && SyncLoopWeather.instance.CurrentStage_LoopVariant && SyncLoopWeather.instance.AppliedToCurrentStage && Language.english.TokenIsRegistered(SyncLoopWeather.instance.nameTokenOverride)) { ((TMP_Text)self.titleText).SetText(Language.GetString(SyncLoopWeather.instance.nameTokenOverride), true); ((TMP_Text)self.subtitleText).SetText(Language.GetString(SyncLoopWeather.instance.descTokenOverride), true); } } } public class Main_Variants { public static void Start() { } public static void LoadStuff() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: 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_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/Common/Skyboxes/matSkybox1.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Junk/slice1/matSkybox2.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/bazaar/matSkybox4.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/Common/Skyboxes/matSkyboxFoggy.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/arena/matSkyboxArena.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/artifactworld/matSkyboxArtifactWorld.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/golemplains/matSkyboxGolemplainsFoggy.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/snowyforest/matSkyboxSF.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/goolake/matSkyboxGoolake.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matSkyboxAncientLoft.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/sulfurpools/matSkyboxSP.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/frozenwall/matSkyboxFrozenwallNight.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/moon2/matSkyboxMoon.mat").WaitForCompletion(); Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/goldshores/matSkyboxGoldshores.mat").WaitForCompletion(); Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneGolemplainsTrailer.asset").WaitForCompletion(); } public static int FindSpawnCard(DirectorCard[] insert, string LookingFor) { for (int i = 0; i < insert.Length; i++) { if (((Object)insert[i].spawnCard).name.EndsWith(LookingFor)) { return i; } } Debug.LogWarning((object)("Couldn't find " + LookingFor)); return -1; } } public class Variants_1_BlackBeach { public static void Setup() { } public static void LoopWeather() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) ((Component)SceneInfo.instance).GetComponent<PostProcessVolume>().profile = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneShipgraveyard.asset").WaitForCompletion(); } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { if (!((Object)(object)dccs == (Object)null) && WLoopMain.AddMonsters) { } } } public class Variants_3_FrozenWall { public static PostProcessProfile ppFrozenWallDay; public static void Setup() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: 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) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) ppFrozenWallDay = Object.Instantiate<PostProcessProfile>(Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneFrozenwallNight.asset").WaitForCompletion()); PostProcessProfile val = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/DLC1/snowyforest/ppSceneSnowyForest.asset").WaitForCompletion(); ppFrozenWallDay = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/DLC1/snowyforest/ppSceneSnowyForest.asset").WaitForCompletion(); } public static void LoopWeather() { PostProcessVolume component = ((Component)SceneInfo.instance).gameObject.GetComponent<PostProcessVolume>(); component.profile = ppFrozenWallDay; GameObject val = GameObject.Find("/HOLDER: Skybox"); Transform child = val.transform.GetChild(0); } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { if (!((Object)(object)dccs == (Object)null) && WLoopMain.AddMonsters) { } } } public class Variants_6_Moon { public static void Setup() { } public static void LoopWeather() { } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { if (!((Object)(object)dccs == (Object)null) && WLoopMain.AddMonsters) { } } } public class Variants_4_ShipGraveyard { public static void Setup() { } public static void LoopWeather() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/Weather, Shipgraveyard"); Light component = ((Component)val.transform.GetChild(0)).GetComponent<Light>(); component.color = new Color(0.9f, 0.62f, 0.62f, 1f); PostProcessVolume component2 = ((Component)val.transform.GetChild(2)).GetComponent<PostProcessVolume>(); RampFog val2 = (RampFog)Object.Instantiate<PostProcessEffectSettings>(component2.profile.settings[0]); component2.profile.settings[0] = (PostProcessEffectSettings)(object)val2; ((ParameterOverride<Color>)(object)val2.fogColorEnd).value = new Color(0.63f, 0.46f, 0.46f, 1f); ((ParameterOverride<Color>)(object)val2.fogColorMid).value = new Color(0.48f, 0.29f, 0.29f, 0.51f); ((ParameterOverride<Color>)(object)val2.fogColorStart).value = new Color(0.45f, 0.38f, 0.38f, 0f); } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { if (!((Object)(object)dccs == (Object)null) && WLoopMain.AddMonsters) { } } } public class Variants_5_SkyMeadow : Variant_Base { public new static void Setup() { } public static void LoopWeather() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/HOLDER: Weather Set 1"); val.SetActive(false); GameObject val2 = Object.Instantiate<GameObject>(Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC2/lakesnight/Weather, Lakesnight.prefab").WaitForCompletion()); Light component = ((Component)val2.transform.GetChild(1)).GetComponent<Light>(); component.color = new Color(0.9149f, 0.5961f, 0.9333f, 1f); component.shadowStrength *= 0.5f; } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { if (!((Object)(object)dccs == (Object)null) && WLoopMain.AddMonsters) { } } } public class Variants_1_GolemPlains : Variant_Base { public static void LoopWeather() { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0171: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_01b1: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/Weather, Golemplains"); PostProcessVolume component = ((Component)val.transform.GetChild(2)).gameObject.GetComponent<PostProcessVolume>(); PostProcessProfile sharedProfile = (component.profile = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneGolemplainsTrailer.asset").WaitForCompletion()); component.sharedProfile = sharedProfile; Light component2 = ((Component)val.transform.GetChild(1)).gameObject.GetComponent<Light>(); component2.color = new Color(1f, 0.5329f, 0f, 1f); component2.intensity = 1.14f; if (SceneInfo.instance.sceneDef.cachedName.EndsWith("2")) { component2.shadowStrength *= 0.4f; ((Component)component2).gameObject.transform.localEulerAngles = new Vector3(54f, 80f, 150f); } else { component2.shadowStrength *= 0.6f; ((Component)component2).gameObject.transform.localEulerAngles = new Vector3(42.6938f, 140.2757f, 150.3377f); } SetAmbientLight val3 = val.AddComponent<SetAmbientLight>(); val3.setAmbientLightColor = true; val3.ambientMode = (AmbientMode)3; val3.ambientSkyColor = new Color(0.4191f, 0.305f, 0.7264f, 0f); val3.ambientEquatorColor = new Color(0.114f, 0.125f, 0.133f, 1f); val3.ambientGroundColor = new Color(0.047f, 0.043f, 0.035f, 1f); val3.ambientIntensity = 1f; val3.setSkyboxMaterial = true; val3.skyboxMaterial = Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/bazaar/matSkybox4.mat").WaitForCompletion(); val3.ApplyLighting(); } } public class Variants_1_SnowyForest : Variant_Base { public static void LoopWeather() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_0146: 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: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_018b: 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_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01e4: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Unknown result type (might be due to invalid IL or missing references) //IL_02af: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_02f1: Unknown result type (might be due to invalid IL or missing references) //IL_034c: Unknown result type (might be due to invalid IL or missing references) //IL_036d: Unknown result type (might be due to invalid IL or missing references) //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_03af: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_03f1: 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_043c: Unknown result type (might be due to invalid IL or missing references) //IL_045d: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/HOLDER: Skybox"); Light component = ((Component)val.transform.GetChild(1)).GetComponent<Light>(); component.color = new Color(0.6667f, 0.9373f, 0.8f, 1f); component.intensity = 0.7f; PostProcessVolume component2 = ((Component)SceneInfo.instance).gameObject.GetComponent<PostProcessVolume>(); PostProcessProfile val2 = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/DLC2/villagenight/ppSceneLVnight.asset").WaitForCompletion(); PostProcessProfile val3 = Object.Instantiate<PostProcessProfile>(val2); RampFog val4 = (RampFog)Object.Instantiate<PostProcessEffectSettings>(val3.settings[0]); ((ParameterOverride<Color>)(object)val4.fogColorStart).value = ((Color)(ref ((ParameterOverride<Color>)(object)val4.fogColorStart).value)).AlphaMultiplied(0.8f); FloatParameter fogIntensity = val4.fogIntensity; ((ParameterOverride<float>)(object)fogIntensity).value = ((ParameterOverride<float>)(object)fogIntensity).value * 1.2f; FloatParameter skyboxStrength = val4.skyboxStrength; ((ParameterOverride<float>)(object)skyboxStrength).value = ((ParameterOverride<float>)(object)skyboxStrength).value * 0.33f; val3.settings[0] = (PostProcessEffectSettings)(object)val4; component2.profile = val3; component2.sharedProfile = val3; component2 = ((Component)val.transform.GetChild(2)).GetComponent<PostProcessVolume>(); ((Behaviour)component2).enabled = false; Transform child = val.transform.GetChild(8); SetAmbientLight val5 = ((Component)SceneInfo.instance).gameObject.AddComponent<SetAmbientLight>(); val5.setAmbientLightColor = true; val5.ambientMode = (AmbientMode)3; val5.ambientGroundColor = new Color(0.1407f, 0.2235f, 0.1392f, 0.5f) * 1.4f; val5.ambientEquatorColor = new Color(0.0521f, 0.0804f, 0.049f, 0.5f) * 1.4f; val5.ambientSkyColor = new Color(0.2796f, 0.3443f, 0.2745f, 0.5f) * 1.4f; val5.ambientIntensity = 1.2f; val5.setSkyboxMaterial = true; val5.skyboxMaterial = Addressables.LoadAssetAsync<Material>((object)"RoR2/Junk/slice1/matSkybox2.mat").WaitForCompletion(); val5.ApplyLighting(); GameObject val6 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC2/meridian/EventClearedVFX.prefab").WaitForCompletion(); Mesh mesh = Addressables.LoadAssetAsync<Mesh>((object)"RoR2/DLC1/snowyforest/mdlSnowyForestAurora.fbx").WaitForCompletion(); GameObject val7 = Object.Instantiate<GameObject>(val6); ((Component)val7.transform.GetChild(0)).gameObject.SetActive(false); ((Component)val7.transform.GetChild(1)).GetComponent<MeshFilter>().mesh = mesh; ((Component)val7.transform.GetChild(2)).GetComponent<MeshFilter>().mesh = mesh; ((Component)val7.transform.GetChild(3)).GetComponent<MeshFilter>().mesh = mesh; val7.transform.localScale = new Vector3(0.22f, 0.22f, 0.22f); val7.transform.localPosition = new Vector3(-106.9092f, 50f, -141.4909f); val7.transform.localEulerAngles = new Vector3(0f, 15f, 0f); GameObject val8 = Object.Instantiate<GameObject>(val7); GameObject val9 = Object.Instantiate<GameObject>(val7); val8.transform.SetParent(val7.transform); val9.transform.SetParent(val7.transform); val8.transform.localPosition = new Vector3(4f, -4f, 4f); val8.transform.localScale = new Vector3(1f, 1f, 1f); val8.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val9.transform.localPosition = new Vector3(-4f, 4f, -4f); val9.transform.localScale = new Vector3(1f, 1f, 1f); val9.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val7 = Object.Instantiate<GameObject>(val7); val7.transform.localScale = new Vector3(-0.22f, 0.22f, -0.22f); val7.transform.localPosition = new Vector3(-204.8727f, 50f, -160.3091f); val7.transform.localEulerAngles = new Vector3(0f, 26f, 0f); } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Expected O, but got Unknown DirectorCard val = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/GreaterWisp/cscGreaterWisp.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 4, spawnDistance = (MonsterSpawnDistance)0 }; dccs.AddCard(1, val); } } public class Variants_2_AncientLoft : Variant_Base { public static Material matAncientLoft_SunCloud; public static Material matAncientLoft_CloudFloor; public static Material matAncientLoftDeepFog; public static Material matAncientLoft_Cloud; public static Material matAncientLoft_Water; public static Material matAncientLoftEndlessHole; public static Material matEclipseMoon; public static bool setupComplete; public new static void Setup() { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_014e: 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_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_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Unknown result type (might be due to invalid IL or missing references) if (!setupComplete) { setupComplete = true; matAncientLoft_CloudFloor = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoft_CloudFloor.mat").WaitForCompletion()); matAncientLoft_CloudFloor.SetColor("_TintColor", new Color(0.03f, 0.07f, 0.16f, 1f)); matAncientLoftDeepFog = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoftDeepFog.mat").WaitForCompletion()); matAncientLoftDeepFog.SetColor("_TintColor", new Color(0.03f, 0.05f, 0.07f, 1f)); matAncientLoft_Cloud = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoft_Cloud.mat").WaitForCompletion()); matAncientLoft_Cloud.SetColor("_TintColor", new Color(0.07f, 0.18f, 0.32f, 1f)); matAncientLoft_SunCloud = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoft_SunCloud.mat").WaitForCompletion()); matAncientLoft_SunCloud.SetTexture("_RemapTex", matAncientLoft_CloudFloor.GetTexture("_RemapTex")); matAncientLoft_SunCloud.SetColor("_TintColor", new Color(0f, 0.4f, 0.5f, 0.4f)); matAncientLoft_Water = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoft_Water.mat").WaitForCompletion()); matAncientLoft_Water.SetTexture("_Cube", (Texture)null); matAncientLoftEndlessHole = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC1/ancientloft/matAncientLoftEndlessHole.mat").WaitForCompletion()); matAncientLoftEndlessHole.SetColor("_TintColor", new Color(0.03f, 0.05f, 0.08f, 1f)); matEclipseMoon = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/eclipseworld/matEclipseMoon.mat").WaitForCompletion()); } } public static void LoopWeather() { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0247: 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_0260: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/HOLDER: Terrain/AL_Sun"); val.SetActive(false); GameObject val2 = GameObject.Find("/Weather, AncientLoft"); ((Behaviour)((Component)val2.transform.GetChild(1)).GetComponent<Light>()).enabled = false; ((Component)val2.transform.GetChild(2)).gameObject.SetActive(false); GameObject val3 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/eclipseworld/Weather, Eclipse.prefab").WaitForCompletion(); GameObject val4 = Object.Instantiate<GameObject>(((Component)val3.transform.GetChild(3).GetChild(2)).gameObject); GameObject val5 = Object.Instantiate<GameObject>(val3); Light component = ((Component)val5.transform.GetChild(1)).GetComponent<Light>(); component.shadowStrength = 0.5f; SetAmbientLight component2 = ((Component)val5.transform.GetChild(2)).GetComponent<SetAmbientLight>(); component2.ambientIntensity = 0.6f; component2.ApplyLighting(); val4.gameObject.SetActive(true); val4.transform.GetChild(0).localEulerAngles = new Vector3(0f, 0f, 0f); val4.transform.localPosition = new Vector3(-1800f, 360f, 310f); val4.transform.localEulerAngles = new Vector3(0f, 100f, 0f); val4.transform.localScale = new Vector3(420f, 420f, 420f); ((Renderer)val4.GetComponent<MeshRenderer>()).material = matEclipseMoon; Object.Instantiate<GameObject>(((Component)val2.transform.GetChild(1)).gameObject); GameObject val6 = GameObject.Find("/HOLDER: Water"); ((Renderer)((Component)val6.transform.GetChild(1)).GetComponent<MeshRenderer>()).material = matAncientLoft_Water; GameObject val7 = GameObject.Find("/HOLDER: Terrain/Endless Hole Illusion Card"); ((Renderer)val7.GetComponent<MeshRenderer>()).material = matAncientLoftEndlessHole; ((Renderer)((Component)val7.transform.GetChild(0)).GetComponent<MeshRenderer>()).material = matAncientLoftEndlessHole; ((Renderer)((Component)val7.transform.GetChild(1)).GetComponent<MeshRenderer>()).material = matAncientLoftEndlessHole; ((Renderer)((Component)val7.transform.GetChild(2)).GetComponent<MeshRenderer>()).material = matAncientLoftEndlessHole; GameObject val8 = GameObject.Find("/HOLDER: Cards"); Transform child = val8.transform.GetChild(3); Vector3 localScale = child.localScale; localScale.z *= -1f; child.localScale = localScale; ((Component)val8.transform.GetChild(4)).gameObject.SetActive(false); ((Component)val8.transform.GetChild(5)).gameObject.SetActive(false); MeshRenderer[] componentsInChildren = val8.GetComponentsInChildren<MeshRenderer>(); MeshRenderer[] array = componentsInChildren; foreach (MeshRenderer val9 in array) { switch (((Object)((Renderer)val9).material).name) { case "matAncientLoft_SunCloud (Instance)": ((Renderer)val9).material = matAncientLoft_SunCloud; break; case "matAncientLoft_CloudFloor (Instance)": ((Renderer)val9).material = matAncientLoft_CloudFloor; break; case "matAncientLoftDeepFog (Instance)": ((Renderer)val9).material = matAncientLoftDeepFog; break; } } ((Renderer)((Component)val2.transform.GetChild(3)).GetComponent<ParticleSystemRenderer>()).material = matAncientLoft_Cloud; } public static void AddVariantMonsters(DirectorCardCategorySelection dccs) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown DirectorCard val = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load<CharacterSpawnCard>("SpawnCards/CharacterSpawnCards/cscLunarExploder"), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val2 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load<CharacterSpawnCard>("SpawnCards/CharacterSpawnCards/cscLunarGolem"), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 4, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val3 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load<CharacterSpawnCard>("SpawnCards/CharacterSpawnCards/cscLunarWisp"), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 4, spawnDistance = (MonsterSpawnDistance)0 }; dccs.AddCard(2, val); dccs.AddCard(0, val2); dccs.AddCard(0, val3); } } public class Variants_2_FoggySwamp : Variant_Base { public static void LoopWeather() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Unknown result type (might be due to invalid IL or missing references) //IL_02b9: Unknown result type (might be due to invalid IL or missing references) //IL_02d5: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Unknown result type (might be due to invalid IL or missing references) //IL_0325: Unknown result type (might be due to invalid IL or missing references) //IL_0341: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Unknown result type (might be due to invalid IL or missing references) //IL_0358: Expected O, but got Unknown //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_03b4: Unknown result type (might be due to invalid IL or missing references) //IL_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Unknown result type (might be due to invalid IL or missing references) //IL_0431: Unknown result type (might be due to invalid IL or missing references) //IL_0452: Unknown result type (might be due to invalid IL or missing references) //IL_0488: Unknown result type (might be due to invalid IL or missing references) //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04ca: Unknown result type (might be due to invalid IL or missing references) //IL_050b: Unknown result type (might be due to invalid IL or missing references) //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_051a: Unknown result type (might be due to invalid IL or missing references) //IL_053d: Unknown result type (might be due to invalid IL or missing references) //IL_0544: Expected O, but got Unknown //IL_055f: 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_0584: Unknown result type (might be due to invalid IL or missing references) //IL_0589: Unknown result type (might be due to invalid IL or missing references) //IL_05a9: Unknown result type (might be due to invalid IL or missing references) //IL_05ae: 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_05f4: Unknown result type (might be due to invalid IL or missing references) //IL_062e: Unknown result type (might be due to invalid IL or missing references) //IL_064f: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/Directional Light (SUN)"); val.GetComponent<Light>().shadowStrength = 0.5f; GameObject val2 = GameObject.Find("/HOLDER: Hero Assets"); Transform child = val2.transform.GetChild(0); Transform child2 = val2.transform.GetChild(1); Material val3 = Object.Instantiate<Material>(((Renderer)((Component)child).GetComponent<MeshRenderer>()).material); Material val4 = Object.Instantiate<Material>(val3); val4.color = new Color(1f, 1f, 1f, 0.8f); val3.color = new Color(1f, 1f, 1f, 0.8f); ((Renderer)((Component)child).GetComponent<MeshRenderer>()).material = val3; ((Renderer)((Component)child2).GetComponent<MeshRenderer>()).material = val4; GameObject val5 = Object.Instantiate<GameObject>(((Component)child).gameObject); Object.Destroy((Object)(object)val5.GetComponent<MeshRenderer>()); Transform transform = GameObject.Find("/HOLDER: Foliage/Cloverfield").transform; Tools.UpTransformByY(child, 1f); Tools.UpTransformByY(transform.GetChild(8), 1f); Tools.UpTransformByY(transform.GetChild(9), 1f); Tools.UpTransformByY(transform.GetChild(15), 1f); Tools.UpTransformByY(transform.GetChild(16), 1f); Tools.UpTransformByY(transform.GetChild(17), 1f); Tools.UpTransformByY(transform.GetChild(10), 1f); Tools.UpTransformByY(transform.GetChild(32), 1f); Tools.UpTransformByY(transform.GetChild(33), 1f); Tools.UpTransformByY(transform.GetChild(47), 1f); Tools.UpTransformByY(transform.GetChild(48), 1f); Tools.UpTransformByY(transform.GetChild(45), 1f); float num = -149.5f; Tools.UpTransformByY(child2, 5.1f); Tools.UpTransformByY(transform.GetChild(63), 5.1f); Tools.UpTransformByY(transform.GetChild(64), 5.1f); GameObject val6 = GameObject.Find("/HOLDER: Ruin Pieces"); Transform val7 = val6.transform.Find("FSGiantRuinDoorCollision (3)"); Transform val8 = val6.transform.Find("FSGiantRuinDoorCollision (1)"); val7.localScale = new Vector3(1f, 2f, 1f); val8.localScale = new Vector3(1f, 2f, 1f); Tools.UpTransformByY(val7, -40.5f); Tools.UpTransformByY(val8, -40.5f); GameObject val9 = GameObject.Find("/HOLDER: Tree Trunks w Collision/"); Transform child3 = val9.transform.GetChild(20); child3.localEulerAngles = new Vector3(0f, 340f, 90f); child3.localPosition = new Vector3(85f, -150.9878f, -156.2819f); Transform val10 = val9.transform.Find("FSTreeTrunkMediumCollision (28)"); val10.rotation = new Quaternion(-0.5998f, -0.5506f, 0.3745f, 0.4437f); val10.localPosition = new Vector3(-87.9046f, -153.3757f, -209.8361f); val10.localScale = new Vector3(1.54f, 1.62f, 1.54f); GameObject val11 = new GameObject("New Waters"); val11.transform.localPosition = new Vector3(0f, num, 0f); GameObject val12 = Object.Instantiate<GameObject>(((Component)child).gameObject, val11.transform); ((Renderer)val12.GetComponent<MeshRenderer>()).material = val4; val12.transform.rotation = new Quaternion(-0.6996f, 0.1027f, -0.1027f, -0.6996f); val12.transform.localPosition = new Vector3(-222.6811f, 0f, -379.4f); GameObject val13 = Object.Instantiate<GameObject>(val12.gameObject, val11.transform); val13.transform.rotation = new Quaternion(-0.6996f, 0.1027f, -0.1027f, -0.6996f); val13.transform.localPosition = new Vector3(-64.5721f, 0f, -150.2274f); val13.transform.localScale = new Vector3(354.2f, 100f, 100f); GameObject val14 = Object.Instantiate<GameObject>(val12.gameObject, val11.transform); val14.transform.localEulerAngles = new Vector3(90f, 0f, 0f); val14.transform.localPosition = new Vector3(-64.5721f, 0f, -114.2274f); val14.transform.localScale = new Vector3(200f, 100f, 100f); GameObject val15 = GameObject.Find("/HOLDER: Hidden Altar Stuff"); HookLightingIntoPostProcessVolume component = ((Component)val15.transform.GetChild(2)).GetComponent<HookLightingIntoPostProcessVolume>(); component.defaultAmbientColor = new Color(0.2363f, 0.3038f, 0.42f, 1f) * 1.4f; PostProcessVolume component2 = ((Component)SceneInfo.instance).GetComponent<PostProcessVolume>(); RampFog val16 = (RampFog)component2.profile.settings[0]; ((ParameterOverride<Color>)(object)val16.fogColorEnd).value = new Color(0.3535f, 0.4074f, 0.4434f, 0.94f); ((ParameterOverride<Color>)(object)val16.fogColorMid).value = new Color(0.3373f, 0.3793f, 0.4157f, 0.65f); ((ParameterOverride<Color>)(object)val16.fogColorStart).value = new Color(0f, 0f, 0f, 0f); ((ParameterOverride<float>)(object)val16.fogOne).value = 0.09f; ((ParameterOverride<float>)(object)val16.fogPower).value = 2f; component2.profile.settings[0] = (PostProcessEffectSettings)(object)val16; GameObject val17 = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/DLC2/ShrineHalcyonite.prefab").WaitForCompletion(); GameObject val18 = Object.Instantiate<GameObject>(((Component)val17.transform.GetChild(7)).gameObject); val18.transform.position = new Vector3(50f, -150f, -150f); val18.transform.localScale = new Vector3(6f, 6f, 6f); GameObject val19 = Object.Instantiate<GameObject>(((Component)val17.transform.GetChild(8)).gameObject); val19.SetActive(true); val19.AddComponent<WeatherParticles>().lockPosition = true; val17.transform.GetChild(9); } } public class Variants_2_Goolake : Variant_Base { public static Material matGoolakeTerrain; public static Cubemap ReflectionProbe = Addressables.LoadAssetAsync<Cubemap>((object)"RoR2/Base/goolake/ReflectionProbe-0.exr").WaitForCompletion(); public static bool setupComplete = false; public new static void Setup() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) if (!setupComplete) { setupComplete = true; matGoolakeTerrain = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/Base/goolake/matGoolakeTerrain.mat").WaitForCompletion()); matGoolakeTerrain.SetFloat("_BlueChannelBias", 0.4f); } } public static void LoopWeather() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0223: 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_026b: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Unknown result type (might be due to invalid IL or missing references) //IL_02ad: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Unknown result type (might be due to invalid IL or missing references) //IL_032a: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0368: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Expected O, but got Unknown //IL_06b5: Unknown result type (might be due to invalid IL or missing references) //IL_06ba: 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_06e7: Expected O, but got Unknown //IL_0702: Unknown result type (might be due to invalid IL or missing references) //IL_0707: Unknown result type (might be due to invalid IL or missing references) //IL_0727: Unknown result type (might be due to invalid IL or missing references) //IL_072c: Unknown result type (might be due to invalid IL or missing references) //IL_07b5: Unknown result type (might be due to invalid IL or missing references) //IL_07ba: Unknown result type (might be due to invalid IL or missing references) //IL_07ef: Unknown result type (might be due to invalid IL or missing references) //IL_07f4: Unknown result type (might be due to invalid IL or missing references) //IL_080f: Unknown result type (might be due to invalid IL or missing references) //IL_0814: Unknown result type (might be due to invalid IL or missing references) //IL_0877: Unknown result type (might be due to invalid IL or missing references) //IL_0898: Unknown result type (might be due to invalid IL or missing references) //IL_08b9: Unknown result type (might be due to invalid IL or missing references) //IL_08da: Unknown result type (might be due to invalid IL or missing references) //IL_03ad: Unknown result type (might be due to invalid IL or missing references) //IL_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03ef: Unknown result type (might be due to invalid IL or missing references) //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_0461: Unknown result type (might be due to invalid IL or missing references) //IL_0482: Unknown result type (might be due to invalid IL or missing references) //IL_04a3: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_050b: Unknown result type (might be due to invalid IL or missing references) //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_056e: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_05b0: Unknown result type (might be due to invalid IL or missing references) //IL_05f2: Unknown result type (might be due to invalid IL or missing references) //IL_0613: Unknown result type (might be due to invalid IL or missing references) //IL_0634: Unknown result type (might be due to invalid IL or missing references) //IL_0bc6: Unknown result type (might be due to invalid IL or missing references) //IL_0be2: Unknown result type (might be due to invalid IL or missing references) //IL_0911: Unknown result type (might be due to invalid IL or missing references) //IL_092d: Unknown result type (might be due to invalid IL or missing references) //IL_09f6: Unknown result type (might be due to invalid IL or missing references) //IL_0a17: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Unknown result type (might be due to invalid IL or missing references) //IL_0a59: Unknown result type (might be due to invalid IL or missing references) //IL_0a7a: Unknown result type (might be due to invalid IL or missing references) //IL_0a9b: Unknown result type (might be due to invalid IL or missing references) //IL_0abc: Unknown result type (might be due to invalid IL or missing references) //IL_0add: Unknown result type (might be due to invalid IL or missing references) //IL_0afe: Unknown result type (might be due to invalid IL or missing references) //IL_0c05: Unknown result type (might be due to invalid IL or missing references) //IL_0c26: Unknown result type (might be due to invalid IL or missing references) //IL_0c47: Unknown result type (might be due to invalid IL or missing references) //IL_0c72: Unknown result type (might be due to invalid IL or missing references) //IL_0c8e: Unknown result type (might be due to invalid IL or missing references) //IL_0cc4: Unknown result type (might be due to invalid IL or missing references) //IL_0ce5: Unknown result type (might be due to invalid IL or missing references) //IL_0d06: Unknown result type (might be due to invalid IL or missing references) //IL_0d16: Unknown result type (might be due to invalid IL or missing references) //IL_0d1d: Expected O, but got Unknown //IL_0d43: Unknown result type (might be due to invalid IL or missing references) //IL_0d64: Unknown result type (might be due to invalid IL or missing references) //IL_0d95: 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_0dd7: 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_0e29: Unknown result type (might be due to invalid IL or missing references) //IL_0e4a: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/HOLDER: GameplaySpace"); GameObject gameObject = ((Component)val.transform.GetChild(2)).gameObject; ((Renderer)gameObject.GetComponent<MeshRenderer>()).material = matGoolakeTerrain; GameObject val2 = GameObject.Find("/HOLDER: Misc Props"); GameObject val3 = GameObject.Find("/HOLDER: GameplaySpace/mdlGlDam/GL_AqueductPartial/GL_Waterfall"); BuffDef buffType = Addressables.LoadAssetAsync<BuffDef>((object)"RoR2/Base/Common/bdClayGoo.asset").WaitForCompletion(); val3.transform.localPosition = new Vector3(-0.36f, -1f, 0f); val3.transform.localScale = new Vector3(1f, 0.9f, 1f); ((Component)val3.transform.GetChild(8)).GetComponent<DebuffZone>().buffType = buffType; ((Component)val3.transform.GetChild(8)).GetComponent<DebuffZone>().buffDuration = 2f; GameObject gameObject2 = ((Component)val3.transform.GetChild(9)).gameObject; GameObject gameObject3 = ((Component)val2.transform.GetChild(2)).gameObject; GameObject gameObject4 = ((Component)val2.transform.GetChild(3)).gameObject; ((Component)gameObject3.transform.GetChild(0).GetChild(0)).gameObject.SetActive(true); ((Component)gameObject4.transform.GetChild(1).GetChild(0)).gameObject.SetActive(true); DebuffZone componentInChildren = gameObject4.GetComponentInChildren<DebuffZone>(); componentInChildren.buffType = null; DebuffZoneFixed debuffZoneFixed = ((Component)componentInChildren).gameObject.AddComponent<DebuffZoneFixed>(); debuffZoneFixed.interval = 1f; debuffZoneFixed.buffApplicationEffectPrefab = componentInChildren.buffApplicationEffectPrefab; debuffZoneFixed.buffApplicationSoundString = componentInChildren.buffApplicationSoundString; debuffZoneFixed.buffDuration = 3f; debuffZoneFixed.buffType = buffType; Object.Destroy((Object)(object)componentInChildren); DebuffZone componentInChildren2 = gameObject3.GetComponentInChildren<DebuffZone>(); componentInChildren2.buffType = null; debuffZoneFixed = ((Component)componentInChildren2).gameObject.AddComponent<DebuffZoneFixed>(); debuffZoneFixed.interval = 1f; debuffZoneFixed.buffApplicationEffectPrefab = componentInChildren2.buffApplicationEffectPrefab; debuffZoneFixed.buffApplicationSoundString = componentInChildren2.buffApplicationSoundString; debuffZoneFixed.buffDuration = 3f; debuffZoneFixed.buffType = buffType; Object.Destroy((Object)(object)componentInChildren2); gameObject3.transform.localPosition = new Vector3(107.6f, -122.7f, 50.3f); gameObject3.transform.localScale = new Vector3(7.5579f, 1f, 7.8565f); gameObject3.transform.GetChild(0).localScale = new Vector3(10f, 100f, 10f); gameObject4.transform.localPosition = new Vector3(164.4f, -83.01f, -221.2f); gameObject4.transform.localScale = new Vector3(7.467f, 1f, 7.9853f); gameObject4.transform.GetChild(1).localScale = new Vector3(10f, 100f, 10f); GameObject val4 = Object.Instantiate<GameObject>(gameObject3, val2.transform.parent); val4.transform.localPosition = new Vector3(360f, -106f, -260f); val4.transform.localScale = new Vector3(15f, 1f, 10f); val4.transform.localEulerAngles = new Vector3(0f, 0f, 0f); ((Object)val4).name = "GooPlane Decor"; GameObject val5 = new GameObject("TarDecalHolder_TarRiver"); if (WConfig.S_2_Goolake_River.Value) { GameObject val6 = Object.Instantiate<GameObject>(gameObject4, val2.transform.parent); val6.transform.localPosition = new Vector3(270f, -134.4f, 160f); val6.transform.localScale = new Vector3(30f, 1f, 30f); val6.transform.localEulerAngles = new Vector3(0f, 326.1636f, 0f); val6.transform.GetChild(1).localPosition = new Vector3(0f, -0.2f, 0f); ((Object)val6).name = "GooPlane CentralRiver"; GameObject val7 = Object.Instantiate<GameObject>(gameObject2, val5.transform); val7.GetComponent<Decal>().LimitTo = gameObject; val7.transform.localPosition = new Vector3(265.3105f, -123.385f, 225.0929f); val7.transform.localEulerAngles = new Vector3(0f, 45f, 0f); val7.transform.localScale = new Vector3(150f, 40f, 67f); val7 = Object.Instantiate<GameObject>(gameObject2, val5.transform); val7.GetComponent<Decal>().Fade = 2f; val7.transform.localPosition = new Vector3(136.7616f, -135.4982f, 218.1272f); val7.transform.localRotation = new Quaternion(0.1426f, -0.8367f, -0.0888f, 0.5212f); val7.transform.localScale = new Vector3(70.9044f, 86.1103f, 76.1418f); val7 = Object.Instantiate<GameObject>(gameObject2, val5.transform); val7.GetComponent<Decal>().Fade = 4f; val7.transform.localPosition = new Vector3(240.8404f, -158.2065f, 33.9958f); val7.transform.localScale = new Vector3(50f, 79.6727f, 30.3744f); val7.transform.localEulerAngles = new Vector3(6.4184f, 343.1097f, 0f); val7 = Object.Instantiate<GameObject>(gameObject2, val5.transform); val7.GetComponent<Decal>().Fade = 4f; val7.transform.localPosition = new Vector3(240.8404f, -158.2065f, 33.9958f); val7.transform.localScale = new Vector3(50f, 79.6727f, 30.3744f); val7.transform.localEulerAngles = new Vector3(6.4184f, 343.1097f, 0f); } GameObject val8 = GameObject.Find("HOLDER: Secret Ring Area Content/ApproxCenter"); GameObject gameObject5 = ((Component)val8.transform.GetChild(4)).gameObject; GameObject val9 = GameObject.Find("/Weather, Goolake"); Light component = ((Component)val9.transform.GetChild(0)).GetComponent<Light>(); component.shadowStrength = 0.5f; ReflectionProbe val10 = val9.AddComponent<ReflectionProbe>(); val10.bakedTexture = (Texture)(object)ReflectionProbe; val10.resolution = 512; PostProcessProfile val11 = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneGoolakeInTunnels.asset").WaitForCompletion(); PostProcessProfile val12 = Object.Instantiate<PostProcessProfile>(val11); RampFog val13 = (RampFog)Object.Instantiate<PostProcessEffectSettings>(val12.settings[0]); ((ParameterOverride<Color>)(object)val13.fogColorEnd).value = new Color(0.7f, 1f, 0.213f, 1f); ((ParameterOverride<Color>)(object)val13.fogColorMid).value = new Color(0.8896f, 0.9151f, 0.3842f, 0.2745f); ((ParameterOverride)val13.fogColorEnd).overrideState = true; val12.settings[0] = (PostProcessEffectSettings)(object)val13; PostProcessVolume component2 = ((Component)val9.transform.GetChild(1)).GetComponent<PostProcessVolume>(); component2.sharedProfile = val12; component2.profile = val12; component2.priority = 1f; val9.SetActive(false); val9.SetActive(true); SceneWeatherController component3 = ((Component)SceneInfo.instance).GetComponent<SceneWeatherController>(); component3.initialWeatherParams.sunColor = new Color(0.5f, 0.6f, 0.5f); component3.initialWeatherParams.sunIntensity = 1f; HookLightingIntoPostProcessVolume component4 = gameObject5.GetComponent<HookLightingIntoPostProcessVolume>(); component4.defaultAmbientColor = new Color(0.4f, 0.55f, 0.45f, 1f); component4.overrideAmbientColor = new Color(0.22f, 0.35f, 0.24f, 1f); Transform val14 = val.transform.Find("Gates"); bool activeSelf = ((Component)val14.GetChild(0)).gameObject.activeSelf; Transform child = val.transform.GetChild(4).GetChild(0); GameObject val15 = Object.Instantiate<GameObject>(((Component)child).gameObject); ((Object)val15).name = "GL_Aqueduct_ExtraForWateringHole"; val15.transform.localScale = child.lossyScale; val15.transform.localEulerAngles = new Vector3(0f, 25f, 180f); val15.transform.localPosition = new Vector3(222f, -95.1249f, -248f); val15.transform.localScale = new Vector3(20.3f, 14.3f, 14.3f); if (activeSelf) { Transform child2 = val15.transform.GetChild(1); child2.localPosition = new Vector3(0.5f, -7.8f, 0f); child2.localScale = new Vector3(0.7f, 0.1f, 1f); ((Renderer)((Component)child2).gameObject.GetComponent<MeshRenderer>()).enabled = false; GameObject val16 = Object.Instantiate<GameObject>(((Component)child2.GetChild(5)).gameObject); GameObject val17 = Object.Instantiate<GameObject>(val16); GameObject val18 = Object.Instantiate<GameObject>(val16); val16.transform.SetParent(val15.transform); val17.transform.SetParent(val15.transform); val18.transform.SetParent(val15.transform); val18.GetComponent<Decal>().Fade = 1f; val17.GetComponent<Decal>().Fade = 4f; val18.GetComponent<Decal>().Fade = 0.5f; val16.transform.localEulerAngles = new Vector3(0f, 0f, 180f); val16.transform.localPosition = new Vector3(1.5f, -13f, -0.1f); val16.transform.localScale = new Vector3(5f, 11f, 3.8f); val17.transform.localEulerAngles = new Vector3(0f, 0f, 215f); val17.transform.localPosition = new Vector3(1.5f, -13f, 0f); val17.transform.localScale = new Vector3(15f, 10f, 3f); val18.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val18.transform.localPosition = new Vector3(3.6f, -5f, 0f); val18.transform.localScale = new Vector3(5f, 6f, 3f); Object.Destroy((Object)(object)((Component)child2.GetChild(9)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(8)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(7)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(6)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(5)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(4)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(3)).gameObject); Object.Destroy((Object)(object)((Component)child2.GetChild(1)).gameObject); } else { Transform child3 = val15.transform.GetChild(1); child3.localPosition = new Vector3(0.5f, -3f, 0f); child3.localScale = new Vector3(0.7f, 0.7f, 1f); } GameObject val19 = Object.Instantiate<GameObject>(((Component)child).gameObject); val19.transform.localScale = child.lossyScale; val19.transform.localEulerAngles = new Vector3(0f, 207.3991f, 180f); val19.transform.localPosition = new Vector3(-233.9893f, -40f, -228.5455f); Transform child4 = val19.transform.GetChild(1); child4.localPosition = new Vector3(-0.36f, -3f, 0f); child4.localScale = new Vector3(1f, 0.7f, 1f); ((Component)child4.GetChild(4)).gameObject.SetActive(false); GameObject val20 = Object.Instantiate<GameObject>(val19.gameObject); val20.transform.localScale = child.lossyScale; val20.transform.localEulerAngles = new Vector3(0f, 262.7f, 180f); val20.transform.localPosition = new Vector3(106.1051f, -95.3636f, 329.692f); GameObject val21 = new GameObject("TarDecalHolder_DistantAquaduct"); GameObject val22 = Object.Instantiate<GameObject>(gameObject2, val21.transform); val22.transform.localPosition = new Vector3(-185.5541f, -60.0904f, -250.7442f); val22.transform.localScale = new Vector3(70f, 70f, 70f); val22 = Object.Instantiate<GameObject>(gameObject2, val21.transform); val22.transform.localPosition = new Vector3(-156f, -47f, -290f); val22.transform.localScale = new Vector3(153f, 150f, 91f); val22.transform.localEulerAngles = new Vector3(0f, 51f, 0f); val22 = Object.Instantiate<GameObject>(gameObject2, val21.transform); val22.transform.localPosition = new Vector3(-73f, -96.6f, -343f); val22.transform.localScale = new Vector3(153f, 45f, 66f); val22.transform.localEulerAngles = new Vector3(0f, 0f, 0f); GameObject val23 = GameObject.Find("/HOLDER: Stage Count Toggled Objects/RescueshipBroken/escapeship/DropshipArmature/ROOT/Base"); if (Object.op_Implicit((Object)(object)val23)) { val23.SetActive(false); } } } public class DebuffZoneFixed : MonoBehaviour { public float buffTimer; public float interval; [Tooltip("The buff type to grant")] public BuffDef buffType; [Tooltip("The buff duration")] public float buffDuration; public string buffApplicationSoundString; public GameObject buffApplicationEffectPrefab; private void Start() { } private void OnTriggerEnter(Collider other) { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) CharacterBody component = ((Component)other).GetComponent<CharacterBody>(); if (Object.op_Implicit((Object)(object)component)) { Util.PlaySound(buffApplicationSoundString, ((Component)component).gameObject); if (Object.op_Implicit((Object)(object)buffApplicationEffectPrefab)) { EffectManager.SpawnEffect(buffApplicationEffectPrefab, new EffectData { origin = ((Component)component.mainHurtBox).transform.position, scale = component.radius }, false); } if (Object.op_Implicit((Object)(object)buffType) && component.hasEffectiveAuthority) { component.CallCmdAddTimedBuff(buffType.buffIndex, buffDuration); } } } private void OnTriggerStay(Collider other) { //IL_006d: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)buffType)) { return; } buffTimer -= Time.fixedDeltaTime; if (buffTimer <= 0f) { buffTimer = interval; CharacterBody component = ((Component)other).GetComponent<CharacterBody>(); if (Object.op_Implicit((Object)(object)component) && component.hasEffectiveAuthority) { component.CallCmdAddTimedBuff(buffType.buffIndex, buffDuration); } } } } public class Variants_2_LemurianTemple : Variant_Base { public static Material matBHFallEnvfxLeaves; public static Material matBHDistantTree_Billboard; public static Material matBHDistantTree; public static Material Cealing_Leaves_0_LOD0; public static Material LTFallenLeaf; public static Material matBHFallTerrainVines; public static bool setupComplete; public new static void Setup() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) if (!setupComplete) { setupComplete = true; Color color = new Color(0.6604f, 0.3208f, 0.529f, 1f) * 1.1f; matBHFallEnvfxLeaves = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/habitatfall/Assets/matBHFallEnvfxLeaves.mat").WaitForCompletion()); matBHDistantTree_Billboard = Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/habitatfall/Assets/matBHFallDistantTreeBillboard.mat").WaitForCompletion(); matBHDistantTree = Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/habitatfall/Assets/matBHFallDistantTree.mat").WaitForCompletion(); LTFallenLeaf = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/lemuriantemple/Assets/LTFallenLeaf.spm").WaitForCompletion()); Texture2D mainTexture = Assets.LoadAssetAsync<Texture2D>("Assets/LoopVariants/LemurianTemple/BHDistantTreeP_Atlas.png"); Texture2D mainTexture2 = Assets.LoadAssetAsync<Texture2D>("Assets/LoopVariants/LemurianTemple/LTFallenLeaf_Atlas.png"); LTFallenLeaf.color = color; LTFallenLeaf.mainTexture = (Texture)(object)mainTexture2; LTFallenLeaf.SetColor("_HueVariation", new Color(1f, 0.5f, 0.1f, 0.5f)); matBHFallEnvfxLeaves.color = color; matBHFallEnvfxLeaves.mainTexture = (Texture)(object)mainTexture; matBHFallTerrainVines = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/habitatfall/Assets/matBHFallTerrainVines.mat").WaitForCompletion()); matBHFallTerrainVines.SetFloat("_SnowBias", 0f); } } public static void LoopWeather() { GameObject val = GameObject.Find("/HOLDER:Terrain/LTTerrain/meshLTCeilingRoots"); ((Renderer)val.GetComponent<MeshRenderer>()).material = matBHFallTerrainVines; GameObject val2 = GameObject.Find("/HOLDER: ToggleGroups/HOLDER: TG FrontC/LTColumnTGCVine"); if (Object.op_Implicit((Object)(object)val2)) { ((Renderer)val2.GetComponent<MeshRenderer>()).material = matBHFallTerrainVines; } GameObject val3 = GameObject.Find("/HOLDER: Foliage"); GameObject val4 = GameObject.Find("/Weather, LemurianTemple"); Transform child = val4.transform.GetChild(5); ParticleSystemRenderer[] componentsInChildren = ((Component)child).GetComponentsInChildren<ParticleSystemRenderer>(); ParticleSystemRenderer[] array = componentsInChildren; foreach (ParticleSystemRenderer val5 in array) { ((Renderer)val5).material = matBHFallEnvfxLeaves; } Transform child2 = val3.transform.GetChild(1); BillboardRenderer[] componentsInChildren2 = ((Component)child2).GetComponentsInChildren<BillboardRenderer>(); BillboardRenderer[] array2 = componentsInChildren2; foreach (BillboardRenderer val6 in array2) { val6.billboard.material = matBHDistantTree_Billboard; } MeshRenderer[] componentsInChildren3 = ((Component)child2).GetComponentsInChildren<MeshRenderer>(); MeshRenderer[] array3 = componentsInChildren3; foreach (MeshRenderer val7 in array3) { string name = ((Object)((Renderer)val7).material).name; string text = name; if (!(text == "Leaves_0_LOD0 (Instance)")) { if (text == "matBHDistantTree (Instance)") { ((Renderer)val7).material = matBHDistantTree; } } else { ((Renderer)val7).material = matBHDistantTree; } } Transform child3 = val3.transform.GetChild(4); componentsInChildren3 = ((Component)child3).GetComponentsInChildren<MeshRenderer>(); MeshRenderer[] array4 = componentsInChildren3; foreach (MeshRenderer val8 in array4) { string name2 = ((Object)((Renderer)val8).material).name; string text2 = name2; if (!(text2 == "Leaves_0_LOD0 (Instance)")) { if (text2 == "Leaves_0_LOD1 (Instance)") { ((Renderer)val8).material = LTFallenLeaf; } } else { ((Renderer)val8).material = LTFallenLeaf; } } GameObject val9 = GameObject.Find("/HOLDER: ToggleGroups/HOLDER: TG BackA/TGBackB/LTFallenLeaf"); GameObject val10 = GameObject.Find("/HOLDER: ToggleGroups/HOLDER: TG FrontA"); GameObject val11 = GameObject.Find("/HOLDER: ToggleGroups/HOLDER: TG FrontC/LTFallenLeaf (9)"); if (Object.op_Implicit((Object)(object)val9)) { ((Renderer)((Component)val9.transform.GetChild(0)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; ((Renderer)((Component)val9.transform.GetChild(1)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; } if (Object.op_Implicit((Object)(object)val10)) { ((Renderer)((Component)val10.transform.GetChild(0).GetChild(0)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; ((Renderer)((Component)val10.transform.GetChild(0).GetChild(1)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; ((Renderer)((Component)val10.transform.GetChild(1).GetChild(0)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; ((Renderer)((Component)val10.transform.GetChild(1).GetChild(1)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; } if (Object.op_Implicit((Object)(object)val11)) { ((Renderer)((Component)val11.transform.GetChild(0)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; ((Renderer)((Component)val11.transform.GetChild(1)).GetComponent<MeshRenderer>()).material = LTFallenLeaf; } } } public class Variants_2_LemurianTemple_Legacy : Variant_Base { public static Material Gold_matLTCrystal; public static Material CrystalForAltar; public static PostProcessProfile PP_AncientLoft; public static bool setupComplete; public new static void Setup() { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Expected O, but got Unknown //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: 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_0166: Unknown result type (might be due to invalid IL or missing references) if (!setupComplete) { setupComplete = true; Color val = new Color(0.6604f, 0.3208f, 0.529f, 1f) * 1.1f; Gold_matLTCrystal = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/matHalcyoniteShrineGold.mat").WaitForCompletion()); Material gold_matLTCrystal = Gold_matLTCrystal; gold_matLTCrystal.color *= 1.3f; Gold_matLTCrystal.SetFloat("_SliceHeight", 500f); CrystalForAltar = Object.Instantiate<Material>(Addressables.LoadAssetAsync<Material>((object)"RoR2/DLC2/matShrineColossusAccess.mat").WaitForCompletion()); CrystalForAltar.color = new Color(3.5f, 1f, 0.5f); PP_AncientLoft = Object.Instantiate<PostProcessProfile>(Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/DLC1/ancientloft/ppSceneAncientLoft.asset").WaitForCompletion()); PostProcessProfile val2 = Addressables.LoadAssetAsync<PostProcessProfile>((object)"RoR2/Base/title/PostProcessing/ppSceneGoolake.asset").WaitForCompletion(); RampFog val3 = (RampFog)Object.Instantiate<PostProcessEffectSettings>(PP_AncientLoft.settings[0]); RampFog val4 = (RampFog)val2.settings[0]; ((ParameterOverride<Color>)(object)val3.fogColorEnd).value = new Color(0.6f, 0.5f, 0.34f, 1f); ((ParameterOverride<Color>)(object)val3.fogColorMid).value = new Color(0.67f, 0.5f, 0.32f, 0.44f); PP_AncientLoft.settings[0] = (PostProcessEffectSettings)(object)val3; } } public static void LoopWeather() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_01e5: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.Find("/Weather, LemurianTemple"); Light component = ((Component)val.transform.GetChild(1)).GetComponent<Light>(); component.color = new Color(1f, 0.9176f, 0.749f, 1f); component.intensity = 0.35f; PostProcessVolume component2 = ((Component)val.transform.GetChild(2)).GetComponent<PostProcessVolume>(); component2.profile = PP_AncientLoft; SetAmbientLight component3 = ((Component)val.transform.GetChild(2)).GetComponent<SetAmbientLight>(); component3.ambientSkyColor = new Color(1f, 1f, 0.8f, 1f); component3.ambientIntensity = 0.285f; component3.ApplyLighting(); Color color = default(Color); ((Color)(ref color))..ctor(1.3f, 0.9759f, 0.6706f, 1f); Light[] componentsInChildren = ((Component)val.transform.GetChild(6)).GetComponentsInChildren<Light>(); Light[] array = componentsInChildren; foreach (Light val2 in array) { val2.color = color; } GameObject val3 = GameObject.Find("/HOLDER: Prop"); Transform val4 = val3.transform.Find("GoldDecal"); for (int j = 0; j < val4.childCount; j++) { ((Component)val4.GetChild(j)).gameObject.SetActive(true); } Transform child = val3.transform.GetChild(4); ((Renderer)((Component)child.GetChild(0).GetChild(0)).GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[2] { ((Renderer)((Component)child.GetChild(0).GetChild(0)).GetComponent<MeshRenderer>()).material, Gold_matLTCrystal }; Color color2 = default(Color); ((Color)(ref color2))..ctor(1f, 0.8789f, 0.2877f, 1f); componentsInChildren = ((Component)child.GetChild(1)).GetComponentsInChildren<Light>(); Light[] array2 = componentsInChildren; foreach (Light val5 in array2) { val5.color = color2; } GameObject val6 = GameObject.Find("/HOLDER:Terrain/LTAltar/meshLTAltarCrystal"); ((Renderer)val6.GetComponent<MeshRenderer>()).material = CrystalForAltar; } } public class Variants_3_Sulfur : Variant_Base { public class ApplyToAllLights : MonoBehaviour { public LightType type; public LightShadows shadows; public float intensity; public Color colorNew; public float range; public float spotAngle; public float innerSpotAngle; public Vector3 newEulerAngles; public void ApplyFromChild() { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) Light componentInChildren = ((Component)this).gameObject.GetComponentInChildren<Light>(); type = componentInChildren.type; shadows = componentInChildren.shadows; intensity = componentInChildren.intensity; colorNew = componentInChildren.color; range = componentInChildren.range; spotAngle = componentInChildren.spotAngle; innerSpotAngle = componentInChildren.innerSpotAngle; newEulerAngles = ((Component)componentInChildren).transform.eulerAngles; } public void ApplyToAllChildren() { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) Light[] componentsInChildren = ((Component)this).gameObject.GetComponentsInChildren<Light>(); Light[] array = componentsInChildren; foreach (Light val in array) { val.type = type; val.shadows = shadows; val.intensity = intensity; val.color = colorNew; val.range = range; val.spotAngle = spotAngle; val.innerSpotAngle = innerSpotAngle; ((Component)val).transform.eulerAngles = newEulerAngles; } } } public static SurfaceDef blueLava = ScriptableObject.CreateInstance<SurfaceDef>(); public static Material matSPPortalCard; public static Material matSPMoss; public static Material matSPDistantVolcanoCloud; public static Material matSPGrass; public static Material matSPGrassEmi; public static Material matSPTallGrass; public static Material matSPVine; public static Material matSPCoralEmi; public static Material matSPCoralString; public static Material matSPCrystal; public static Material matSPGround; public static Material matSPSphere; public static Material matSPMountain; public static Material matSPMountainDistant; public static Material matSulfurPodBody; public static Material matSPProps; public static Material matSPEnvSmoke; public static Material matSPEnvSmokeScreen; public static Material matSPEnvPoolSmoke; public static Material matSPCloseLowFog; public static Material matSPDistantLowFog; public static Material matSPDistantMountainClouds; public static Material matSPBgWater; public static Material matSPWaterBlue; public static Material matSPWaterGreen; public static Material matSPWaterRed; public static Material matSPWaterYellow; public static Material matSkyboxSP; public static Material matHRLava; public static Material matHREgg; public static GameObject LunarExploderDotZone = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/LunarExploder/LunarExploderProjectileDotZone.prefab").WaitForCompletion(); public static PostProcessProfile ppSceneSulfurPools; public static PostProcessProfile ppSceneSulfurPoolsCave; public static bool setupComplete = false; private static void SulfurPodHelfire(orig_Explode orig, SulfurPodDeath self) { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Expected O, but got Unknown //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_02b4: Unknown result type (might be due to invalid IL or missing references) //IL_02b9: Unknown result type (might be due to invalid IL or missing references) //IL_02c5: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02ef: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Unknown result type (might be due to invalid IL or missing references) //IL_02fc: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_0317: Unknown result type (might be due to invalid IL or missing references) //IL_031c: