using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using AK.Wwise; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using EntityStates; using EntityStates.Drone; using EntityStates.GrandParent; using EntityStates.InfiniteTowerSafeWard; using EntityStates.Missions.Moon; using EntityStates.QuestVolatileBattery; using EntityStates.VagrantMonster; using EntityStates.VagrantNovaItem; using EntityStates.VoidMegaCrab; using EntityStates.VoidMegaCrab.Weapon; using HG; using HG.Reflection; using IL.RoR2; using JetBrains.Annotations; using Mono.Cecil.Cil; using MonoMod.Cil; using On.EntityStates; using On.EntityStates.Drone; using On.EntityStates.GrandParent; using On.EntityStates.InfiniteTowerSafeWard; using On.EntityStates.Missions.Moon; using On.EntityStates.QuestVolatileBattery; using On.EntityStates.VagrantMonster; using On.EntityStates.VagrantNovaItem; using On.EntityStates.VoidMegaCrab; using On.EntityStates.VoidMegaCrab.Weapon; using On.RoR2; using On.RoR2.Artifacts; using On.RoR2.Projectile; using On.RoR2.UI; using On.RoR2.UI.MainMenu; using R2API; using R2API.Utils; using RiskOfOptions; using RiskOfOptions.Options; using RoR2; using RoR2.Artifacts; using RoR2.CharacterAI; using RoR2.ExpansionManagement; using RoR2.Hologram; using RoR2.Navigation; using RoR2.Projectile; using RoR2.Stats; using RoR2.UI; using RoR2.UI.MainMenu; using SimulacrumAdditions.Waves; using TMPro; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Events; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.UI; using WolfoLibrary; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: OptIn] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("SimulacrumAdditions")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+791c3db242d8c6c68a43fe8e4fd6ada83e9fbab0")] [assembly: AssemblyProduct("SimulacrumAdditions")] [assembly: AssemblyTitle("SimulacrumAdditions")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: UnverifiableCode] namespace SimulacrumAdditions { internal static class Assets { public static AssetBundle Bundle; public static PluginInfo PluginInfo; public static string Folder = "SimulacrumMod"; internal static string assemblyDir => Path.GetDirectoryName(PluginInfo.Location); 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", "simulacrumadditions")); } else { Debug.LogWarning((object)(Folder + "\\AssetBundles | Folder does not exist")); } } private static void SetFolders(orig_SetFolders orig, Language self, IEnumerable newFolders) { IEnumerable 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 class WConfig { public static ConfigFile ConfigFileUNSORTED = new ConfigFile(Paths.ConfigPath + "\\Wolfo.Simulacrum_Additions.cfg", true); public static ConfigEntry cfgFasterWavesLater; public static ConfigEntry cfgCrabSpeedOnLaterWaves; public static ConfigEntry cfgSimuCreditsRebalance; public static ConfigEntry cfgSimuMoreGold; public static ConfigEntry cfgDifferentTeleportEffect; public static ConfigEntry cfgVoidsEverywhere; public static ConfigEntry cfgExtraDifficuly; public static ConfigEntry cfgNewEnemiesVisible; public static ConfigEntry cfgDumpInfo; public static ConfigEntry cfgVoidCoins; public static ConfigEntry cfgMusicChanges; public static ConfigEntry cfgMusicSuperBoss; public static ConfigEntry cfgSacrificeBalance; public static ConfigEntry cfgItemsEvery8; public static ConfigEntry cfgItemsFrequently; public static ConfigEntry cfgAwaitTravel; public static ConfigEntry ArtifactOfRealityBonusRadius; public static ConfigEntry cfgCrabRadius; public static ConfigEntry cfgCrabRadiusPerPlayer; public static ConfigEntry cfgSimuEndingStartAtXWaves; public static ConfigEntry cfgSimuEndingEveryXWaves; public static ConfigEntry cfgSuperBossStartAtXWaves; public static ConfigEntry cfgSuperBossEveryXWaves; public static ConfigEntry ResetStatsButton; public static void RiskConfig() { //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Expected O, but got Unknown ModSettingsManager.SetModDescription("Simulacrum Gaming"); ModSettingsManager.SetModIcon(Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGupYellow.png")); ConfigEntryBase[] configEntries = ConfigFileUNSORTED.GetConfigEntries(); ConfigEntryBase[] array = configEntries; foreach (ConfigEntryBase val in array) { if (val.SettingType == typeof(bool)) { ConfigEntry val2 = (ConfigEntry)(object)val; ModSettingsManager.AddOption((BaseOption)new CheckBoxOption(val2, true)); } else if (val.SettingType == typeof(float)) { ConfigEntry val3 = (ConfigEntry)(object)val; ModSettingsManager.AddOption((BaseOption)new FloatFieldOption(val3, true)); } else if (val.SettingType == typeof(int)) { ConfigEntry val4 = (ConfigEntry)(object)val; ModSettingsManager.AddOption((BaseOption)new IntFieldOption(val4, true)); } else { Debug.LogWarning((object)("Could not add config " + val.Definition.Key + " of type : " + val.SettingType)); } } } public static void InitConfig() { cfgVoidCoins = ConfigFileUNSORTED.Bind("Main", "Add Void Coins", true, "Add previously unused Void Coins with which you can purchase Void Interactables. You can still purchase them with Blood if you do not have any."); cfgMusicChanges = ConfigFileUNSORTED.Bind("Main", "Simu Stage Music Changes", true, "Changes the music of some simu stages.\nPlains -> Void Fields\n"); cfgMusicSuperBoss = ConfigFileUNSORTED.Bind("Main", "Music for Super Boss waves", true, "Like Mithrix theme for Mithrix wave."); cfgNewEnemiesVisible = ConfigFileUNSORTED.Bind("Main", "Logbook Entries for mod content", false, "Add reskins of enemies added by mod to Logbook."); cfgDifferentTeleportEffect = ConfigFileUNSORTED.Bind("Main", "Simulacrum Teleport Effect", true, "Void themed teleport effect for Simulacrum runs"); cfgCrabSpeedOnLaterWaves = ConfigFileUNSORTED.Bind("Main : Crab", "Speed up as waves go on", true, "The crab will travel faster the more waves are completed, mostly noticible later waves."); cfgAwaitTravel = ConfigFileUNSORTED.Bind("Main : Crab", "Crab waits before travelling", true, "Like after wave 5, more time to do stuff before leaving or just to leave instantly."); cfgCrabRadius = ConfigFileUNSORTED.Bind("Main : Crab", "Crab Radius : Base Radius", 65f, "Vanilla radius is 60."); cfgCrabRadiusPerPlayer = ConfigFileUNSORTED.Bind("Main : Crab", "Crab Radius : Per Player", 5f, "Radius increase per player including player 1. Vanilla radius is 0."); cfgVoidsEverywhere = ConfigFileUNSORTED.Bind("Main", "Void Enemies on all stages", true, "After wave 60 void enemies will spawn on all simu stages."); cfgItemsEvery8 = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Items every 8 Waves", true, "Give items every 8 waves. Fits better with the run ending at wave 50."); cfgItemsFrequently = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Items are given more frequently later", true, "Items will be added twice as frequently after the first Red"); cfgSimuCreditsRebalance = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Simulacrum Credits Rebalance", true, "Get more credits early on, Stages have 630 to 400 credits depending on stages completed and get more credits in multiplayer. Vanilla they always have 600 regardless of stage/player count."); cfgSimuMoreGold = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Simulacrum Gold Balance", true, "Gold is multiplied per player amount. Gain 50% more gold at the start and 25% less gold starting at wave 30. Helps with early looting and makes it so you won't instantly be able to afford every chest later on."); cfgExtraDifficuly = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "More scaling", true, "Scales immediate wave spawns up and elite cost down to overall increase difficulty but also make waves shorter"); cfgSacrificeBalance = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Nerf Sacrifice in Simulacrum", true, "33% less item drops from enemies, as you still get most of the items you'd get in regular simulacrum."); cfgFasterWavesLater = ConfigFileUNSORTED.Bind("Simulacrum : Balance", "Waves get faster later", true, "Less time between waves and waves spawn enemies faster."); ArtifactOfRealityBonusRadius = ConfigFileUNSORTED.Bind("Main : Artifacts", "Artifact of Reality : Larger Radius", 10f, "Bonus radius since default stages are often bigger and have weird cornerns"); cfgSimuEndingStartAtXWaves = ConfigFileUNSORTED.Bind("Simulacrum : Ending Portal", "Ending Start Wave", 50, "This is the first wave the ending Portal appears (only use steps of 10)"); cfgSimuEndingEveryXWaves = ConfigFileUNSORTED.Bind("Simulacrum : Ending Portal", "Ending Portal Every X Waves", 10, "The ending portal will appear every X waves. (only use steps of 10)"); cfgSuperBossStartAtXWaves = ConfigFileUNSORTED.Bind("Simulacrum : Forced Super Boss", "Forced Special Boss Start Wave", 50, "A forced special boss is meant to be paired with the wave where the ending portal spawns so it's less of just a random end. (only use steps of 10)"); cfgSuperBossEveryXWaves = ConfigFileUNSORTED.Bind("Simulacrum : Forced Super Boss", "Forced Special Boss Every X Waves", 30, "The forced special boss will appear every X waves. (only use steps of 10)"); cfgDumpInfo = ConfigFileUNSORTED.Bind("Testing", "Wave Info Dump", false, "Dump wave info on startup in log"); ResetStatsButton = ConfigFileUNSORTED.Bind("Testing", "Reset Wave Count Button", false, "Add buttons to reset wave count or set it to 50."); } } public class AutoConfig { public static ConfigFile ConfigFileAuto = new ConfigFile(Paths.ConfigPath + "\\Wolfo.Simulacrum_Additions___Autogenerated_Wave_Config.cfg", true); public static ConfigEntry cfgSuperBossEveryXWaves; public static void InitConfig() { InfiniteTowerWaveCategory iTBasicWaves = Constant.ITBasicWaves; string text = "Basic Waves"; for (int i = 1; i < iTBasicWaves.wavePrefabs.Length; i++) { ConfigEntry val = ConfigFileAuto.Bind(text, ((Object)iTBasicWaves.wavePrefabs[i].wavePrefab).name, true, "Enable this wave? :\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[i].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token) + "\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[i].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token)); } iTBasicWaves = Constant.ITBossWaves; text = "Boss Waves"; for (int j = 1; j < iTBasicWaves.wavePrefabs.Length; j++) { ConfigEntry val2 = ConfigFileAuto.Bind(text, ((Object)iTBasicWaves.wavePrefabs[j].wavePrefab).name, true, "Enable this wave? :\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[j].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token) + "\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[j].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token)); } iTBasicWaves = Constant.ITSuperBossWaves; text = "Super Boss Waves"; for (int k = 0; k < iTBasicWaves.wavePrefabs.Length; k++) { ConfigEntry val3 = ConfigFileAuto.Bind(text, ((Object)iTBasicWaves.wavePrefabs[k].wavePrefab).name, true, "Enable this wave? :\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[k].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token) + "\n" + Language.GetString(((Component)iTBasicWaves.wavePrefabs[k].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token)); } } public static void ApplyConfig() { InfiniteTowerWaveCategory iTBasicWaves = Constant.ITBasicWaves; string text = "Basic Waves"; for (int i = 1; i < iTBasicWaves.wavePrefabs.Length; i++) { ConfigEntry val = null; ConfigFileAuto.TryGetEntry(text, ((Object)iTBasicWaves.wavePrefabs[i].wavePrefab).name, ref val); if (val != null && !val.Value) { iTBasicWaves.wavePrefabs[i].weight = 0f; } } iTBasicWaves = Constant.ITBossWaves; text = "Boss Waves"; for (int j = 1; j < iTBasicWaves.wavePrefabs.Length; j++) { ConfigEntry val2 = null; ConfigFileAuto.TryGetEntry(text, ((Object)iTBasicWaves.wavePrefabs[j].wavePrefab).name, ref val2); if (val2 != null && !val2.Value) { iTBasicWaves.wavePrefabs[j].weight = 0f; } } iTBasicWaves = Constant.ITSuperBossWaves; text = "Super Boss Waves"; for (int k = 0; k < iTBasicWaves.wavePrefabs.Length; k++) { ConfigEntry val3 = null; ConfigFileAuto.TryGetEntry(text, ((Object)iTBasicWaves.wavePrefabs[k].wavePrefab).name, ref val3); if (val3 != null && !val3.Value) { iTBasicWaves.wavePrefabs[k].weight = 0f; } } } } public static class Constant { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_GetTeleportEffectPrefab <>9__92_0; internal GameObject b__92_0(orig_GetTeleportEffectPrefab orig, Run self, GameObject objectToTeleport) { if (self is InfiniteTowerRun) { return VoidTeleportOutEffect; } return orig.Invoke(self, objectToTeleport); } } public static GameObject BasicWave = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveDefault.prefab").WaitForCompletion(); public static GameObject BasicWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentWaveUI.prefab").WaitForCompletion(); public static GameObject BossWave = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveBoss.prefab").WaitForCompletion(); public static GameObject BossWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossWaveUI.prefab").WaitForCompletion(); public static GameObject ScavWave = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveBossScav.prefab").WaitForCompletion(); public static GameObject ScavWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossScavWaveUI.prefab").WaitForCompletion(); public static GameObject BaseExplicit_Basic; public static GameObject BaseExplicit_Boss; public static GameObject ArtifactWave = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveArtifactBomb.prefab").WaitForCompletion(); public static GameObject ArtifactWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentArtifactBombWaveUI.prefab").WaitForCompletion(); public static GameObject LunarWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossLunarWaveUI.prefab").WaitForCompletion(); public static GameObject VoidWaveUI = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossVoidWaveUI.prefab").WaitForCompletion(); public static Sprite texITWaveDefaultWhiteS; public static int SimuEndingStartAtXWaves; public static int SimuEndingEveryXWaves; public static int SimuEndingWaveRest; public static int SimuForcedBossStartAtXWaves; public static int SimuForcedBossEveryXWaves; public static int SimuForcedBossWaveRest; public static float BasicWaveWeight = 100f; public static float BasicBossWaveWight = 80f; public static float DefaultWeightMultiplier1 = 0.75f; public static float DefaultWeightMultiplier2 = 0.25f; public static InfiniteTowerWaveCategory ITBasicWaves = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/ITWaveCategories/CommonWaveCategory.asset").WaitForCompletion(); public static InfiniteTowerWaveCategory ITBossWaves = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/ITWaveCategories/BossWaveCategory.asset").WaitForCompletion(); public static InfiniteTowerWaveCategory ITSuperBossWaves = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCategory ITModSupportWaves = ScriptableObject.CreateInstance(); public static GameEndingDef InfiniteTowerEnding = ScriptableObject.CreateInstance(); public static InteractableSpawnCard iscSimuExitPortal; public static GameObject VoidTeleportOutEffect = PrefabAPI.InstantiateClone(Addressables.LoadAssetAsync((object)"RoR2/DLC1/ExtraLifeVoid/VoidRezEffect.prefab").WaitForCompletion(), "VoidTeleportOutEffect", false); public static ItemTierDef ItemOrangeTierDef; public static AdvancedPickupDropTable dtAISafeRandomVoid = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites AfterWave5Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave11Prerequisite = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/Wave11OrGreaterPrerequisite.asset").WaitForCompletion(); public static InfiniteTowerWaveCountPrerequisites StartWave15Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave20Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave25Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave30Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave35Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave40Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerWaveCountPrerequisites StartWave50Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_MaxWave_Prerequisites AfterWave5EndWave30Prerequisite = ScriptableObject.CreateInstance(); public static InfiniteTowerRun Simu_Run_Run; public static ITWave_DLC_Prerequisites DLC1_StartWave10Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC2_Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC2_StartWave10Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC2_StartWave15Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC2_StartWave30Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC3_Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC3_StartWave10Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC3_StartWave25Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_DLC_Prerequisites DLC3_StartWave50Prerequisite = ScriptableObject.CreateInstance(); public static ITWave_PreReq_BlacklistedFromItMoon NoItMoonStartWave5 = ScriptableObject.CreateInstance(); public static ITWave_PreReq_BlacklistedFromItMoon NoItMoonStartWave15 = ScriptableObject.CreateInstance(); public static BasicPickupDropTable dtITWaveTier1 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dtITDefaultWave.asset").WaitForCompletion(); public static BasicPickupDropTable dtITWaveTier2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dtITBossWave.asset").WaitForCompletion(); public static BasicPickupDropTable dtITWaveTier3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dtITSpecialBossWave.asset").WaitForCompletion(); public static BasicPickupDropTable dtITVoid = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dtITVoid.asset").WaitForCompletion(); public static BasicPickupDropTable dtITLunar = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dtITLunar.asset").WaitForCompletion(); public static AdvancedPickupDropTable dtITFamilyWaveDamage = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITFamilyWaveHealing = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITFamilyWaveUtility = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITCategoryDamage = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITCategoryHealing = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITCategoryUtility = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBossCategoryDamage = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBossCategoryHealing = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBossCategoryUtility = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBasicWaveOnKill = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBasicBonusLunar = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBasicBonusVoid = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBasicBonusGreen = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBossBonusRed = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITBossGreenVoid = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITSpecialEquipment = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITVoidInfestorWave = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITSpecialBossYellow = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITTechnology = ScriptableObject.CreateInstance(); public static ExplicitPickupDropTable dtITHeresy = ScriptableObject.CreateInstance(); public static ExplicitPickupDropTable dtITWurms = ScriptableObject.CreateInstance(); public static AdvancedPickupDropTable dtITRainbow = ScriptableObject.CreateInstance(); public static MasterIndex IndexAffixHealingCore = MasterIndex.none; public static float BossWeightCommon = 10f; public static float BossWeightUncommon = 6f; public static float BossWeightRare = 4f; public static void MakeValues() { //IL_002d: Unknown result type (might be due to invalid IL or missing references) MakeBaseWavesToCopy(); SimuTPEffect(); MakePortal(); SetupConstants(); EnemyDropTables(); WaveDropPools(); WavePrerequesites(); bool flag = default(bool); ContentAddition.AddEntityState(ref flag); texITWaveDefaultWhiteS = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveBasicWhite.png"); } public static void MakeBaseWavesToCopy() { //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) GameObject val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveBossScav.prefab").WaitForCompletion(); BaseExplicit_Basic = PrefabAPI.InstantiateClone(val, "BaseWaveExplicitSpawner_BasicWave", true); InfiniteTowerWaveController component = BaseExplicit_Basic.GetComponent(); component.immediateCreditsFraction = 0.1f; component.baseCredits = 159f; component.linearCreditsPerWave = 0f; component.secondsBeforeSuddenDeath = 60f; component.wavePeriodSeconds = 30f; component.rewardOptionCount = 3; component.rewardDropTable = (PickupDropTable)(object)dtITWaveTier1; component.isBossWave = false; BaseExplicit_Boss = PrefabAPI.InstantiateClone(val, "BaseWaveExplicitSpawner_BossWave", true); component = BaseExplicit_Boss.GetComponent(); component.immediateCreditsFraction = 0.25f; component.baseCredits = 500f; component.linearCreditsPerWave = 0f; component.secondsBeforeSuddenDeath = 60f; component.wavePeriodSeconds = 60f; component.rewardOptionCount = 3; component.rewardDropTable = (PickupDropTable)(object)dtITWaveTier2; component.isBossWave = true; } public static void EnemyDropTables() { //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_001f: 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_01fc: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) ItemTag[] bannedItemTags = Addressables.LoadAssetAsync((object)"RoR2/Base/MonsterTeamGainsItems/dtMonsterTeamTier1Item.asset").WaitForCompletion().bannedItemTags; InfiniteTowerRun component = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerRun.prefab").WaitForCompletion().GetComponent(); AdvancedPickupDropTable val = ScriptableObject.CreateInstance(); AdvancedPickupDropTable val2 = ScriptableObject.CreateInstance(); AdvancedPickupDropTable val3 = ScriptableObject.CreateInstance(); dtAISafeRandomVoid = ScriptableObject.CreateInstance(); ((Object)val).name = "dtITEnemyTier1"; ((Object)val2).name = "dtITEnemyTier2"; ((Object)val3).name = "dtITEnemyTier3"; ((BasicPickupDropTable)val).tier1Weight = 1f; ((BasicPickupDropTable)val).tier2Weight = 0f; ((BasicPickupDropTable)val).tier3Weight = 0f; ((BasicPickupDropTable)val).voidTier1Weight = 0.1f; ((BasicPickupDropTable)val).bannedItemTags = bannedItemTags; ((BasicPickupDropTable)val2).tier1Weight = 0f; ((BasicPickupDropTable)val2).tier2Weight = 1f; ((BasicPickupDropTable)val2).tier3Weight = 0f; ((BasicPickupDropTable)val2).voidTier2Weight = 0.075f; ((BasicPickupDropTable)val2).bannedItemTags = bannedItemTags; ((BasicPickupDropTable)val3).tier1Weight = 0f; ((BasicPickupDropTable)val3).tier2Weight = 0f; ((BasicPickupDropTable)val3).tier3Weight = 1f; ((BasicPickupDropTable)val3).voidTier3Weight = 0.075f; ((BasicPickupDropTable)val3).bannedItemTags = bannedItemTags; component.enemyItemPattern[0].dropTable = (PickupDropTable)(object)val; component.enemyItemPattern[1].dropTable = (PickupDropTable)(object)val; component.enemyItemPattern[2].dropTable = (PickupDropTable)(object)val2; component.enemyItemPattern[3].dropTable = (PickupDropTable)(object)val2; component.enemyItemPattern[4].dropTable = (PickupDropTable)(object)val3; ((Object)dtAISafeRandomVoid).name = "dtAISafeRandomVoid"; ((BasicPickupDropTable)dtAISafeRandomVoid).tier1Weight = 0f; ((BasicPickupDropTable)dtAISafeRandomVoid).tier2Weight = 0f; ((BasicPickupDropTable)dtAISafeRandomVoid).tier3Weight = 0f; ((BasicPickupDropTable)dtAISafeRandomVoid).voidTier1Weight = 6f; ((BasicPickupDropTable)dtAISafeRandomVoid).voidTier2Weight = 3f; ((BasicPickupDropTable)dtAISafeRandomVoid).voidTier3Weight = 1f; ((BasicPickupDropTable)dtAISafeRandomVoid).voidBossWeight = 0.1f; ((PickupDropTable)dtAISafeRandomVoid).canDropBeReplaced = false; ((BasicPickupDropTable)dtAISafeRandomVoid).bannedItemTags = Addressables.LoadAssetAsync((object)"81e89866bab7f7f49ad46cd10f6d9ac8").WaitForCompletion().bannedItemTags; } public static void WaveDropPools() { dtITWaveTier3.tier3Weight = 90f; dtITWaveTier3.bossWeight = 10f; dtITVoid.voidTier1Weight = 60f; dtITVoid.voidTier2Weight = 60f; dtITVoid.voidTier3Weight = 15f; dtITVoid.voidBossWeight = 10f; ((BasicPickupDropTable)dtITBasicWaveOnKill).tier1Weight = 80f; ((BasicPickupDropTable)dtITBasicWaveOnKill).tier2Weight = 9f; ((BasicPickupDropTable)dtITBasicWaveOnKill).tier3Weight = 0.75f; ((BasicPickupDropTable)dtITBasicWaveOnKill).bossWeight = 0.25f; ((Object)dtITBasicWaveOnKill).name = "dtITBasicWaveOnKill"; ((BasicPickupDropTable)dtITBasicWaveOnKill).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)6 }; ((BasicPickupDropTable)dtITBasicBonusGreen).tier1Weight = 30f; ((BasicPickupDropTable)dtITBasicBonusGreen).tier2Weight = 80f; ((BasicPickupDropTable)dtITBasicBonusGreen).tier3Weight = 0f; ((BasicPickupDropTable)dtITBasicBonusGreen).bossWeight = 0f; ((Object)dtITBasicBonusGreen).name = "dtITBasicBonusGreen"; ((BasicPickupDropTable)dtITBossBonusRed).tier1Weight = 0f; ((BasicPickupDropTable)dtITBossBonusRed).tier2Weight = 40f; ((BasicPickupDropTable)dtITBossBonusRed).tier3Weight = 12f; ((BasicPickupDropTable)dtITBossBonusRed).bossWeight = 0f; ((Object)dtITBossBonusRed).name = "dtITBossBonusRed"; ((Object)dtITBossGreenVoid).name = "dtITBossGreenVoid"; ((BasicPickupDropTable)dtITBossGreenVoid).tier1Weight = 0f; ((BasicPickupDropTable)dtITBossGreenVoid).tier2Weight = 80f; ((BasicPickupDropTable)dtITBossGreenVoid).tier3Weight = 7.5f; ((BasicPickupDropTable)dtITBossGreenVoid).bossWeight = 7.5f; ((BasicPickupDropTable)dtITBossGreenVoid).voidTier1Weight = 20f; ((BasicPickupDropTable)dtITBossGreenVoid).voidTier2Weight = 80f; ((BasicPickupDropTable)dtITBossGreenVoid).voidTier3Weight = 10f; ((BasicPickupDropTable)dtITBossGreenVoid).voidBossWeight = 10f; ((BasicPickupDropTable)dtITBasicBonusVoid).tier1Weight = 80f; ((BasicPickupDropTable)dtITBasicBonusVoid).tier2Weight = 10f; ((BasicPickupDropTable)dtITBasicBonusVoid).tier3Weight = 0.25f; ((BasicPickupDropTable)dtITBasicBonusVoid).bossWeight = 0f; ((BasicPickupDropTable)dtITBasicBonusVoid).voidTier1Weight = 80f; ((BasicPickupDropTable)dtITBasicBonusVoid).voidTier2Weight = 25f; ((BasicPickupDropTable)dtITBasicBonusVoid).voidTier3Weight = 5f; ((Object)dtITBasicBonusVoid).name = "dtITBasicBonusVoid"; ((BasicPickupDropTable)dtITBasicBonusLunar).tier1Weight = 80f; ((BasicPickupDropTable)dtITBasicBonusLunar).tier2Weight = 10f; ((BasicPickupDropTable)dtITBasicBonusLunar).tier3Weight = 1f; ((BasicPickupDropTable)dtITBasicBonusLunar).bossWeight = 0f; ((BasicPickupDropTable)dtITBasicBonusLunar).lunarItemWeight = 59f; ((BasicPickupDropTable)dtITBasicBonusLunar).lunarEquipmentWeight = 6f; ((Object)dtITBasicBonusLunar).name = "dtITBasicBonusLunar"; ((BasicPickupDropTable)dtITVoidInfestorWave).tier1Weight = 0f; ((BasicPickupDropTable)dtITVoidInfestorWave).tier2Weight = 0f; ((BasicPickupDropTable)dtITVoidInfestorWave).tier3Weight = 0f; ((BasicPickupDropTable)dtITVoidInfestorWave).bossWeight = 30f; ((BasicPickupDropTable)dtITVoidInfestorWave).voidTier1Weight = 60f; ((BasicPickupDropTable)dtITVoidInfestorWave).voidTier2Weight = 30f; ((BasicPickupDropTable)dtITVoidInfestorWave).voidTier3Weight = 8f; ((BasicPickupDropTable)dtITVoidInfestorWave).voidBossWeight = 10f; ((Object)dtITVoidInfestorWave).name = "dtITVoidInfestorWave"; ((BasicPickupDropTable)dtITSpecialBossYellow).tier1Weight = 0f; ((BasicPickupDropTable)dtITSpecialBossYellow).tier2Weight = 45f; ((BasicPickupDropTable)dtITSpecialBossYellow).tier3Weight = 10f; ((BasicPickupDropTable)dtITSpecialBossYellow).bossWeight = 45f; ((Object)dtITSpecialBossYellow).name = "dtITSpecialBossYellow"; ((BasicPickupDropTable)dtITSpecialBossYellow).voidBossWeight = 5f; dtITSpecialBossYellow.unbiasedByItemCount = true; ((BasicPickupDropTable)dtITFamilyWaveDamage).tier1Weight = 80f; ((BasicPickupDropTable)dtITFamilyWaveDamage).tier2Weight = 8f; ((BasicPickupDropTable)dtITFamilyWaveDamage).tier3Weight = 0.25f; ((BasicPickupDropTable)dtITFamilyWaveDamage).bossWeight = 4f; ((Object)dtITFamilyWaveDamage).name = "dtITFamilyWaveDamage"; ((BasicPickupDropTable)dtITFamilyWaveDamage).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)1 }; ((BasicPickupDropTable)dtITFamilyWaveHealing).tier1Weight = 80f; ((BasicPickupDropTable)dtITFamilyWaveHealing).tier2Weight = 8f; ((BasicPickupDropTable)dtITFamilyWaveHealing).tier3Weight = 0.25f; ((BasicPickupDropTable)dtITFamilyWaveHealing).bossWeight = 4f; ((Object)dtITFamilyWaveHealing).name = "dtITFamilyWaveHealing"; ((BasicPickupDropTable)dtITFamilyWaveHealing).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)2 }; ((BasicPickupDropTable)dtITFamilyWaveUtility).tier1Weight = 80f; ((BasicPickupDropTable)dtITFamilyWaveUtility).tier2Weight = 8f; ((BasicPickupDropTable)dtITFamilyWaveUtility).tier3Weight = 0.25f; ((BasicPickupDropTable)dtITFamilyWaveUtility).bossWeight = 4f; ((Object)dtITFamilyWaveUtility).name = "dtITFamilyWaveUtility"; ((BasicPickupDropTable)dtITFamilyWaveUtility).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)3 }; ((BasicPickupDropTable)dtITCategoryDamage).tier1Weight = 80f; ((BasicPickupDropTable)dtITCategoryDamage).tier2Weight = 12f; ((BasicPickupDropTable)dtITCategoryDamage).tier3Weight = 0.5f; ((BasicPickupDropTable)dtITCategoryDamage).bossWeight = 0.25f; ((Object)dtITCategoryDamage).name = "dtITCategoryDamage"; ((BasicPickupDropTable)dtITCategoryDamage).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)1 }; ((BasicPickupDropTable)dtITCategoryHealing).tier1Weight = 80f; ((BasicPickupDropTable)dtITCategoryHealing).tier2Weight = 12f; ((BasicPickupDropTable)dtITCategoryHealing).tier3Weight = 0.5f; ((BasicPickupDropTable)dtITCategoryHealing).bossWeight = 0.25f; ((Object)dtITCategoryHealing).name = "dtITCategoryHealing"; ((BasicPickupDropTable)dtITCategoryHealing).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)2 }; ((BasicPickupDropTable)dtITCategoryUtility).tier1Weight = 80f; ((BasicPickupDropTable)dtITCategoryUtility).tier2Weight = 12f; ((BasicPickupDropTable)dtITCategoryUtility).tier3Weight = 0.5f; ((BasicPickupDropTable)dtITCategoryUtility).bossWeight = 0.25f; ((Object)dtITCategoryUtility).name = "dtITCategoryUtility"; ((BasicPickupDropTable)dtITCategoryUtility).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)3 }; ((BasicPickupDropTable)dtITBossCategoryDamage).tier1Weight = 0f; ((BasicPickupDropTable)dtITBossCategoryDamage).tier2Weight = 80f; ((BasicPickupDropTable)dtITBossCategoryDamage).tier3Weight = 20f; ((BasicPickupDropTable)dtITBossCategoryDamage).bossWeight = 10f; ((Object)dtITBossCategoryDamage).name = "dtITBossCategoryDamage"; ((BasicPickupDropTable)dtITBossCategoryDamage).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)1 }; ((BasicPickupDropTable)dtITBossCategoryHealing).tier1Weight = 0f; ((BasicPickupDropTable)dtITBossCategoryHealing).tier2Weight = 80f; ((BasicPickupDropTable)dtITBossCategoryHealing).tier3Weight = 20f; ((BasicPickupDropTable)dtITBossCategoryHealing).bossWeight = 10f; ((Object)dtITBossCategoryHealing).name = "dtITBossCategoryHealing"; ((BasicPickupDropTable)dtITBossCategoryHealing).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)2 }; ((BasicPickupDropTable)dtITBossCategoryUtility).tier1Weight = 0f; ((BasicPickupDropTable)dtITBossCategoryUtility).tier2Weight = 80f; ((BasicPickupDropTable)dtITBossCategoryUtility).tier3Weight = 20f; ((BasicPickupDropTable)dtITBossCategoryUtility).bossWeight = 10f; ((Object)dtITBossCategoryUtility).name = "dtITBossCategoryUtility"; ((BasicPickupDropTable)dtITBossCategoryUtility).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)3 }; ((BasicPickupDropTable)dtITSpecialEquipment).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)7 }; ((BasicPickupDropTable)dtITSpecialEquipment).tier1Weight = 40f; ((BasicPickupDropTable)dtITSpecialEquipment).tier2Weight = 40f; ((BasicPickupDropTable)dtITSpecialEquipment).tier3Weight = 20f; ((BasicPickupDropTable)dtITSpecialEquipment).bossWeight = 20f; ((BasicPickupDropTable)dtITSpecialEquipment).lunarItemWeight = 40f; ((BasicPickupDropTable)dtITSpecialEquipment).equipmentWeight = 170f; ((BasicPickupDropTable)dtITSpecialEquipment).lunarEquipmentWeight = 30f; ((Object)dtITSpecialEquipment).name = "dtITSpecialEquipment"; ((Object)dtITRainbow).name = "dtITRainbow"; ((BasicPickupDropTable)dtITRainbow).tier1Weight = 80f; ((BasicPickupDropTable)dtITRainbow).tier2Weight = 20f; ((BasicPickupDropTable)dtITRainbow).tier3Weight = 1f; ((BasicPickupDropTable)dtITRainbow).bossWeight = 1f; ((BasicPickupDropTable)dtITRainbow).equipmentWeight = 10f; ((BasicPickupDropTable)dtITRainbow).lunarItemWeight = 4f; ((BasicPickupDropTable)dtITRainbow).voidTier1Weight = 20f; ((BasicPickupDropTable)dtITRainbow).voidTier2Weight = 5f; ((BasicPickupDropTable)dtITRainbow).voidTier3Weight = 1f; ((BasicPickupDropTable)dtITRainbow).voidBossWeight = 1f; ((BasicPickupDropTable)dtITRainbow).lunarEquipmentWeight = 1f; dtITRainbow.eliteEquipmentWeight = 1f; ((Object)dtITTechnology).name = "dtITTechnology"; ((BasicPickupDropTable)dtITTechnology).tier1Weight = 80f; ((BasicPickupDropTable)dtITTechnology).tier2Weight = 15f; ((BasicPickupDropTable)dtITTechnology).tier3Weight = 2f; ((BasicPickupDropTable)dtITTechnology).bossWeight = 2f; ((BasicPickupDropTable)dtITTechnology).requiredItemTags = (ItemTag[])(object)new ItemTag[1] { (ItemTag)33 }; } public static void WavePrerequesites() { AfterWave5Prerequisite.minimumWaveCount = 6; ((Object)AfterWave5Prerequisite).name = "AfterWave5Prerequisite"; StartWave15Prerequisite.minimumWaveCount = 15; ((Object)StartWave15Prerequisite).name = "StartWave15Prerequisite"; StartWave20Prerequisite.minimumWaveCount = 20; ((Object)StartWave20Prerequisite).name = "StartWave20Prerequisite"; StartWave25Prerequisite.minimumWaveCount = 25; ((Object)StartWave25Prerequisite).name = "StartWave25Prerequisite"; StartWave30Prerequisite.minimumWaveCount = 30; ((Object)StartWave30Prerequisite).name = "StartWave30Prerequisite"; StartWave35Prerequisite.minimumWaveCount = 35; ((Object)StartWave35Prerequisite).name = "StartWave35Prerequisite"; StartWave40Prerequisite.minimumWaveCount = 40; ((Object)StartWave40Prerequisite).name = "StartWave40Prerequisite"; StartWave50Prerequisite.minimumWaveCount = 50; ((Object)StartWave50Prerequisite).name = "StartWave50Prerequisite"; NoItMoonStartWave15.minimumWaveCount = 15; ((Object)NoItMoonStartWave15).name = "NoItMoonStartWave15"; NoItMoonStartWave5.minimumWaveCount = 5; ((Object)NoItMoonStartWave5).name = "NoItMoonStartWave5"; AfterWave5EndWave30Prerequisite.minimumWaveCount = 6; AfterWave5EndWave30Prerequisite.maximumWaveCount = 30; ((Object)AfterWave5EndWave30Prerequisite).name = "AfterWave5EndWave30Prerequisite"; DLC2_Prerequisite.requiredDLC = DLCS.DLC2; DLC2_Prerequisite.minimumWaveCount = 0; ((Object)DLC2_Prerequisite).name = "DLC2_Prerequisite"; DLC2_StartWave10Prerequisite.requiredDLC = DLCS.DLC2; DLC2_StartWave10Prerequisite.minimumWaveCount = 10; ((Object)DLC2_StartWave10Prerequisite).name = "StartWave10PrerequisiteDLC2"; DLC2_StartWave15Prerequisite.requiredDLC = DLCS.DLC2; DLC2_StartWave15Prerequisite.minimumWaveCount = 15; ((Object)DLC2_StartWave15Prerequisite).name = "StartWave15PrerequisiteDLC2"; DLC2_StartWave30Prerequisite.requiredDLC = DLCS.DLC2; DLC2_StartWave30Prerequisite.minimumWaveCount = 30; ((Object)DLC2_StartWave30Prerequisite).name = "StartWave30PrerequisiteDLC2"; DLC3_Prerequisite.requiredDLC = DLCS.DLC3; DLC3_Prerequisite.minimumWaveCount = 0; ((Object)DLC3_Prerequisite).name = "DLC3_Prerequisite"; DLC3_StartWave10Prerequisite.requiredDLC = DLCS.DLC3; DLC3_StartWave10Prerequisite.minimumWaveCount = 10; ((Object)DLC3_StartWave10Prerequisite).name = "DLC3_StartWave10Prerequisite"; DLC3_StartWave25Prerequisite.requiredDLC = DLCS.DLC3; DLC3_StartWave25Prerequisite.minimumWaveCount = 25; ((Object)DLC3_StartWave25Prerequisite).name = "DLC3_StartWave25Prerequisite"; DLC3_StartWave50Prerequisite.requiredDLC = DLCS.DLC3; DLC3_StartWave50Prerequisite.minimumWaveCount = 50; ((Object)DLC3_StartWave50Prerequisite).name = "DLC3_StartWave50Prerequisite"; } public static void SetupConstants() { //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: 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_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_0114: 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_012d: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01da: Unknown result type (might be due to invalid IL or missing references) //IL_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_0299: Unknown result type (might be due to invalid IL or missing references) //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02db: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) ITSuperBossWaves.wavePrefabs = Array.Empty(); ((Object)ITSuperBossWaves).name = "SuperBossWaveCategory"; ITSuperBossWaves.availabilityPeriod = 30; ITSuperBossWaves.minWaveIndex = 50; ITModSupportWaves.wavePrefabs = Array.Empty(); ((Object)ITModSupportWaves).name = "ITModSupportWaveCategory"; ITModSupportWaves.availabilityPeriod = 999; ITModSupportWaves.minWaveIndex = 998; ItemOrangeTierDef = ScriptableObject.CreateInstance(); ItemTierDef val = Addressables.LoadAssetAsync((object)"RoR2/Base/Common/Tier1Def.asset").WaitForCompletion(); ItemOrangeTierDef.tier = (ItemTier)25523; ((Object)ItemOrangeTierDef).name = "OrangeTierDef"; ItemOrangeTierDef.bgIconTexture = val.bgIconTexture; ItemOrangeTierDef.colorIndex = (ColorIndex)5; ItemOrangeTierDef.darkColorIndex = (ColorIndex)5; ItemOrangeTierDef.isDroppable = false; ItemOrangeTierDef.canScrap = false; ItemOrangeTierDef.canRestack = false; ItemOrangeTierDef.highlightPrefab = val.highlightPrefab; ItemOrangeTierDef.dropletDisplayPrefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Common/EquipmentOrb.prefab").WaitForCompletion(); ItemOrangeTierDef.pickupRules = (PickupRules)0; ContentAddition.AddItemTierDef(ItemOrangeTierDef); SimuEndingEveryXWaves = WConfig.cfgSimuEndingEveryXWaves.Value; SimuEndingStartAtXWaves = WConfig.cfgSimuEndingStartAtXWaves.Value; SimuEndingWaveRest = WConfig.cfgSimuEndingStartAtXWaves.Value % WConfig.cfgSimuEndingEveryXWaves.Value; SimuForcedBossEveryXWaves = WConfig.cfgSuperBossEveryXWaves.Value; SimuForcedBossStartAtXWaves = WConfig.cfgSuperBossStartAtXWaves.Value; SimuForcedBossWaveRest = WConfig.cfgSuperBossStartAtXWaves.Value % WConfig.cfgSuperBossEveryXWaves.Value; GameEndingDef val2 = Addressables.LoadAssetAsync((object)"RoR2/Base/ClassicRun/MainEnding.asset").WaitForCompletion(); GameEndingDef val3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/VoidEnding.asset").WaitForCompletion(); GameEndingDef val4 = Addressables.LoadAssetAsync((object)"RoR2/Base/ClassicRun/ObliterationEnding.asset").WaitForCompletion(); Sprite icon = Addressables.LoadAssetAsync((object)"RoR2/DLC1/UI/texVoidTransformationBackground.png").WaitForCompletion(); ContentAddition.AddGameEndingDef(InfiniteTowerEnding); val3.icon = val2.icon; val3.lunarCoinReward += 5; InfiniteTowerEnding.endingTextToken = "Simulation Suspended"; InfiniteTowerEnding.lunarCoinReward = 10u; InfiniteTowerEnding.showCredits = false; InfiniteTowerEnding.isWin = true; InfiniteTowerEnding.gameOverControllerState = val4.gameOverControllerState; InfiniteTowerEnding.material = val2.material; InfiniteTowerEnding.icon = icon; InfiniteTowerEnding.backgroundColor = new Color(0.65f, 0.3f, 0.55f, 0.8f); InfiniteTowerEnding.foregroundColor = new Color(0.85f, 0.5f, 0.65f, 1f); InfiniteTowerEnding.cachedName = "InfiniteTowerEnding"; DirectorCardCategorySelection val5 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dccsITVoidMonsters.asset").WaitForCompletion(); val5.categories[1].selectionWeight = 2f; val5.categories[2].cards[0].selectionWeight = 2; } internal static void MakePortal() { //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_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Unknown result type (might be due to invalid IL or missing references) InteractableSpawnCard val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidOutroPortal/iscVoidOutroPortal.asset").WaitForCompletion(); InteractableSpawnCard val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/PortalVoid/iscVoidPortal.asset").WaitForCompletion(); iscSimuExitPortal = Object.Instantiate(val); ((Object)iscSimuExitPortal).name = "iscSimuExitPortal"; GameObject val3 = PrefabAPI.InstantiateClone(((SpawnCard)iscSimuExitPortal).prefab, "SimulacrumExitPortal", true); ((SpawnCard)iscSimuExitPortal).prefab = val3; val3.GetComponent().displayToken = "PORTAL_ITEND_NAME"; val3.GetComponent().contextToken = "PORTAL_ITEND_CONTEXT"; if (Object.op_Implicit((Object)(object)val3.GetComponent())) { val3.GetComponent().objectiveToken = "OBJECTIVE_ITEND"; } else { val3.AddComponent().objectiveToken = "OBJECTIVE_ITEND"; } Object.Instantiate(((Component)((SpawnCard)val2).prefab.transform.GetChild(0)).gameObject, val3.transform); val3.transform.localScale = new Vector3(1.26f, 1.26f, 0.85f); val3.transform.GetChild(2).localPosition = new Vector3(0f, 4f, 0f); ((Component)val3.transform.GetChild(2).GetChild(2)).GetComponent().color = new Color(-8f, -16f, -8f); Object.Destroy((Object)(object)((Component)val3.transform.GetChild(2).GetChild(2)).GetComponent()); Transform child = val3.transform.GetChild(2).GetChild(4); child.localScale *= 0.5f; ((Component)val3.transform.GetChild(2).GetChild(4)).GetComponent().entity = val3; ((Component)val3.transform.GetChild(2).GetChild(5)).gameObject.SetActive(true); ((Component)val3.transform.GetChild(2).GetChild(6)).gameObject.SetActive(false); ((Component)val3.transform.GetChild(2).GetChild(7)).gameObject.SetActive(false); Object.Destroy((Object)(object)((Component)val3.transform.GetChild(1)).gameObject); Object.Destroy((Object)(object)((Component)val3.transform.GetChild(0)).gameObject); } public static void SimuTPEffect() { //IL_006d: 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_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown ((Component)VoidTeleportOutEffect.transform.GetChild(9)).gameObject.SetActive(false); Object.Destroy((Object)(object)((Component)VoidTeleportOutEffect.transform.GetChild(4)).gameObject); Object.Destroy((Object)(object)((Component)VoidTeleportOutEffect.transform.GetChild(0)).gameObject); VoidTeleportOutEffect.transform.localScale = new Vector3(0.35f, 0.35f, 0.35f); VoidTeleportOutEffect.GetComponent().soundName = "Play_UI_charTeleport"; ContentAddition.AddEffect(VoidTeleportOutEffect); if (!WConfig.cfgDifferentTeleportEffect.Value) { return; } object obj = <>c.<>9__92_0; if (obj == null) { hook_GetTeleportEffectPrefab val = (orig_GetTeleportEffectPrefab orig, Run self, GameObject objectToTeleport) => (self is InfiniteTowerRun) ? VoidTeleportOutEffect : orig.Invoke(self, objectToTeleport); <>c.<>9__92_0 = val; obj = (object)val; } Run.GetTeleportEffectPrefab += (hook_GetTeleportEffectPrefab)obj; } public static void Late_MakeValues() { //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_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0058: 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_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0080: 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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: 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_00f8: 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_0102: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_01ab: 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_0200: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) IndexAffixHealingCore = MasterCatalog.FindMasterIndex("AffixEarthHealerMaster"); ((Object)dtITHeresy).name = "dtITHeresy"; ((PickupDropTable)dtITHeresy).canDropBeReplaced = false; dtITHeresy.pickupEntries = (PickupDefEntry[])(object)new PickupDefEntry[6] { new PickupDefEntry { pickupDef = (Object)(object)Items.LunarPrimaryReplacement, pickupWeight = 1.25f }, new PickupDefEntry { pickupDef = (Object)(object)Items.LunarSecondaryReplacement, pickupWeight = 1.25f }, new PickupDefEntry { pickupDef = (Object)(object)Items.LunarUtilityReplacement, pickupWeight = 1.25f }, new PickupDefEntry { pickupDef = (Object)(object)Items.LunarSpecialReplacement, pickupWeight = 1.25f }, new PickupDefEntry { pickupDef = (Object)(object)Items.Pearl, pickupWeight = 0.4f }, new PickupDefEntry { pickupDef = (Object)(object)Items.ShinyPearl, pickupWeight = 0.1f } }; ((Object)dtITWurms).name = "dtITWurms"; ((PickupDropTable)dtITWurms).canDropBeReplaced = false; dtITWurms.pickupEntries = (PickupDefEntry[])(object)new PickupDefEntry[2] { new PickupDefEntry { pickupDef = (Object)(object)Items.FireballsOnHit, pickupWeight = 1f }, new PickupDefEntry { pickupDef = (Object)(object)Items.LightningStrikeOnHit, pickupWeight = 1f } }; Simu_Run_Run = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/InfiniteTowerRun.prefab").WaitForCompletion().GetComponent(); ArrayUtils.ArrayAppend(ref Simu_Run_Run.blacklistedItems, ref Items.Squid); Simu_Run_Run.blacklistedTags = Simu_Run_Run.blacklistedTags.Remove((ItemTag)18); ItemDef itemDef = ItemCatalog.GetItemDef(ItemCatalog.FindItemIndex("VV_ITEM_CORNUCOPIACELL_ITEM")); if ((Object)(object)itemDef != (Object)null) { ArrayUtils.ArrayAppend(ref Simu_Run_Run.blacklistedItems, ref itemDef); } itemDef = ItemCatalog.GetItemDef(ItemCatalog.FindItemIndex("FieldAccelerator")); if ((Object)(object)itemDef != (Object)null) { ArrayUtils.ArrayAppend(ref Simu_Run_Run.blacklistedItems, ref itemDef); } if (WConfig.cfgItemsEvery8.Value) { Simu_Run_Run.enemyItemPeriod = 8; } } } public class ITWave_DLC_Prerequisites : InfiniteTowerWavePrerequisites { public ExpansionDef requiredDLC; public int minimumWaveCount; public override bool AreMet(InfiniteTowerRun run) { if (((Run)run).IsExpansionEnabled(requiredDLC)) { return run.waveIndex >= minimumWaveCount; } return false; } } public class ITWave_PreReq_BlacklistedFromItMoon : InfiniteTowerWavePrerequisites { public int minimumWaveCount; public override bool AreMet(InfiniteTowerRun run) { if (Object.op_Implicit((Object)(object)SceneInfo.instance) && (Object)(object)SceneInfo.instance.sceneDef != (Object)(object)SceneList.itMoon) { return run.waveIndex >= minimumWaveCount; } return false; } } public class ITWave_MaxWave_Prerequisites : InfiniteTowerWavePrerequisites { public int maximumWaveCount; public int minimumWaveCount; public override bool AreMet(InfiniteTowerRun run) { if (run.waveIndex >= maximumWaveCount) { return false; } return run.waveIndex >= minimumWaveCount; } } public class ArtifactTweaks { public static SpawnCard iscLemEggIT; public static void Main() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown DevotionInventoryController.Awake += new hook_Awake(DevotionInventoryController_Awake); InfiniteTowerRun.onAllEnemiesDefeatedServer += ActivateNewArtifacts_OnAllEnemiesDefeatedServer; SpawnCard val = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/CU8/LemurianEgg/iscLemurianEgg.asset").WaitForCompletion(); iscLemEggIT = Object.Instantiate(val); ((Object)iscLemEggIT).name = "iscLemurianEggIT"; iscLemEggIT.directorCreditCost = 1; SceneDirector.onGenerateInteractableCardSelection += SimulacrumDevotionAddEgg; SacrificeArtifactManager.OnArtifactEnabled += new hook_OnArtifactEnabled(SacrificeArtifactManager_OnArtifactEnabled); SacrificeArtifactManager.OnArtifactDisabled += new hook_OnArtifactDisabled(SacrificeArtifactManager_OnArtifactDisabled); } private static void ActivateNewArtifacts_OnAllEnemiesDefeatedServer(InfiniteTowerWaveController self) { if (NetworkServer.active && self.isBossWave) { try { DevotionInventoryController.ActivateAllDevotedEvolution(); } catch (Exception ex) { Debug.LogWarning((object)ex); } } } private static void DevotionInventoryController_Awake(orig_Awake orig, DevotionInventoryController self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { self._devotionMinionInventory.GiveItemPermanent(Items.BoostHp, 5); } } private static void SimulacrumDevotionAddEgg(SceneDirector scene, DirectorCardCategorySelection dccs) { //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) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004d: 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_005b: 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_0063: Expected O, but got Unknown if (Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent()) && RunArtifactManager.instance.IsArtifactEnabled(Artifacts.Devotion)) { DirectorCard val = new DirectorCard { spawnCard = iscLemEggIT, selectionWeight = 10, preventOverhead = false, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; int num = dccs.AddCategory("Egg", 40f); dccs.AddCard(num, val); } } private static void SacrificeArtifactManager_OnArtifactEnabled(orig_OnArtifactEnabled orig, RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Expected O, but got Unknown orig.Invoke(runArtifactManager, artifactDef); if (NetworkServer.active && !((Object)(object)artifactDef != (Object)(object)Artifacts.sacrificeArtifactDef) && WConfig.cfgSacrificeBalance.Value && Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { Debug.Log((object)"Simulacrum : Added Sacrifice"); Util.GetExpAdjustedDropChancePercent += new hook_GetExpAdjustedDropChancePercent(SimulacrumNerfSacrifice); } } private static float SimulacrumNerfSacrifice(orig_GetExpAdjustedDropChancePercent orig, float baseChancePercent, GameObject characterBodyObject) { return orig.Invoke(baseChancePercent, characterBodyObject) * 0.67f; } private static void SacrificeArtifactManager_OnArtifactDisabled(orig_OnArtifactDisabled orig, RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Expected O, but got Unknown orig.Invoke(runArtifactManager, artifactDef); if (NetworkServer.active && !((Object)(object)artifactDef != (Object)(object)Artifacts.sacrificeArtifactDef) && WConfig.cfgSacrificeBalance.Value && Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { Debug.Log((object)"Simulacrum : Removed Sacrifice"); Util.GetExpAdjustedDropChancePercent -= new hook_GetExpAdjustedDropChancePercent(SimulacrumNerfSacrifice); } } } public class CrabActivateToTravel { public class CrabTravelOnCommand : MonoBehaviour { public void Activate() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown Run instance = Run.instance; Xoroshiro128Plus safeWardRng = ((InfiniteTowerRun)((instance is InfiniteTowerRun) ? instance : null)).safeWardRng; EntityStateMachine component = ((Component)this).GetComponent(); component.SetNextState((EntityState)new Travelling(safeWardRng)); PurchaseInteraction component2 = ((Component)this).gameObject.GetComponent(); component2.SetAvailable(false); component2.contextToken = "INFINITE_TOWER_SAFE_WARD_CONTEXT"; Object.Destroy((Object)(object)this); } } public static void Make() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Travelling.OnEnter += new hook_OnEnter(Travelling_OnEnter); if (WConfig.cfgAwaitTravel.Value) { Unburrow.OnEnter += new hook_OnEnter(Unburrow_OnEnter); Unburrow.FixedUpdate += new hook_FixedUpdate(Unburrow_FixedUpdate); } } private static void Travelling_OnEnter(orig_OnEnter orig, Travelling self) { self.animationStateName = "Swim"; self.animationLayerName = "Base"; orig.Invoke(self); } private static void Unburrow_OnEnter(orig_OnEnter orig, Unburrow self) { //IL_00ac: 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_00c1: Expected O, but got Unknown //IL_0106: 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_0112: 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) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0131: Expected O, but got Unknown ((BaseSafeWardState)self).zone = ((EntityState)self).GetComponent(); float num = VoidSafeWard_Hooks.baseRadius + (float)Run.instance.participatingPlayerCount * VoidSafeWard_Hooks.radiusPerPlayer; if (Object.op_Implicit((Object)(object)((BaseSafeWardState)self).zone) && ((BaseSafeWardState)self).zone.radius > num) { VoidSafeWard_Hooks.RadiusShrinker radiusShrinker = ((EntityState)self).gameObject.AddComponent(); radiusShrinker.originalRadius = ((BaseSafeWardState)self).zone.radius; radiusShrinker.newRadius = num; self.radius = ((BaseSafeWardState)self).zone.radius; } else { self.radius = num; } ((BaseSafeWardState)self).objectiveToken = "INFINITETOWER_OBJECTIVE_AWAITING_TRAVEL"; orig.Invoke(self); self.duration = 0f; Chat.SendBroadcastChat((ChatMessageBase)new SimpleChatMessage { baseToken = "INFINITETOWER_TRAVEL_NOTICE" }); Animator modelAnimator = ((EntityState)self).GetModelAnimator(); modelAnimator.Play("BurrowedToIdle", 0, -0.2f); CrabTravelOnCommand target = ((EntityState)self).gameObject.AddComponent(); PurchaseInteraction component = ((EntityState)self).gameObject.GetComponent(); component.SetAvailable(true); component.contextToken = "INFINITETOWER_TRAVEL_CONTEXT"; PersistentCall item = new PersistentCall { m_Target = (Object)(object)target, m_MethodName = "Activate", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }; ((UnityEventBase)component.onDetailedPurchaseServer).m_PersistentCalls.m_Calls.Add(item); ((UnityEventBase)component.onDetailedPurchaseServer).m_CallsDirty = true; } private static void Unburrow_FixedUpdate(orig_FixedUpdate orig, Unburrow self) { ((EntityState)self).fixedAge = ((EntityState)self).fixedAge + Time.fixedDeltaTime; if (((EntityState)self).fixedAge > 5f && ((EntityState)self).fixedAge < 6f) { Animator modelAnimator = ((EntityState)self).GetModelAnimator(); modelAnimator.Play("BurrowedToIdle", 0, 12f); } } } public class ITRun_Hooks { public static SceneDef PreviousSceneDef; internal static void AddHooks() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown InfiniteTowerRun.PreStartClient += new hook_PreStartClient(ITRun_SetThingsOn_Start); InfiniteTowerRun.OnDestroy += new hook_OnDestroy(ITRun_SetThingsOn_End); InfiniteTowerRun.OnWaveAllEnemiesDefeatedServer += new hook_OnWaveAllEnemiesDefeatedServer(PreventRepeatingStages); InfiniteTowerWaveCategory.SelectWavePrefab += new hook_SelectWavePrefab(ForceSuperBossWave); InfiniteTowerRun.AdvanceWave += new hook_AdvanceWave(MakeWavesMoreCommon); if (WConfig.cfgItemsFrequently.Value) { InfiniteTowerRun.AdvanceWave += new hook_AdvanceWave(MoreItems_AdvanceWave); } InfiniteTowerRun.Start += new hook_Start(InfiniteTowerRun_Start); } private static void InfiniteTowerRun_Start(orig_Start orig, InfiniteTowerRun self) { orig.Invoke(self); if (NetworkServer.active) { ((Run)self).SetEventFlag("NoArtifactWorld"); ((Run)self).SetEventFlag("NoMysterySpace"); } } private static void MakeWavesMoreCommon(orig_AdvanceWave orig, InfiniteTowerRun self) { orig.Invoke(self); if ((self.waveIndex == 50 || self.waveIndex == 31) && Constant.ITBossWaves.wavePrefabs[0].weight > 1f) { float num = 1f; num = ((self.waveIndex != 31) ? Constant.DefaultWeightMultiplier2 : Constant.DefaultWeightMultiplier1); Constant.ITBasicWaves.wavePrefabs[0].weight = Constant.BasicWaveWeight * num; Constant.ITBasicWaves.GenerateWeightedSelection(); Constant.ITBossWaves.wavePrefabs[0].weight = Constant.BasicBossWaveWight * num; Constant.ITBossWaves.GenerateWeightedSelection(); } } private static void MoreItems_AdvanceWave(orig_AdvanceWave orig, InfiniteTowerRun self) { //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0116: 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_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_0147: 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_015d: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0184: 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_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: 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) //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Expected O, but got Unknown if (self.enemyItemPatternIndex >= 5 && self.enemyItemPeriod > 5) { self.enemyItemPeriod /= 2; } orig.Invoke(self); if (!WConfig.cfgDumpInfo.Value || !NetworkServer.active || self.waveIndex <= self.enemyItemPeriod) { return; } int num = self.waveIndex; int num2 = 0; int num3 = 8; while (num >= num3) { num -= num3; num2++; if (num2 % 5 == 0 && num3 > 2) { num3 /= 2; } } Debug.Log((object)("WaveIndex:" + self.waveIndex + " ExpectedItemCount " + num2)); while (self.enemyItemPatternIndex < num2) { EnemyItemEntry[] enemyItemPattern = self.enemyItemPattern; int enemyItemPatternIndex = self.enemyItemPatternIndex; self.enemyItemPatternIndex = enemyItemPatternIndex + 1; EnemyItemEntry val = enemyItemPattern[enemyItemPatternIndex % self.enemyItemPattern.Length]; if (!Object.op_Implicit((Object)(object)val.dropTable)) { break; } UniquePickup val2 = val.dropTable.GeneratePickup(self.enemyItemRng); if (val2.pickupIndex != PickupIndex.none) { PickupDef pickupDef = PickupCatalog.GetPickupDef(val2.pickupIndex); if (pickupDef != null) { self.enemyInventory.GiveItemPermanent(pickupDef.itemIndex, val.stacks); Chat.SendBroadcastChat((ChatMessageBase)new PlayerPickupChatMessage { baseToken = "INFINITETOWER_ADD_ITEM", pickupToken = pickupDef.nameToken, pickupColor = Color32.op_Implicit(pickupDef.baseColor) }); } } } } public static GameObject ForceSuperBossWave(orig_SelectWavePrefab orig, InfiniteTowerWaveCategory self, InfiniteTowerRun run, Xoroshiro128Plus rng) { if (run.waveIndex >= Constant.SimuForcedBossStartAtXWaves && run.waveIndex % Constant.SimuForcedBossEveryXWaves == Constant.SimuForcedBossWaveRest) { GameObject val = orig.Invoke(Constant.ITSuperBossWaves, run, rng); Debug.Log((object)"Forcing SuperBoss"); Debug.Log((object)(run.waveIndex + " Forced SuperBoss " + (object)val)); return val; } GameObject val2 = orig.Invoke(self, run, rng); Debug.Log((object)(run.waveIndex + " SelectWavePrefab " + (object)val2)); return val2; } public static void PreventRepeatingStages(orig_OnWaveAllEnemiesDefeatedServer orig, InfiniteTowerRun self, InfiniteTowerWaveController wc) { orig.Invoke(self, wc); if (!self.IsStageTransitionWave()) { return; } if ((Object)(object)PreviousSceneDef != (Object)null && (Object)(object)PreviousSceneDef == (Object)(object)((Run)self).nextStageScene) { int num = 0; do { num++; ((Run)self).PickNextStageSceneFromCurrentSceneDestinations(); } while ((Object)(object)((Run)self).nextStageScene == (Object)(object)PreviousSceneDef && num < 10); } PreviousSceneDef = Stage.instance.sceneDef; } private static void ITRun_SetThingsOn_Start(orig_PreStartClient orig, InfiniteTowerRun self) { orig.Invoke(self); Constant.ITBossWaves.availabilityPeriod = 5; Constant.ITBossWaves.minWaveIndex = 0; if (Constant.ITBossWaves.wavePrefabs[0].weight < 1f) { Constant.ITBasicWaves.wavePrefabs[0].weight = Constant.BasicWaveWeight; Constant.ITBasicWaves.GenerateWeightedSelection(); Constant.ITBossWaves.wavePrefabs[0].weight = Constant.BasicBossWaveWight; Constant.ITBasicWaves.GenerateWeightedSelection(); } SimulacrumDCCS.MakeITSand(makeITSand: true); if (WConfig.cfgVoidCoins.Value) { VoidCoin.VoidCoinRunStart(); } GameObject val = LegacyResourcesAPI.Load("Prefabs/CharacterMasters/EquipmentDroneMaster"); ((Behaviour)val.GetComponent()).enabled = false; val.AddComponent(); Object.Destroy((Object)(object)val.GetComponent()); } private static void ITRun_SetThingsOn_End(orig_OnDestroy orig, InfiniteTowerRun self) { orig.Invoke(self); GameObject val = LegacyResourcesAPI.Load("Prefabs/CharacterMasters/EquipmentDroneMaster"); ((Behaviour)val.GetComponent()).enabled = true; val.AddComponent(); Object.Destroy((Object)(object)val.GetComponent()); SimulacrumDCCS.MakeITSand(makeITSand: false); if (WConfig.cfgVoidCoins.Value) { VoidCoin.VoidCoinRunEnd(); } } } public class Hooks_Other { public class ResetWavesCounter : MonoBehaviour { public void Reset() { //IL_0075: 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) Debug.LogWarning((object)"Attempting to reset Simulacrum Wave High-scores"); MPEventSystem val = MPEventSystem.instancesList[0]; UserProfile val2; if ((Object)(object)val == (Object)null) { val2 = null; } else { LocalUser localUser = val.localUser; val2 = ((localUser != null) ? localUser.userProfile : null); } UserProfile val3 = val2; if (val3 != null) { StatSheet statSheet = val3.statSheet; SurvivorDef survivorPreference = val3.GetSurvivorPreference(); if (Object.op_Implicit((Object)(object)survivorPreference)) { string bodyName = BodyCatalog.GetBodyName(SurvivorCatalog.GetBodyIndexFromSurvivorIndex(survivorPreference.survivorIndex)); Debug.LogWarning((object)("Resetting for " + bodyName)); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedEasy.FindStatDef(bodyName ?? ""), "0"); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedNormal.FindStatDef(bodyName ?? ""), "0"); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedHard.FindStatDef(bodyName ?? ""), "0"); } } } public void ResetAll() { //IL_00a9: Unknown result type (might be due to invalid IL or missing references) Debug.LogWarning((object)"Attempting to reset ALL Simulacrum Wave High-scores"); MPEventSystem val = MPEventSystem.instancesList[0]; UserProfile val2; if ((Object)(object)val == (Object)null) { val2 = null; } else { LocalUser localUser = val.localUser; val2 = ((localUser != null) ? localUser.userProfile : null); } UserProfile val3 = val2; if (val3 == null) { return; } StatSheet statSheet = val3.statSheet; SurvivorDef[] survivorDefs = SurvivorCatalog.survivorDefs; foreach (SurvivorDef val4 in survivorDefs) { if (Object.op_Implicit((Object)(object)val4.bodyPrefab)) { CharacterBody component = val4.bodyPrefab.GetComponent(); if (Object.op_Implicit((Object)(object)component)) { string bodyName = BodyCatalog.GetBodyName(component.bodyIndex); Debug.LogWarning((object)("Resetting for " + bodyName)); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedEasy.FindStatDef(bodyName ?? ""), "0"); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedNormal.FindStatDef(bodyName ?? ""), "0"); statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedHard.FindStatDef(bodyName ?? ""), "0"); } } } } public void Set50D() { Set50(0); } public void Set50R() { Set50(1); } public void Set50M() { Set50(2); } public void Set50(int difficulty) { //IL_0075: 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) Debug.LogWarning((object)"Attempting to set 50 Simulacrum Wave High-scores"); MPEventSystem val = MPEventSystem.instancesList[0]; UserProfile val2; if ((Object)(object)val == (Object)null) { val2 = null; } else { LocalUser localUser = val.localUser; val2 = ((localUser != null) ? localUser.userProfile : null); } UserProfile val3 = val2; if (val3 == null) { return; } StatSheet statSheet = val3.statSheet; SurvivorDef survivorPreference = val3.GetSurvivorPreference(); if (Object.op_Implicit((Object)(object)survivorPreference)) { string bodyName = BodyCatalog.GetBodyName(SurvivorCatalog.GetBodyIndexFromSurvivorIndex(survivorPreference.survivorIndex)); Debug.LogWarning((object)("Setting 50 for " + bodyName)); switch (difficulty) { case 0: statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedEasy.FindStatDef(bodyName ?? ""), "50"); break; case 1: statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedNormal.FindStatDef(bodyName ?? ""), "50"); break; case 2: statSheet.SetStatValueFromString(PerBodyStatDef.highestInfiniteTowerWaveReachedHard.FindStatDef(bodyName ?? ""), "50"); break; } } } } internal static void AddHooks() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Expected O, but got Unknown PickupCatalog.FindPickupIndex_ItemTier += new hook_FindPickupIndex_ItemTier(PickupCatalog_FindPickupIndex_ItemTier); ScavengerItemGranter.Start += new hook_Start(SimuGiveScavVoidItems); EventFunctions.BeginEnding += new hook_BeginEnding(SimulacrumEndingBeginEnding); InfiniteTowerMenuController.OnEventSystemDiscovered += new hook_OnEventSystemDiscovered(InfiniteTowerMenuController_OnEventSystemDiscovered); } private static void InfiniteTowerMenuController_OnEventSystemDiscovered(orig_OnEventSystemDiscovered orig, InfiniteTowerMenuController self, MPEventSystem eventSystem) { //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: 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_0270: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_027c: Unknown result type (might be due to invalid IL or missing references) //IL_0284: Unknown result type (might be due to invalid IL or missing references) //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_0297: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Expected O, but got Unknown //IL_02a6: Expected O, but got Unknown //IL_02a8: 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_02b4: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: 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_02d1: Expected O, but got Unknown //IL_02d6: Expected O, but got Unknown //IL_02e1: Expected O, but got Unknown //IL_0321: Unknown result type (might be due to invalid IL or missing references) //IL_0326: Unknown result type (might be due to invalid IL or missing references) //IL_032d: Unknown result type (might be due to invalid IL or missing references) //IL_0332: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_0347: 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_034d: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Expected O, but got Unknown //IL_035c: Expected O, but got Unknown //IL_035e: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_036a: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Unknown result type (might be due to invalid IL or missing references) //IL_037c: Unknown result type (might be due to invalid IL or missing references) //IL_037d: Unknown result type (might be due to invalid IL or missing references) //IL_0387: Expected O, but got Unknown //IL_038c: Expected O, but got Unknown //IL_0397: Expected O, but got Unknown //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03df: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03eb: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_03fe: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0405: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Expected O, but got Unknown //IL_0415: Expected O, but got Unknown //IL_0417: Unknown result type (might be due to invalid IL or missing references) //IL_041c: Unknown result type (might be due to invalid IL or missing references) //IL_0423: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0430: Unknown result type (might be due to invalid IL or missing references) //IL_0435: Unknown result type (might be due to invalid IL or missing references) //IL_0436: Unknown result type (might be due to invalid IL or missing references) //IL_0440: Expected O, but got Unknown //IL_0445: Expected O, but got Unknown //IL_0450: Expected O, but got Unknown //IL_0493: Unknown result type (might be due to invalid IL or missing references) //IL_0498: Unknown result type (might be due to invalid IL or missing references) //IL_049f: Unknown result type (might be due to invalid IL or missing references) //IL_04a4: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04b9: Unknown result type (might be due to invalid IL or missing references) //IL_04be: Unknown result type (might be due to invalid IL or missing references) //IL_04bf: Unknown result type (might be due to invalid IL or missing references) //IL_04c9: Expected O, but got Unknown //IL_04ce: Expected O, but got Unknown //IL_04d0: Unknown result type (might be due to invalid IL or missing references) //IL_04d5: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: Unknown result type (might be due to invalid IL or missing references) //IL_04e7: Unknown result type (might be due to invalid IL or missing references) //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_04ee: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_04f9: Expected O, but got Unknown //IL_04fe: Expected O, but got Unknown //IL_0509: Expected O, but got Unknown //IL_054c: Unknown result type (might be due to invalid IL or missing references) //IL_0551: Unknown result type (might be due to invalid IL or missing references) //IL_0558: Unknown result type (might be due to invalid IL or missing references) //IL_055d: Unknown result type (might be due to invalid IL or missing references) //IL_0565: Unknown result type (might be due to invalid IL or missing references) //IL_0570: Unknown result type (might be due to invalid IL or missing references) //IL_0572: Unknown result type (might be due to invalid IL or missing references) //IL_0577: Unknown result type (might be due to invalid IL or missing references) //IL_0578: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Expected O, but got Unknown //IL_0587: Expected O, but got Unknown //IL_0589: Unknown result type (might be due to invalid IL or missing references) //IL_058e: Unknown result type (might be due to invalid IL or missing references) //IL_0595: Unknown result type (might be due to invalid IL or missing references) //IL_05a0: Unknown result type (might be due to invalid IL or missing references) //IL_05a2: Unknown result type (might be due to invalid IL or missing references) //IL_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05a8: Unknown result type (might be due to invalid IL or missing references) //IL_05b2: Expected O, but got Unknown //IL_05b7: Expected O, but got Unknown //IL_05c2: Expected O, but got Unknown orig.Invoke(self, eventSystem); if (WConfig.ResetStatsButton.Value) { Transform child = ((Component)self).transform.GetChild(0).GetChild(1).GetChild(0); Transform val = child.Find("Reset"); Transform val2 = child.Find("ResetAll"); Transform val3 = child.Find("Set50D"); Transform val4 = child.Find("Set50R"); Transform val5 = child.Find("Set50M"); if (child.childCount == 2) { GameObject gameObject = ((Component)child.GetChild(1)).gameObject; GameObject val6 = Object.Instantiate(gameObject, child); ((Object)val6).name = "ResetAll"; ((Graphic)val6.GetComponent()).color = Color.red; ((Component)val6.transform.GetChild(1)).GetComponent().token = "Reset all Survivors"; val2 = val6.transform; val6 = Object.Instantiate(gameObject, child); ((Object)val6).name = "Reset"; ((Graphic)val6.GetComponent()).color = Color.red; ((Component)val6.transform.GetChild(1)).GetComponent().token = "Reset selected Survivor"; val = val6.transform; val6 = Object.Instantiate(gameObject, child); ((Object)val6).name = "Set50D"; ((Graphic)val6.GetComponent()).color = Color.magenta; ((Component)val6.transform.GetChild(1)).GetComponent().token = "Set to 50 for selected Driz"; val3 = val6.transform; val6 = Object.Instantiate(gameObject, child); ((Object)val6).name = "Set50R"; ((Graphic)val6.GetComponent()).color = Color.magenta; ((Component)val6.transform.GetChild(1)).GetComponent().token = "Set to 50 for selected Rain"; val4 = val6.transform; val6 = Object.Instantiate(gameObject, child); ((Object)val6).name = "Set50M"; ((Graphic)val6.GetComponent()).color = Color.magenta; ((Component)val6.transform.GetChild(1)).GetComponent().token = "Set to 50 for selected Mons"; val5 = val6.transform; child.GetChild(1).SetAsLastSibling(); } if (Object.op_Implicit((Object)(object)val)) { ((Component)val.GetChild(2)).gameObject.SetActive(false); HGButton component = ((Component)val).GetComponent(); ResetWavesCounter target = ((Component)self).gameObject.AddComponent(); ((UnityEventBase)((Button)component).onClick).m_PersistentCalls = new PersistentCallGroup { m_Calls = new List { new PersistentCall { m_Target = (Object)(object)target, m_MethodName = "Reset", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }, new PersistentCall { m_Target = (Object)(object)self, m_MethodName = "UpdateDisplayedSurvivor", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() } } }; } if (Object.op_Implicit((Object)(object)val2)) { ((Component)val2.GetChild(2)).gameObject.SetActive(false); HGButton component2 = ((Component)val2).GetComponent(); ResetWavesCounter target2 = ((Component)self).gameObject.AddComponent(); ((UnityEventBase)((Button)component2).onClick).m_PersistentCalls = new PersistentCallGroup { m_Calls = new List { new PersistentCall { m_Target = (Object)(object)target2, m_MethodName = "ResetAll", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }, new PersistentCall { m_Target = (Object)(object)self, m_MethodName = "UpdateDisplayedSurvivor", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() } } }; } if (Object.op_Implicit((Object)(object)val3)) { ((Component)val3.GetChild(2)).gameObject.SetActive(false); HGButton component3 = ((Component)val3).GetComponent(); ResetWavesCounter target3 = ((Component)self).gameObject.AddComponent(); ((UnityEventBase)((Button)component3).onClick).m_PersistentCalls = new PersistentCallGroup { m_Calls = new List { new PersistentCall { m_Target = (Object)(object)target3, m_MethodName = "Set50D", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }, new PersistentCall { m_Target = (Object)(object)self, m_MethodName = "UpdateDisplayedSurvivor", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() } } }; } if (Object.op_Implicit((Object)(object)val4)) { ((Component)val4.GetChild(2)).gameObject.SetActive(false); HGButton component4 = ((Component)val4).GetComponent(); ResetWavesCounter target4 = ((Component)self).gameObject.AddComponent(); ((UnityEventBase)((Button)component4).onClick).m_PersistentCalls = new PersistentCallGroup { m_Calls = new List { new PersistentCall { m_Target = (Object)(object)target4, m_MethodName = "Set50R", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }, new PersistentCall { m_Target = (Object)(object)self, m_MethodName = "UpdateDisplayedSurvivor", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() } } }; } if (Object.op_Implicit((Object)(object)val5)) { ((Component)val5.GetChild(2)).gameObject.SetActive(false); HGButton component5 = ((Component)val5).GetComponent(); ResetWavesCounter target5 = ((Component)self).gameObject.AddComponent(); ((UnityEventBase)((Button)component5).onClick).m_PersistentCalls = new PersistentCallGroup { m_Calls = new List { new PersistentCall { m_Target = (Object)(object)target5, m_MethodName = "Set50M", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() }, new PersistentCall { m_Target = (Object)(object)self, m_MethodName = "UpdateDisplayedSurvivor", m_Mode = (PersistentListenerMode)1, m_Arguments = new ArgumentCache() } } }; } } } public static void SimulacrumEndingBeginEnding(orig_BeginEnding orig, EventFunctions self, GameEndingDef gameEndingDef) { //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown if ((Object)(object)gameEndingDef == (Object)(object)GameEndings.VoidEnding && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { orig.Invoke(self, Constant.InfiniteTowerEnding); foreach (CharacterBody readOnlyInstances in CharacterBody.readOnlyInstancesList) { if (readOnlyInstances.hasEffectiveAuthority) { } EntityStateMachine val = EntityStateMachine.FindByCustomName(((Component)readOnlyInstances).gameObject, "Body"); if (Object.op_Implicit((Object)(object)val)) { val.SetInterruptState((EntityState)new Idle(), (InterruptPriority)7); } } Chat.SendBroadcastChat((ChatMessageBase)new SimpleChatMessage { baseToken = " The Simulation has been suspended. Printing results.. " }); } else { orig.Invoke(self, gameEndingDef); } } public static void SimuGiveScavVoidItems(orig_Start orig, ScavengerItemGranter self) { //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_0046: 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_0058: Invalid comparison between Unknown and I4 //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Invalid comparison between Unknown and I4 orig.Invoke(self); if (Run.instance is InfiniteTowerRun) { Inventory component = ((Component)self).GetComponent(); UniquePickup val = ((PickupDropTable)Constant.dtAISafeRandomVoid).GeneratePickup(Run.instance.treasureRng); ItemDef itemDef = ItemCatalog.GetItemDef(((PickupIndex)(ref val.pickupIndex)).pickupDef.itemIndex); if ((int)itemDef.tier == 6) { component.GiveItemPermanent(itemDef, 3); Debug.Log((object)("Giving Simu Scav 3x " + (object)itemDef)); } else if ((int)itemDef.tier == 7) { component.GiveItemPermanent(itemDef, 2); Debug.Log((object)("Giving Simu Scav 2x " + (object)itemDef)); } else { component.GiveItemPermanent(itemDef, 1); Debug.Log((object)("Giving Simu Scav 1x " + (object)itemDef)); } } } private static PickupIndex PickupCatalog_FindPickupIndex_ItemTier(orig_FindPickupIndex_ItemTier orig, ItemTier tier) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: 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_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) if (tier == Constant.ItemOrangeTierDef.tier && Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(Artifacts.commandArtifactDef)) { return PickupCatalog.FindPickupIndex(Equipment.Fruit.equipmentIndex); } return orig.Invoke(tier); } } public class VoidSafeWard_Hooks { public class RadiusShrinker : MonoBehaviour { public float newRadius; public float currentRadius; public float originalRadius; public float remove = 0.13f; public InfiniteTowerSafeWardController crab; public void Start() { currentRadius = originalRadius; crab = ((Component)Run.instance).GetComponent().safeWardController; if (!Object.op_Implicit((Object)(object)crab)) { Debug.Log((object)"No gameobject"); Object.Destroy((Object)(object)this); } } public void FixedUpdate() { //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)crab != (Object)null) { if (currentRadius > newRadius) { currentRadius -= remove; Reflection.SetFieldValue((object)crab.wardStateMachine.state, "radius", currentRadius); crab.holdoutZoneController.baseRadius = currentRadius; ((BaseSafeWardState)crab.wardStateMachine.state).zone.Networkradius = currentRadius; } else { Reflection.SetFieldValue((object)crab.wardStateMachine.state, "radius", newRadius); crab.holdoutZoneController.baseRadius = newRadius; ((BaseSafeWardState)crab.wardStateMachine.state).zone.Networkradius = newRadius; Object.Destroy((Object)(object)this); } } } } [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_MoveSafeWard <>9__2_0; public static hook_OnTimerExpire <>9__2_1; public static hook_OnTimerExpire <>9__2_2; public static hook_OnEnter <>9__2_3; public static hook_OnEnter <>9__2_4; public static hook_OnEnter <>9__2_5; public static hook_OnEnter <>9__2_6; internal void b__2_0(orig_MoveSafeWard orig, InfiniteTowerRun self) { if (self.waveIndex % 5 != 0) { Debug.Log((object)"Preventing early moving of crab"); } else { orig.Invoke(self); } } internal void b__2_1(orig_OnTimerExpire orig, InfiniteTowerBossWaveController self) { if (((InfiniteTowerWaveController)self).waveIndex % 5 != 0) { if (!NetworkServer.active) { Debug.LogWarning((object)"[Server] function 'System.Void RoR2.InfiniteTowerWaveController::OnTimerExpire()' called on client"); return; } ((InfiniteTowerWaveController)self).MarkAsFinished(); Debug.Log((object)"Preventing early moving of crab"); } else { orig.Invoke(self); } } internal void b__2_2(orig_OnTimerExpire orig, InfiniteTowerExplicitSpawnWaveController self) { if (((InfiniteTowerWaveController)self).waveIndex % 5 != 0) { if (!NetworkServer.active) { Debug.LogWarning((object)"[Server] function 'System.Void RoR2.InfiniteTowerWaveController::OnTimerExpire()' called on client"); return; } ((InfiniteTowerWaveController)self).MarkAsFinished(); Debug.Log((object)"Preventing early moving of crab"); } else { orig.Invoke(self); } } internal void b__2_3(orig_OnEnter orig, Unburrow self) { orig.Invoke(self); if (NetworkServer.active) { GoldTitanManager.EndChannelingTitansServer((object)((EntityState)self).gameObject); } } internal void b__2_4(orig_OnEnter orig, AwaitingPortalUse self) { orig.Invoke(self); if (NetworkServer.active) { GoldTitanManager.EndChannelingTitansServer((object)((EntityState)self).gameObject); } } internal void b__2_5(orig_OnEnter orig, Burrow self) { float radius = ((EntityState)self).GetComponent().radius; self.radius = radius; orig.Invoke(self); } internal void b__2_6(orig_OnEnter orig, Unburrow self) { orig.Invoke(self); GameObject waveInstance = ((Component)Run.instance).GetComponent().waveInstance; if (self.duration > 0f && Object.op_Implicit((Object)(object)waveInstance)) { self.duration = waveInstance.GetComponent().secondsAfterWave; } } } public static float baseRadius = 65f; public static float radiusPerPlayer = 5f; internal static void AddHooks() { //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_003e: Expected O, but got Unknown //IL_0058: 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_0063: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Expected O, but got Unknown //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Expected O, but got Unknown //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Expected O, but got Unknown //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Expected O, but got Unknown //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Expected O, but got Unknown //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Expected O, but got Unknown //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Expected O, but got Unknown //IL_0134: 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_013f: Expected O, but got Unknown //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Expected O, but got Unknown baseRadius = WConfig.cfgCrabRadius.Value; radiusPerPlayer = WConfig.cfgCrabRadiusPerPlayer.Value; object obj = <>c.<>9__2_0; if (obj == null) { hook_MoveSafeWard val = delegate(orig_MoveSafeWard orig, InfiniteTowerRun self) { if (self.waveIndex % 5 != 0) { Debug.Log((object)"Preventing early moving of crab"); } else { orig.Invoke(self); } }; <>c.<>9__2_0 = val; obj = (object)val; } InfiniteTowerRun.MoveSafeWard += (hook_MoveSafeWard)obj; object obj2 = <>c.<>9__2_1; if (obj2 == null) { hook_OnTimerExpire val2 = delegate(orig_OnTimerExpire orig, InfiniteTowerBossWaveController self) { if (((InfiniteTowerWaveController)self).waveIndex % 5 != 0) { if (!NetworkServer.active) { Debug.LogWarning((object)"[Server] function 'System.Void RoR2.InfiniteTowerWaveController::OnTimerExpire()' called on client"); } else { ((InfiniteTowerWaveController)self).MarkAsFinished(); Debug.Log((object)"Preventing early moving of crab"); } } else { orig.Invoke(self); } }; <>c.<>9__2_1 = val2; obj2 = (object)val2; } InfiniteTowerBossWaveController.OnTimerExpire += (hook_OnTimerExpire)obj2; object obj3 = <>c.<>9__2_2; if (obj3 == null) { hook_OnTimerExpire val3 = delegate(orig_OnTimerExpire orig, InfiniteTowerExplicitSpawnWaveController self) { if (((InfiniteTowerWaveController)self).waveIndex % 5 != 0) { if (!NetworkServer.active) { Debug.LogWarning((object)"[Server] function 'System.Void RoR2.InfiniteTowerWaveController::OnTimerExpire()' called on client"); } else { ((InfiniteTowerWaveController)self).MarkAsFinished(); Debug.Log((object)"Preventing early moving of crab"); } } else { orig.Invoke(self); } }; <>c.<>9__2_2 = val3; obj3 = (object)val3; } InfiniteTowerExplicitSpawnWaveController.OnTimerExpire += (hook_OnTimerExpire)obj3; object obj4 = <>c.<>9__2_3; if (obj4 == null) { hook_OnEnter val4 = delegate(orig_OnEnter orig, Unburrow self) { orig.Invoke(self); if (NetworkServer.active) { GoldTitanManager.EndChannelingTitansServer((object)((EntityState)self).gameObject); } }; <>c.<>9__2_3 = val4; obj4 = (object)val4; } Unburrow.OnEnter += (hook_OnEnter)obj4; AwaitingPortalUse.OnEnter += new hook_OnEnter(Radius_AwaitingPortalUse_OnEnter); object obj5 = <>c.<>9__2_4; if (obj5 == null) { hook_OnEnter val5 = delegate(orig_OnEnter orig, AwaitingPortalUse self) { orig.Invoke(self); if (NetworkServer.active) { GoldTitanManager.EndChannelingTitansServer((object)((EntityState)self).gameObject); } }; <>c.<>9__2_4 = val5; obj5 = (object)val5; } AwaitingPortalUse.OnEnter += (hook_OnEnter)obj5; Active.OnEnter += new hook_OnEnter(Activate_SetCorrectRadius); AwaitingActivation.OnEnter += new hook_OnEnter(Waiting_SetRadius); Travelling.OnEnter += new hook_OnEnter(Travelling_RadiusAndSpeed); object obj6 = <>c.<>9__2_5; if (obj6 == null) { hook_OnEnter val6 = delegate(orig_OnEnter orig, Burrow self) { float radius = ((EntityState)self).GetComponent().radius; self.radius = radius; orig.Invoke(self); }; <>c.<>9__2_5 = val6; obj6 = (object)val6; } Burrow.OnEnter += (hook_OnEnter)obj6; object obj7 = <>c.<>9__2_6; if (obj7 == null) { hook_OnEnter val7 = delegate(orig_OnEnter orig, Unburrow self) { orig.Invoke(self); GameObject waveInstance = ((Component)Run.instance).GetComponent().waveInstance; if (self.duration > 0f && Object.op_Implicit((Object)(object)waveInstance)) { self.duration = waveInstance.GetComponent().secondsAfterWave; } }; <>c.<>9__2_6 = val7; obj7 = (object)val7; } Unburrow.OnEnter += (hook_OnEnter)obj7; } private static void Radius_AwaitingPortalUse_OnEnter(orig_OnEnter orig, AwaitingPortalUse self) { ((BaseSafeWardState)self).zone = ((EntityState)self).GetComponent(); float num = baseRadius + (float)Run.instance.participatingPlayerCount * radiusPerPlayer; if (Object.op_Implicit((Object)(object)((BaseSafeWardState)self).zone) && ((BaseSafeWardState)self).zone.radius > num) { RadiusShrinker radiusShrinker = ((EntityState)self).gameObject.AddComponent(); radiusShrinker.originalRadius = ((BaseSafeWardState)self).zone.radius; radiusShrinker.newRadius = num; self.radius = ((BaseSafeWardState)self).zone.radius; } else { self.radius = num; } orig.Invoke(self); } public static void Waiting_SetRadius(orig_OnEnter orig, AwaitingActivation self) { InfiniteTowerRun component = ((Component)Run.instance).GetComponent(); if (Object.op_Implicit((Object)(object)component.waveInstance)) { float radius = baseRadius + (float)Run.instance.participatingPlayerCount * radiusPerPlayer; self.radius = radius; } else { self.radius = baseRadius / 2f; } orig.Invoke(self); if (!Object.op_Implicit((Object)(object)component.safeWardController)) { component.safeWardController = ((EntityState)self).gameObject.GetComponent(); } } public static void Travelling_RadiusAndSpeed(orig_OnEnter orig, Travelling self) { ((BaseSafeWardState)self).zone = ((EntityState)self).GetComponent(); self.radius = ((BaseSafeWardState)self).zone.radius; orig.Invoke(self); float num = baseRadius / 2f; float num2 = 1f; float num3 = ((Component)Run.instance).GetComponent().Network_waveIndex; if (WConfig.cfgCrabSpeedOnLaterWaves.Value) { num2 = 1f + (num3 - 10f) / 50f + 0.1f; if (num3 > 30f) { num2 += (num3 - 25f) / 50f; if (num2 > 3f) { num2 = 3f; } } num = Mathf.Min(num * (0.5f + 0.5f * num2), baseRadius); self.travelSpeed *= num2; self.pathMaxSpeed *= num2; } if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(Artifact_RealStages.ArtifactUseNormalStages)) { num = baseRadius; } else if (Object.op_Implicit((Object)(object)((BaseSafeWardState)self).zone) && ((BaseSafeWardState)self).zone.radius > num) { RadiusShrinker radiusShrinker = ((EntityState)self).gameObject.AddComponent(); radiusShrinker.originalRadius = ((BaseSafeWardState)self).zone.radius; radiusShrinker.remove *= 2f; radiusShrinker.newRadius = num; } Debug.Log((object)("Wave:" + num3 + " speedMult:" + num2 + " TravellingSpeed:" + self.travelSpeed + " Radius:" + num)); } private static void Activate_SetCorrectRadius(orig_OnEnter orig, Active self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)Run.instance) && Run.instance is InfiniteTowerRun && Object.op_Implicit((Object)(object)((InfiniteTowerRun)/*isinst with value type is only supported in some contexts*/).waveInstance)) { Run instance = Run.instance; SimulacrumExtrasHelper component = ((InfiniteTowerRun)((instance is InfiniteTowerRun) ? instance : null)).waveInstance.GetComponent(); if (Object.op_Implicit((Object)(object)component) && component.newRadius > 0f) { float num = baseRadius + (component.newRadius - 60f) + (float)Run.instance.participatingPlayerCount * radiusPerPlayer; Reflection.SetFieldValue((object)((BaseSafeWardState)self).safeWardController.wardStateMachine.state, "radius", component.newRadius); ((BaseSafeWardState)self).safeWardController.holdoutZoneController.baseRadius = component.newRadius; } else { float num2 = baseRadius + (float)Run.instance.participatingPlayerCount * radiusPerPlayer; Reflection.SetFieldValue((object)((BaseSafeWardState)self).safeWardController.wardStateMachine.state, "radius", num2); ((BaseSafeWardState)self).safeWardController.holdoutZoneController.baseRadius = num2; } } } } public class Wave_Hooks { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_DropRewards <>9__0_0; internal void b__0_0(orig_DropRewards orig, InfiniteTowerWaveController self) { orig.Invoke(self); SimulacrumExtrasHelper component = ((Component)self).GetComponent(); if (Object.op_Implicit((Object)(object)component) && (Object)(object)component.rewardDropTable != (Object)null) { component.DropRewards(); } } } internal static void AddHooks() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: 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_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Expected O, but got Unknown InfiniteTowerRun.InitializeWaveController += new hook_InitializeWaveController(InfiniteTowerRun_BeginNextWave); InfiniteTowerExplicitSpawnWaveController.Initialize += new hook_Initialize(GiveStatBoosts_ExplicitSpawnWaveController_Initialize); InfiniteTowerWaveController.OnCombatSquadMemberDiscovered += new hook_OnCombatSquadMemberDiscovered(InfiniteTowerWaveController_OnCombatSquadMemberDiscovered); InfiniteTowerWaveController.StartTimer += new hook_StartTimer(KillAllGhosts_StartTimer); InfiniteTowerWaveController.OnAllEnemiesDefeatedServer += new hook_OnAllEnemiesDefeatedServer(InfiniteTowerWaveController_OnAllEnemiesDefeatedServer); InfiniteTowerRun.CleanUpCurrentWave += new hook_CleanUpCurrentWave(InfiniteTowerRun_CleanUpCurrentWave); SimulacrumExtrasHelper.shareSuitInstalled = Chainloader.PluginInfos.ContainsKey("com.funkfrog_sipondo.sharesuite"); object obj = <>c.<>9__0_0; if (obj == null) { hook_DropRewards val = delegate(orig_DropRewards orig, InfiniteTowerWaveController self) { orig.Invoke(self); SimulacrumExtrasHelper component = ((Component)self).GetComponent(); if (Object.op_Implicit((Object)(object)component) && (Object)(object)component.rewardDropTable != (Object)null) { component.DropRewards(); } }; <>c.<>9__0_0 = val; obj = (object)val; } InfiniteTowerWaveController.DropRewards += (hook_DropRewards)obj; } private static void KillAllGhosts_StartTimer(orig_StartTimer orig, InfiniteTowerWaveController self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)Run.instance)) { ((Component)Run.instance).GetComponent().MarkAsDirty(); } PillarSpawner pillarSpawner = default(PillarSpawner); if (((Component)self).TryGetComponent(ref pillarSpawner)) { pillarSpawner.RemovePillars(); } SimulacrumPulseWave simulacrumPulseWave = default(SimulacrumPulseWave); if (((Component)self).TryGetComponent(ref simulacrumPulseWave)) { simulacrumPulseWave.RemovePulse(); } if (WConfig.cfgFasterWavesLater.Value && self.waveIndex % 5 != 0) { int num = Mathf.Min(5, Run.instance.participatingPlayerCount); self.Network_timerStart += (float)(self.waveIndex / 10 * num) * 0.2f; } MusicTrackOverride component = ((Component)self).gameObject.GetComponent(); if (Object.op_Implicit((Object)(object)component)) { ((Behaviour)component).enabled = false; } if (!NetworkServer.active) { return; } for (int i = 0; i < CharacterMaster.instancesList.Count; i++) { CharacterMaster val = CharacterMaster.instancesList[i]; if (Object.op_Implicit((Object)(object)val) && Object.op_Implicit((Object)(object)val.inventory)) { int itemCountPermanent = val.inventory.GetItemCountPermanent(ItemHelpers.ITKillOnCompletion); if (itemCountPermanent > 0) { val.inventory.GiveItemPermanent(Items.HealthDecay, 1); } if (itemCountPermanent > 6) { val.TrueKill(); Object.Destroy((Object)(object)((Component)val).gameObject, 2f); } } } } public static void InfiniteTowerWaveController_OnAllEnemiesDefeatedServer(orig_OnAllEnemiesDefeatedServer orig, InfiniteTowerWaveController self) { //IL_00ac: 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_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: 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_00ce: 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_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Expected O, but got Unknown //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Expected O, but got Unknown orig.Invoke(self); CombatDirector[] components = ((Component)self).gameObject.GetComponents(); if (components.Length > 1) { ((Behaviour)((Component)self).gameObject.GetComponents()[0]).enabled = false; ((Behaviour)((Component)self).gameObject.GetComponents()[1]).enabled = false; } SimulacrumInteractablesWaveHelper component = ((Component)self).gameObject.GetComponent(); if (Object.op_Implicit((Object)(object)component)) { ((Behaviour)component).enabled = false; } InfiniteTowerRun component2 = ((Component)Run.instance).GetComponent(); if (component2.waveIndex >= Constant.SimuEndingStartAtXWaves && component2.waveIndex % Constant.SimuEndingEveryXWaves == Constant.SimuEndingWaveRest) { GameObject val = DirectorCore.instance.TrySpawnObject(new DirectorSpawnRequest((SpawnCard)(object)Constant.iscSimuExitPortal, new DirectorPlacementRule { minDistance = 30f, maxDistance = 35f, placementMode = (PlacementMode)1, position = ((Component)component2.safeWardController).transform.position, spawnOnTarget = ((Component)component2.safeWardController).transform }, component2.safeWardRng)); } SimuWaveUnsortedExtras simuWaveUnsortedExtras = default(SimuWaveUnsortedExtras); if (((Component)self).TryGetComponent(ref simuWaveUnsortedExtras)) { simuWaveUnsortedExtras.OnAllEnemiesDefeatedServer(); } if (Object.op_Implicit((Object)(object)((Component)self).GetComponent())) { ((Component)self).GetComponent().DisableStorm(); } EnemyInfoPanel.MarkDirty(); Debug.Log((object)("OnAllEnemiesDefeatedServer " + (object)self)); } private static void GiveStatBoosts_ExplicitSpawnWaveController_Initialize(orig_Initialize orig, InfiniteTowerExplicitSpawnWaveController self, int waveIndex, Inventory enemyInventory, GameObject spawnTargetObject) { //IL_05fa: 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_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05c2: 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_044d: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: Unknown result type (might be due to invalid IL or missing references) //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04cb: 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_04e7: Unknown result type (might be due to invalid IL or missing references) try { if (NetworkServer.active) { if (((InfiniteTowerWaveController)self).combatDirector.currentActiveEliteTier == null) { ((InfiniteTowerWaveController)self).combatDirector.currentActiveEliteTier = CombatDirector.eliteTiers[0]; } if (((InfiniteTowerWaveController)self).linearCreditsPerWave * (float)waveIndex > 400f) { ((InfiniteTowerWaveController)self).linearCreditsPerWave = ((InfiniteTowerWaveController)self).linearCreditsPerWave * (float)waveIndex / 400f; } float num = 0.5f; float num2 = 0.5f; bool flag = false; if (waveIndex >= Constant.SimuForcedBossStartAtXWaves && waveIndex % Constant.SimuForcedBossEveryXWaves == Constant.SimuForcedBossWaveRest) { flag = true; num = 1f; } CardRandomizer cardRandomizer = default(CardRandomizer); if (((Component)self).TryGetComponent(ref cardRandomizer)) { cardRandomizer.DoTheThing(self); } bool flag2 = false; SimuWaveUnsortedExtras simuWaveUnsortedExtras = default(SimuWaveUnsortedExtras); if (((Component)self).TryGetComponent(ref simuWaveUnsortedExtras)) { num = simuWaveUnsortedExtras.ExplicitInitialize(self, waveIndex); flag2 = simuWaveUnsortedExtras.code == SimuWaveUnsortedExtras.Case.AcridWave; } SimuExplicitStats component = ((Component)self).GetComponent(); if (Object.op_Implicit((Object)(object)component)) { if (component.halfOnNonFinal && !flag) { num = component.hpBonusMulti / 2f; num2 = component.damageBonusMulti / 2f; } else { num = component.hpBonusMulti; num2 = component.damageBonusMulti; } if (component.spawnAsVoidTeam) { ((InfiniteTowerWaveController)self).combatDirector.teamIndex = (TeamIndex)4; } if (component.OneExtraSpawnStartingWave > 0 && waveIndex >= component.OneExtraSpawnStartingWave) { self.spawnList[0].count++; if (component.ExtraSpawnPerWaves > 0) { int num3 = (waveIndex - component.OneExtraSpawnStartingWave) / component.ExtraSpawnPerWaves; if (num3 > 0) { self.spawnList[0].count += num3; } } } if (component.spawnsPerExtraPlayer > 0f) { self.spawnList[0].count += (int)(((float)PlayerCharacterMasterController.instances.Count - 1f) * component.spawnsPerExtraPlayer); } } if (num > 0f) { float num4 = 1f; float num5 = 1f; num4 += Run.instance.difficultyCoefficient / 2.5f * Math.Max(1f, (float)(waveIndex / 10) * 0.225f + 0.225f); num5 += Run.instance.difficultyCoefficient / 30f * Math.Max(1f, (float)(waveIndex / 10) * 0.04f); num4 *= num; num5 *= num2; if (flag) { num4 /= 1f + (float)(Run.instance.participatingPlayerCount - 1) * 0.2f; int participatingPlayerCount = Run.instance.participatingPlayerCount; num4 *= Mathf.Pow((float)participatingPlayerCount, 0.4f); } int num6 = Mathf.RoundToInt((num4 - 1f) * 10f); int num7 = Mathf.RoundToInt((num5 - 1f) * 10f); if (num6 > 100000) { num6 = 100000; } Debug.LogFormat(((Object)self).name + " Special Scaling: currentBoostHpCoefficient={0}, currentBoostDamageCoefficient={1}", new object[2] { num6, num7 }); for (int i = 0; i < self.spawnList.Length; i++) { bool flag3 = true; bool flag4 = true; bool flag5 = true; ItemCountPair[] array = self.spawnList[i].spawnCard.itemsToGrant; for (int j = 0; j < array.Length; j++) { if ((Object)(object)array[j].itemDef == (Object)(object)Items.BoostHp) { flag3 = false; array[j].count = num6; } else if ((Object)(object)array[j].itemDef == (Object)(object)Items.BoostDamage) { flag4 = false; array[j].count = num7; } else if ((Object)(object)array[j].itemDef == (Object)(object)Items.TeleportWhenOob) { flag5 = false; } } if (flag3) { array = array.Add(new ItemCountPair { itemDef = Items.BoostHp, count = num6 }); } if (flag4) { array = array.Add(new ItemCountPair { itemDef = Items.BoostDamage, count = num7 }); } if (flag5) { array = array.Add(new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }); } self.spawnList[i].spawnCard.itemsToGrant = array; } } if (flag2) { ((InfiniteTowerWaveController)self).combatDirector.teamIndex = (TeamIndex)4; ((InfiniteTowerWaveController)self).enemyInventory = enemyInventory; CombatDirector combatDirector = ((InfiniteTowerWaveController)self).combatDirector; SpawnCard spawnCard = (SpawnCard)(object)self.spawnList[0].spawnCard; EliteDef eliteDef = self.spawnList[0].eliteDef; Transform transform = spawnTargetObject.transform; bool preventOverhead = self.spawnList[0].preventOverhead; combatDirector.Spawn(spawnCard, eliteDef, transform, self.spawnList[0].spawnDistance, preventOverhead, 1f, (PlacementMode)1, false); ((InfiniteTowerWaveController)self).combatDirector.teamIndex = (TeamIndex)2; } } } catch { Debug.LogWarning((object)"ERROR IN GiveStatBoosts_ExplicitSpawnWaveController_Initialize"); orig.Invoke(self, waveIndex, enemyInventory, spawnTargetObject); return; } orig.Invoke(self, waveIndex, enemyInventory, spawnTargetObject); ((InfiniteTowerWaveController)self).combatDirector.teamIndex = (TeamIndex)2; } public static void InfiniteTowerRun_BeginNextWave(orig_InitializeWaveController orig, InfiniteTowerRun self) { //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); EnemyInfoPanel.MarkDirty(); CombatDirector component = self.waveInstance.GetComponent(); InfiniteTowerWaveController component2 = self.waveInstance.GetComponent(); SimulacrumExtrasHelper component3 = self.waveInstance.GetComponent(); float baseRadius = VoidSafeWard_Hooks.baseRadius; float radius = ((Component)self.safeWardController.wardStateMachine).GetComponent().radius; if (Object.op_Implicit((Object)(object)component3) && component3.newRadius > 0f) { baseRadius = VoidSafeWard_Hooks.baseRadius + (component3.newRadius - 60f) + (float)Run.instance.participatingPlayerCount * VoidSafeWard_Hooks.radiusPerPlayer; } else { baseRadius += (float)Run.instance.participatingPlayerCount * VoidSafeWard_Hooks.radiusPerPlayer; if (component2.isBossWave) { baseRadius += 5f; } } if (radius > baseRadius) { VoidSafeWard_Hooks.RadiusShrinker radiusShrinker = ((Component)self).gameObject.AddComponent(); radiusShrinker.originalRadius = radius; radiusShrinker.newRadius = baseRadius; } else { Reflection.SetFieldValue((object)self.safeWardController.wardStateMachine.state, "radius", baseRadius); self.safeWardController.holdoutZoneController.baseRadius = baseRadius; } component.minSpawnRange = 15f; component.maxSpawnDistance = baseRadius - 5f; if (Object.op_Implicit((Object)(object)self._waveController)) { PillarSpawner pillarSpawner = default(PillarSpawner); if (self.waveInstance.TryGetComponent(ref pillarSpawner)) { pillarSpawner.MakePillar(); } SimuWaveUnsortedExtras simuWaveUnsortedExtras = default(SimuWaveUnsortedExtras); if (self.waveInstance.TryGetComponent(ref simuWaveUnsortedExtras)) { simuWaveUnsortedExtras.InitializeWaveController(self, self.waveInstance); } if (NetworkServer.active) { if (WConfig.cfgSimuMoreGold.Value) { CombatDirector component4 = self.waveInstance.GetComponent(); component4.goldRewardCoefficient *= (float)((Run)self).participatingPlayerCount; CombatDirector component5 = self.waveInstance.GetComponent(); component5.goldRewardCoefficient *= Mathf.Max(0.75f, 1.5f - 0.5f * (float)(self.waveIndex / 20)); } if (self.waveIndex % 5 == 0) { for (int i = 0; i < PlayerCharacterMasterController.instances.Count; i++) { CharacterBody body = PlayerCharacterMasterController.instances[i].body; if (!Object.op_Implicit((Object)(object)body)) { continue; } CharacterMaster master = PlayerCharacterMasterController.instances[i].master; if (Object.op_Implicit((Object)(object)master)) { int itemCountPermanent = master.inventory.GetItemCountPermanent(Items.WardOnLevel); if (itemCountPermanent > 0) { GameObject val = Object.Instantiate(LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/WarbannerWard"), body.transform.position, Quaternion.identity); val.GetComponent().teamIndex = (TeamIndex)1; val.GetComponent().Networkradius = 8f + 8f * (float)itemCountPermanent; NetworkServer.Spawn(val); } } } } } } ((Component)self).GetComponent().MarkAsDirty(); if (self.waveIndex < 11) { if (self.waveIndex == 5) { component2.baseCredits -= 100f; component2.immediateCreditsFraction -= 0.1f; component2.wavePeriodSeconds += 5f; } if (self.waveIndex == 10) { component2.baseCredits -= 50f; } } if (WConfig.cfgExtraDifficuly.Value) { component.eliteBias = Mathf.Min(component.eliteBias - (float)self.waveIndex / 100f, component.eliteBias); component.eliteBias = Mathf.Max(component.eliteBias, 0.5f); float num = 1f + (float)(self.waveIndex - 1) * 2f / 100f; if (num > 3f) { num = 3f; } component2.immediateCreditsFraction *= num; } if (WConfig.cfgFasterWavesLater.Value) { if (self.waveIndex % 5 == 0) { if (WConfig.cfgAwaitTravel.Value) { component2.secondsAfterWave = 0; } else { int participatingPlayerCount = Run.instance.participatingPlayerCount; if (participatingPlayerCount > 1) { component2.secondsAfterWave += 1 + participatingPlayerCount; } else { component2.secondsAfterWave++; } } } else { component2.secondsAfterWave = Mathf.Max(component2.secondsAfterWave - self.waveIndex / 10, 5); } if (self.waveIndex < 11) { component2.maxSquadSize = 15; } else if (self.waveIndex > 20) { component2.wavePeriodSeconds *= 0.9f; } else if (self.waveIndex > 40) { component2.wavePeriodSeconds *= 0.8f; } else if (self.waveIndex > 60) { component2.wavePeriodSeconds *= 0.6f; } } if (RunArtifactManager.instance.IsArtifactEnabled(Artifacts.swarmsArtifactDef)) { component2.maxSquadSize += 10; } if (component2.immediateCreditsFraction < 0f) { component2.immediateCreditsFraction = 0f; } Debug.Log((object)(self.waveIndex + " immediateCreditsFraction: " + component2.immediateCreditsFraction + " eliteBias: " + component.eliteBias + " wavePeriodSeconds: " + component2.wavePeriodSeconds)); } public static void InfiniteTowerRun_CleanUpCurrentWave(orig_CleanUpCurrentWave orig, InfiniteTowerRun self) { try { SimuWaveUnsortedExtras simuWaveUnsortedExtras = default(SimuWaveUnsortedExtras); if (NetworkServer.active && Object.op_Implicit((Object)(object)self.waveInstance) && self.waveInstance.TryGetComponent(ref simuWaveUnsortedExtras)) { simuWaveUnsortedExtras.CleanUpCurrentWave(self, self.waveInstance); } } catch { Debug.LogWarning((object)"ERROR IN InfiniteTowerRun_CleanUpCurrentWave"); orig.Invoke(self); return; } orig.Invoke(self); Debug.Log((object)("WaveCleanUp " + (object)self.waveInstance)); } private static void InfiniteTowerWaveController_OnCombatSquadMemberDiscovered(orig_OnCombatSquadMemberDiscovered orig, InfiniteTowerWaveController self, CharacterMaster master) { //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Invalid comparison between Unknown and I4 //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Invalid comparison between Unknown and I4 //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Invalid comparison between Unknown and I4 orig.Invoke(self, master); if (!Object.op_Implicit((Object)(object)master.inventory)) { return; } int itemCountPermanent = master.inventory.GetItemCountPermanent(ItemHelpers.ITKillOnCompletion); if (itemCountPermanent > 0) { self.combatSquad.RemoveMember(master); CharacterBody body = master.GetBody(); int itemCountPermanent2 = master.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName); if (itemCountPermanent2 > 0) { } if (!NetworkServer.active) { return; } BaseAI component = ((Component)master).GetComponent(); if (Object.op_Implicit((Object)(object)component)) { component.fullVision = true; } for (int i = 0; i < component.skillDrivers.Length; i++) { component.skillDrivers[i].maxUserHealthFraction = 1f; switch (itemCountPermanent) { case 4: if ((int)component.skillDrivers[i].skillSlot == 3) { component.skillDrivers[i].maxTimesSelected = 1; } break; case 5: if ((int)component.skillDrivers[i].skillSlot == 2) { component.skillDrivers[i].maxTimesSelected = 0; } break; case 6: if ((int)component.skillDrivers[i].skillSlot == 2) { component.skillDrivers[i].maxTimesSelected = 2; } break; } } if (itemCountPermanent == 10) { body.AddBuff(Buffs.DisableAllSkills); } if (itemCountPermanent != 15) { body.AddBuff(Buffs.Immune); } } else if (self.hasEnabledEnemyIndicators && master.masterIndex == Constant.IndexAffixHealingCore) { self.combatSquad.RemoveMember(master); } } } public class Artifact_SimuDrones { public static ArtifactDef ArtifactDef = ScriptableObject.CreateInstance(); public static void MakeArtifact() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown ArtifactDef.cachedName = "AAADronesSimu"; ArtifactDef.nameToken = "ARTIFACT_SIMUDRONES_NAME"; ArtifactDef.descriptionToken = "ARTIFACT_SIMUDRONES_DESCRIPTION"; ArtifactDef.smallIconSelectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/Artifact_Drones_On.png"); ArtifactDef.smallIconDeselectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/Artifact_Drones_Off.png"); ContentAddition.AddArtifactDef(ArtifactDef); RunArtifactManager.onArtifactEnabledGlobal += new ArtifactStateChangeDelegate(OnArtifactEnabled); RunArtifactManager.onArtifactDisabledGlobal += new ArtifactStateChangeDelegate(OnArtifactDisabled); } private static void ArenaMissionController_OnStartServer(orig_OnStartServer orig, ArenaMissionController self) { if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactDef)) { ((Component)self).gameObject.SetActive(false); GameObject val = GameObject.Find("/PortalArena"); if (Object.op_Implicit((Object)(object)val)) { val.gameObject.SetActive(false); } } else { orig.Invoke(self); } } private static void OnArtifactDisabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown if (!((Object)(object)artifactDef != (Object)(object)ArtifactDef)) { SceneDirector.onGenerateInteractableCardSelection -= AllowDroneCategory; FogDamageController.MyFixedUpdate -= new Manipulator(NoFogDamage); } } private static void OnArtifactEnabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown if (!((Object)(object)artifactDef != (Object)(object)ArtifactDef)) { SceneDirector.onGenerateInteractableCardSelection += AllowDroneCategory; FogDamageController.MyFixedUpdate += new Manipulator(NoFogDamage); Run.instance.ruleBook.ApplyChoice(RuleCatalog.FindChoiceDef("Items.DronesDropDynamite.On")); Run.instance.ruleBook.ApplyChoice(RuleCatalog.FindChoiceDef("Items.DroneWeapons.On")); } } private static Option[] PickupPickerController_GenerateOptionsFromDropTable(orig_GenerateOptionsFromDropTable orig, int numOptions, PickupDropTable dropTable, Xoroshiro128Plus rng) { return orig.Invoke(numOptions, dropTable, rng); } private static void NoFogDamage(ILContext il) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown ILCursor val = new ILCursor(il); if (val.TryGotoNext((MoveType)0, new Func[2] { (Instruction x) => ILPatternMatchingExt.MatchLdcR4(x, 0.5f), (Instruction x) => ILPatternMatchingExt.MatchMul(x) })) { val.Next.Operand = 0f; } else { Debug.LogWarning((object)"IL Failed : IL.RoR2.FogDamageController.FixedUpdate"); } } private static void AllowDroneCategory(SceneDirector arg1, DirectorCardCategorySelection dccs) { SimulacrumDCCS_Drones.AddDroneRelatedToPrinter(dccs); int num = dccs.FindCategoryIndexByName("Duplicators"); int num2 = dccs.FindCategoryIndexByName("SimuDroneRelated"); int num3 = dccs.FindCategoryIndexByName("SimuDrones"); int num4 = dccs.FindCategoryIndexByName("SimuDrones"); if (num != -1 && num2 != -1) { dccs.categories[num2].selectionWeight = dccs.categories[num].selectionWeight; } if (num4 != -1) { dccs.categories[num4].selectionWeight *= 1.6f; } if (num3 != -1) { if ((Object)(object)SceneInfo.instance.sceneDef == (Object)(object)SceneList.itMoon) { dccs.categories[num3].selectionWeight = 15f; } else { dccs.categories[num3].selectionWeight = 30f; } } } } public class Artifact_OnlyAugments { public static ArtifactDef ArtifactSimulacrum = ScriptableObject.CreateInstance(); public static void MakeArtifact() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Expected O, but got Unknown ArtifactSimulacrum.cachedName = "AAAAugmentsOnly"; ArtifactSimulacrum.nameToken = "ARTIFACT_AUGMENTS_NAME"; ArtifactSimulacrum.descriptionToken = "ARTIFACT_AUGMENTS_DESCRIPTION"; ArtifactSimulacrum.smallIconSelectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/ArtifactOn.png"); ArtifactSimulacrum.smallIconDeselectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/ArtifactOff.png"); ContentAddition.AddArtifactDef(ArtifactSimulacrum); Run.OverrideRuleChoices += new hook_OverrideRuleChoices(ArtifactInITOnly); WeeklyRun.OverrideRuleChoices += new hook_OverrideRuleChoices(WeeklyArtifactInITOnly); RunArtifactManager.onArtifactEnabledGlobal += new ArtifactStateChangeDelegate(OnArtifactEnabled); RunArtifactManager.onArtifactDisabledGlobal += new ArtifactStateChangeDelegate(OnArtifactDisabled); } private static void WeeklyArtifactInITOnly(orig_OverrideRuleChoices orig, WeeklyRun self, RuleChoiceMask mustInclude, RuleChoiceMask mustExclude, ulong runSeed) { orig.Invoke(self, mustInclude, mustExclude, runSeed); ((Run)self).ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAAAugmentsOnly").FindChoice("Off")); ((Run)self).ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAAUseNormalStages").FindChoice("Off")); ((Run)self).ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAADronesSimu").FindChoice("Off")); } private static void OnArtifactEnabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown if (!((Object)(object)artifactDef != (Object)(object)ArtifactSimulacrum)) { InfiniteTowerWaveCategory.GenerateWeightedSelection += new hook_GenerateWeightedSelection(OnlySpecialWaves); Constant.ITBasicWaves.GenerateWeightedSelection(); Constant.ITBossWaves.GenerateWeightedSelection(); } } private static void OnArtifactDisabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown if (!((Object)(object)artifactDef != (Object)(object)ArtifactSimulacrum)) { InfiniteTowerWaveCategory.GenerateWeightedSelection -= new hook_GenerateWeightedSelection(OnlySpecialWaves); Constant.ITBasicWaves.GenerateWeightedSelection(); Constant.ITBossWaves.GenerateWeightedSelection(); } } public static void OnlySpecialWaves(orig_GenerateWeightedSelection orig, InfiniteTowerWaveCategory self) { self.weightedSelection.Clear(); self.weightedSelection.AddChoice(self.wavePrefabs[0].wavePrefab, 0f); for (int i = 1; i < self.wavePrefabs.Length; i++) { self.weightedSelection.AddChoice(self.wavePrefabs[i].wavePrefab, self.wavePrefabs[i].weight); } } private static void ArtifactInITOnly(orig_OverrideRuleChoices orig, Run self, RuleChoiceMask mustInclude, RuleChoiceMask mustExclude, ulong runSeed) { orig.Invoke(self, mustInclude, mustExclude, runSeed); if (Object.op_Implicit((Object)(object)self) && !(self is InfiniteTowerRun)) { self.ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAAAugmentsOnly").FindChoice("Off")); self.ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAAUseNormalStages").FindChoice("Off")); self.ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAADronesSimu").FindChoice("Off")); } } } public class Artifact_RealStages { public static ArtifactDef ArtifactUseNormalStages = ScriptableObject.CreateInstance(); public static SceneCollection realityDestinations = ScriptableObject.CreateInstance(); public static List visitedScenes; public static Predicate trimmer = SimulacrumTrimmer; public static void MakeArtifact() { //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Expected O, but got Unknown //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Expected O, but got Unknown //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_011b: Expected O, but got Unknown //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Expected O, but got Unknown //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Expected O, but got Unknown ((Object)realityDestinations).name = "sgITArtifactReal"; ArtifactUseNormalStages.cachedName = "AAAUseNormalStages"; ArtifactUseNormalStages.nameToken = "ARTIFACT_NORMALSTAGES_NAME"; ArtifactUseNormalStages.descriptionToken = "ARTIFACT_NORMALSTAGES_DESCRIPTION"; ArtifactUseNormalStages.smallIconSelectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/Artifact2_On.png"); ArtifactUseNormalStages.smallIconDeselectedSprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Artifacts/Artifact2_Off.png"); ContentAddition.AddArtifactDef(ArtifactUseNormalStages); Run.OverrideRuleChoices += new hook_OverrideRuleChoices(ArtifactInITOnly); RunArtifactManager.onArtifactEnabledGlobal += new ArtifactStateChangeDelegate(OnArtifactEnabled); RunArtifactManager.onArtifactDisabledGlobal += new ArtifactStateChangeDelegate(OnArtifactDisabled); Run.OnDisable += new hook_OnDisable(Run_OnDisable); SceneDef val = Addressables.LoadAssetAsync((object)"RoR2/DLC2/habitat/habitat.asset").WaitForCompletion(); val.validForRandomSelection = true; val = Addressables.LoadAssetAsync((object)"RoR2/DLC2/helminthroost/helminthroost.asset").WaitForCompletion(); val.validForRandomSelection = true; ArenaMissionController.OnStartServer += new hook_OnStartServer(ArenaMissionController_OnStartServer); VoidStageMissionController.Start += new hook_Start(VoidStageMissionController_Start); AccessCodesMissionController.OnStartServer += new hook_OnStartServer(AccessCodesMissionController_OnStartServer); TrialGongInteraction.OnEnable += new hook_OnEnable(No_TrialGong); } private static void No_TrialGong(orig_OnEnable orig, TrialGongInteraction self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactUseNormalStages)) { Object.Destroy((Object)(object)((Component)self).gameObject); } } private static void AccessCodesMissionController_OnStartServer(orig_OnStartServer orig, AccessCodesMissionController self) { //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: 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) if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactUseNormalStages)) { AccessCodesNodeData[] nodes = self.nodes; foreach (AccessCodesNodeData val in nodes) { val.node.gameObject.SetActive(false); } } else { orig.Invoke(self); } } private static void ArenaMissionController_OnStartServer(orig_OnStartServer orig, ArenaMissionController self) { if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactUseNormalStages)) { ((Component)self).gameObject.SetActive(false); GameObject val = GameObject.Find("/PortalArena"); if (Object.op_Implicit((Object)(object)val)) { ((Component)val.transform.GetChild(0)).gameObject.SetActive(false); } } else { orig.Invoke(self); } } public unsafe static void DoDestinations() { //IL_00eb: 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_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0137: 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_00be: 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_00d9: 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) Debug.LogWarning((object)"Artifact of Reality : Destination List Reset"); List list = new List(); SceneEntry val2; for (int i = 0; i < SceneCatalog.allStageSceneDefs.Length; i++) { SceneDef val = (SceneDef)Unsafe.Read((void*)SceneCatalog.allStageSceneDefs[i]); if (val.validForRandomSelection && val.hasAnyDestinations) { float weight = 1f; switch (val.cachedName) { case "golemplains": case "goolake": case "ancientloft": case "frozenwall": case "skymeadow": case "dampcavesimple": weight = 0.6f; break; } val2 = new SceneEntry { sceneDef = val }; ((SceneEntry)(ref val2)).weight = weight; SceneEntry item = val2; list.Add(item); } } SceneDef sceneDef = Addressables.LoadAssetAsync((object)"RoR2/Base/arena/arena.asset").WaitForCompletion(); val2 = new SceneEntry { sceneDef = sceneDef }; ((SceneEntry)(ref val2)).weight = 2f; SceneEntry item2 = val2; list.Add(item2); realityDestinations._sceneEntries = list.ToArray(); } private static void OnArtifactEnabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0083: 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 if (!((Object)(object)artifactDef != (Object)(object)ArtifactUseNormalStages)) { RuleDef val = RuleCatalog.FindRuleDef("Misc.StageOrder"); Run.instance.ruleBook.GetRuleChoice(val).extraData = (object)(StageOrder)1; InfiniteTowerRun.OnPrePopulateSceneServer += new hook_OnPrePopulateSceneServer(RemoveSpawnPointsAndMonsters); SceneDirector.onGenerateInteractableCardSelection += AddAndRemoveInteractables; DirectorCard.IsAvailable += new hook_IsAvailable(Allow_Earlier_Spawns); SceneDirector.Start += new hook_Start(DoReality); Run.PickNextStageScene += new hook_PickNextStageScene(ChooseRealityStages); VoidSafeWard_Hooks.baseRadius += WConfig.ArtifactOfRealityBonusRadius.Value; visitedScenes = new List(); DoDestinations(); } } private static void OnArtifactDisabled(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown if (!((Object)(object)artifactDef != (Object)(object)ArtifactUseNormalStages)) { if (Object.op_Implicit((Object)(object)Run.instance)) { RuleDef val = RuleCatalog.FindRuleDef("Misc.StageOrder"); Run.instance.ruleBook.GetRuleChoice(val).extraData = (object)(StageOrder)0; } InfiniteTowerRun.OnPrePopulateSceneServer -= new hook_OnPrePopulateSceneServer(RemoveSpawnPointsAndMonsters); SceneDirector.onGenerateInteractableCardSelection -= AddAndRemoveInteractables; DirectorCard.IsAvailable -= new hook_IsAvailable(Allow_Earlier_Spawns); SceneDirector.Start -= new hook_Start(DoReality); Run.PickNextStageScene -= new hook_PickNextStageScene(ChooseRealityStages); VoidSafeWard_Hooks.baseRadius -= WConfig.ArtifactOfRealityBonusRadius.Value; } } private static void DoReality(orig_Start orig, SceneDirector self) { orig.Invoke(self); DoREALITY(self); } private static void DoREALITY(SceneDirector obj) { //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_023c: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Unknown result type (might be due to invalid IL or missing references) CombatDirector[] components = ((Component)obj).gameObject.GetComponents(); for (int i = 0; i < components.Length; i++) { Debug.Log((object)components[i]); ((Behaviour)components[i]).enabled = false; } Object obj2 = Object.FindObjectOfType(typeof(PortalStatueBehavior)); PortalStatueBehavior val = (PortalStatueBehavior)(object)((obj2 is PortalStatueBehavior) ? obj2 : null); if (Object.op_Implicit((Object)(object)val)) { Material material = Addressables.LoadAssetAsync((object)"RoR2/DLC1/voidstage/matVoidCrystal.mat").WaitForCompletion(); GameObject val2 = LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/VoidSuppressor"); Transform parent = ((Component)val).transform.parent; for (int j = 0; j < parent.childCount; j++) { Transform child = parent.GetChild(j); if (Object.op_Implicit((Object)(object)((Component)child).GetComponent())) { Debug.Log((object)child); ((Component)child).gameObject.SetActive(true); if (NetworkServer.active) { GameObject val3 = Object.Instantiate(val2, child); val3.transform.localPosition = new Vector3(0f, -1.38f, 0f); PurchaseInteraction component = val3.GetComponent(); component.costType = (CostTypeIndex)0; component.cost = 0; NetworkServer.Spawn(val3); } ((Component)child.GetChild(0)).gameObject.SetActive(false); ((Renderer)((Component)child.GetChild(1)).GetComponent()).material = material; ((Renderer)((Component)child.GetChild(2)).GetComponent()).material = material; ((Renderer)((Component)child.GetChild(3)).GetComponent()).material = material; ((Renderer)((Component)child.GetChild(4)).GetComponent()).material = material; Object.Destroy((Object)(object)((Component)child).GetComponent()); Object.Destroy((Object)(object)((Component)child).GetComponent()); Object.Destroy((Object)(object)((Component)child).GetComponent()); } } } if (NetworkServer.active) { Run.instance.PickNextStageScene((WeightedSelection)null); } GameObject val4 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/Weather, InfiniteTower.prefab").WaitForCompletion()); Light component2 = ((Component)val4.transform.GetChild(2)).GetComponent(); SetAmbientLight component3 = ((Component)val4.transform.GetChild(0)).GetComponent(); component3.ambientIntensity = 1.2f; component3.ambientEquatorColor = component3.ambientSkyColor; component3.ambientGroundColor = new Color(0.6321f, 0.4323f, 0.6321f, 1f); component3.ambientMode = (AmbientMode)1; switch (SceneInfo.instance.sceneDef.baseSceneName) { case "blackbeach": case "rootjungle": component3.ambientIntensity = 1.5f; break; case "snowyforest": case "lakesnight": component2.intensity = 1f; break; case "helminthroost": { val4.transform.localPosition = new Vector3(-600f, 0f, 250f); GameObject val7 = GameObject.Find("/HOLDER: Lighting/Weather, Helminthroost/"); if (Object.op_Implicit((Object)(object)val7)) { ((Component)val7.transform.GetChild(0)).gameObject.SetActive(false); } component2.intensity = 2f; break; } case "frozenwall": component3.ambientIntensity = 0.6f; component2.intensity = 1f; break; case "wispgraveyard": { GameObject val9 = GameObject.Find("/Weather, Wispgraveyard"); if (Object.op_Implicit((Object)(object)val9)) { val9.SetActive(false); } break; } case "nest": { GameObject val11 = GameObject.Find("/HOLDER: Weather/Weather, Nest/Directional Light (SUN)"); if (Object.op_Implicit((Object)(object)val11)) { val11.SetActive(false); } ((Component)val4.transform.GetChild(2)).gameObject.SetActive(false); break; } case "ironalluvium": { GameObject val10 = GameObject.Find("/HOLDER: Weather/IronAlluvium_Weather/Directional Light (SUN)"); if (Object.op_Implicit((Object)(object)val10)) { val10.SetActive(false); } ((Component)val4.transform.GetChild(2)).gameObject.SetActive(false); break; } case "sulfurpools": case "ironalluvium2": case "village": case "villagenight": ((Component)val4.transform.GetChild(2)).gameObject.SetActive(false); break; case "voidstage": { GameObject val8 = GameObject.Find("/Weather, Void Stage"); if (Object.op_Implicit((Object)(object)val8)) { ((Component)val8.transform.GetChild(0)).gameObject.SetActive(false); } break; } case "fungal": { GameObject val6 = GameObject.Find("/HOLDER: Weather/Fungal_Weather"); if (Object.op_Implicit((Object)(object)val6)) { val6.SetActive(false); } break; } case "sanctum": { GameObject val5 = GameObject.Find("/HOLDER: Weather/Sanctum_Weather/Directional Light (SUN)"); if (Object.op_Implicit((Object)(object)val5)) { val5.GetComponent().intensity = 2f; } break; } case "skymeadow": component2.shadowStrength = 0.4f; break; } component3.ApplyLighting(); } private static void VoidStageMissionController_Start(orig_Start orig, VoidStageMissionController self) { if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactUseNormalStages)) { self.batteryCount = 0; } orig.Invoke(self); } private static void Run_OnDisable(orig_OnDisable orig, Run self) { if (Object.op_Implicit((Object)(object)RunArtifactManager.instance) && RunArtifactManager.instance.IsArtifactEnabled(ArtifactUseNormalStages)) { RuleDef val = RuleCatalog.FindRuleDef("Misc.StageOrder"); Run.instance.ruleBook.GetRuleChoice(val).extraData = (object)(StageOrder)0; } orig.Invoke(self); } private static void ChooseRealityStages(orig_PickNextStageScene orig, Run self, WeightedSelection choices) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Invalid comparison between Unknown and I4 //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_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Unknown result type (might be due to invalid IL or missing references) if ((int)self.ruleBook.stageOrder == 1) { if (visitedScenes.Count > 10) { visitedScenes.Clear(); DoDestinations(); } if (realityDestinations.sceneEntries.Length == 0) { DoDestinations(); } if (realityDestinations.sceneEntries.Length > 0) { WeightedSelection val = new WeightedSelection(24); realityDestinations.AddToWeightedSelection(val, (Func)self.CanPickStage); if (self.stageClearCount > 2) { SceneDef val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/voidstage/voidstage.asset").WaitForCompletion(); val.AddChoice(val2, 2f); } self.nextStageScene = val.Evaluate(self.nextStageRng.nextNormalizedFloat); visitedScenes.Add(self.nextStageScene); for (int i = 0; i < realityDestinations._sceneEntries.Length; i++) { if ((Object)(object)realityDestinations._sceneEntries[i].sceneDef == (Object)(object)self.nextStageScene) { ((SceneEntry)(ref realityDestinations._sceneEntries[i])).weight = 0f; } } } else { SceneDef[] array = ((IEnumerable)(object)SceneCatalog.allStageSceneDefs).Where(RealityValidSceneDefs).ToArray(); self.nextStageScene = self.nextStageRng.NextElementUniform(array); } } else { orig.Invoke(self, choices); } } private static bool RealityValidSceneDefs(SceneDef sceneDef) { if (visitedScenes.Contains(sceneDef)) { return false; } return sceneDef.hasAnyDestinations && sceneDef.validForRandomSelection; } private static bool Allow_Earlier_Spawns(orig_IsAvailable orig, DirectorCard self) { if (self.minimumStageCompletions > 2) { self.minimumStageCompletions = 2; } return orig.Invoke(self); } private static void ArtifactInITOnly(orig_OverrideRuleChoices orig, Run self, RuleChoiceMask mustInclude, RuleChoiceMask mustExclude, ulong runSeed) { orig.Invoke(self, mustInclude, mustExclude, runSeed); if (Object.op_Implicit((Object)(object)self) && !(self is InfiniteTowerRun)) { self.ForceChoice(mustInclude, mustExclude, RuleCatalog.FindRuleDef("Artifacts.AAAUseNormalStages").FindChoice("Off")); } } private static void RemoveSpawnPointsAndMonsters(orig_OnPrePopulateSceneServer orig, InfiniteTowerRun self, SceneDirector sceneDirector) { sceneDirector.teleporterSpawnCard = null; sceneDirector.monsterCredit = 0; sceneDirector.RemoveAllExistingSpawnPoints(); orig.Invoke(self, sceneDirector); } private static void AddAndRemoveInteractables(SceneDirector arg1, DirectorCardCategorySelection dccs) { //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown //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) //IL_0073: 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_0086: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Expected O, but got Unknown //IL_0090: 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_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown int num = dccs.FindCategoryIndexByName("Void Stuff"); int num2 = dccs.FindCategoryIndexByName("Hallow Stuff"); if (num != -1) { dccs.categories[num].selectionWeight *= 3f; DirectorCard val = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"5448ccdc4b91bd244a1631d60d24298d").WaitForCompletion(), selectionWeight = 1 }; DirectorCard val2 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidTriple/iscVoidTriple.asset").WaitForCompletion(), selectionWeight = 15 }; DirectorCard val3 = new DirectorCard { spawnCard = (SpawnCard)(object)SimulacrumDCCS.iscVoidCoinBarrelITSacrifice, selectionWeight = 6 }; dccs.AddCard(num, val3); dccs.AddCard(num, val); dccs.AddCard(num, val2); } if (num2 != -1) { dccs.categories[num2].selectionWeight = 0f; } dccs.RemoveCardsThatFailFilter(trimmer); } public static bool SimulacrumTrimmer(DirectorCard card) { GameObject prefab = card.GetSpawnCard().prefab; SpawnCard spawnCard = card.GetSpawnCard(); if (((InteractableSpawnCard)((spawnCard is InteractableSpawnCard) ? spawnCard : null)).skipSpawnWhenDevotionArtifactEnabled && !RunArtifactManager.instance.IsArtifactEnabled(Artifacts.Devotion) && !RunArtifactManager.instance.IsArtifactEnabled(Artifact_SimuDrones.ArtifactDef)) { return false; } return !(Object.op_Implicit((Object)(object)prefab.GetComponent()) | Object.op_Implicit((Object)(object)prefab.GetComponent()) | Object.op_Implicit((Object)(object)prefab.GetComponent()) | Object.op_Implicit((Object)(object)prefab.GetComponent()) | Object.op_Implicit((Object)(object)prefab.GetComponent()) | Object.op_Implicit((Object)(object)prefab.GetComponent())); } } public class GiantGup { public static GameObject GiantBody = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load("Prefabs/CharacterBodies/GupBody"), "GupGiantBody", true); public static GameObject GiantMaster = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load("Prefabs/CharacterMasters/GupMaster"), "GupGiantMaster", true); public static UnlockableDef unlockable = ScriptableObject.CreateInstance(); public static void MakeWave() { //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_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0058: 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_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_0104: 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_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_026a: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: 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) CharacterSpawnCard val = LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGupBody"); CharacterSpawnCard val2 = ScriptableObject.CreateInstance(); ((Object)val2).name = "cscITGiantGup"; val2._loadout = val._loadout; ((SpawnCard)val2).forbiddenFlags = ((SpawnCard)val).forbiddenFlags; ((SpawnCard)val2).occupyPosition = false; ((SpawnCard)val2).prefab = GiantMaster; ((SpawnCard)val2).sendOverNetwork = true; ((SpawnCard)val2).hullSize = (HullClassification)2; ((SpawnCard)val2).nodeGraphType = (GraphType)0; ((SpawnCard)val2).requiredFlags = (NodeFlags)0; ((SpawnCard)val2).directorCreditCost = 2000; ((SpawnCard)val2).occupyPosition = true; GameObject val3 = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_GiantGup", true); GameObject val4 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "InfiniteTowerCurrentBossGiantGupWaveUI", false); val3.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsGupFamily.asset").WaitForCompletion(); InfiniteTowerExplicitSpawnWaveController component = val3.GetComponent(); ((InfiniteTowerWaveController)component).baseCredits = 5f; ((InfiniteTowerWaveController)component).immediateCreditsFraction = 0f; ((InfiniteTowerWaveController)component).linearCreditsPerWave = 3f; component.spawnList[0].spawnCard = val2; component.spawnList[0].spawnDistance = (MonsterSpawnDistance)2; ((InfiniteTowerWaveController)component).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier2; ((InfiniteTowerWaveController)component).rewardDisplayTier = (ItemTier)1; val3.AddComponent().newRadius = 110f; SimuExplicitStats simuExplicitStats = val3.AddComponent(); simuExplicitStats.damageBonusMulti = 2f; simuExplicitStats.hpBonusMulti = 0.4f; ((InfiniteTowerWaveController)component).secondsBeforeSuddenDeath = ((InfiniteTowerWaveController)component).secondsBeforeSuddenDeath * 2f; Texture2D val5 = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGupBoss.png"); Sprite sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGupBoss.png"); Color color = default(Color); ((Color)(ref color))..ctor(1f, 0.6784f, 0.6278f, 1f); ((Component)val4.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = sprite; ((Graphic)((Component)val4.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = color; ((Graphic)((Component)val4.transform.GetChild(0).GetChild(2)).GetComponent()).color = color; ((InfiniteTowerWaveController)component).overlayEntries[1].prefab = val4; ((Component)val4.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_GIANTGUP"; ((Component)val4.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_GIANTGUP"; WeightedWave val6 = new WeightedWave { wavePrefab = val3, weight = 7f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val6); } public static void Start() { //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: 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_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01df: 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_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_0284: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_039b: Unknown result type (might be due to invalid IL or missing references) //IL_03b5: Unknown result type (might be due to invalid IL or missing references) //IL_03b7: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_0401: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_0426: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_045f: 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) ContentAddition.AddBody(GiantBody); ContentAddition.AddMaster(GiantMaster); GiantMaster.GetComponent().bodyPrefab = GiantBody; CharacterBody component = GiantBody.GetComponent(); component.baseNameToken = "GIANTGUP_BODY_NAME"; component.isChampion = true; component.portraitIcon = (Texture)(object)Assets.Bundle.LoadAsset("Assets/Simulacrum/Bodies/GiantGupBody.png"); component.baseMaxHealth *= 4f; component.baseDamage *= 1.2f; component.baseAttackSpeed = 0.3f; component.baseMoveSpeed *= 0.6f; component.baseJumpPower *= 2.5f; component.baseArmor = 20f; component.PerformAutoCalculateLevelStats(); component.bodyFlags = (BodyFlags)(component.bodyFlags | 0x10); component.bodyFlags = (BodyFlags)(component.bodyFlags | 0x800); component.bodyFlags = (BodyFlags)(component.bodyFlags | 0x8000); SetStateOnHurt component2 = GiantBody.GetComponent(); component2.canBeHitStunned = false; component2.canBeStunned = false; component2.canBeFrozen = false; bool flag = default(bool); GiantBody.GetComponent().deathState = ContentAddition.AddEntityState(ref flag); GameObject gameObject = ((Component)GiantBody.transform.GetChild(0).GetChild(0)).gameObject; gameObject.transform.localScale = new Vector3(3.5f, 3.5f, 3.5f); Transform val = gameObject.GetComponent().FindChild("MainBody4"); val.GetChild(0).localScale = new Vector3(3.5f, 3.5f, 3.5f); val.GetChild(1).localScale = new Vector3(3.5f, 3.5f, 3.5f); gameObject.GetComponent().minDistance = 5f; gameObject.GetComponent().maxDistance = 9f; SkinDef val2 = Object.Instantiate(Addressables.LoadAssetAsync((object)"d777989411688b347927be3f356a0e9a").WaitForCompletion()); SkinDefParams val3 = (val2.skinDefParams = Object.Instantiate(Addressables.LoadAssetAsync((object)"1ad54031e06b3f748b4f3e21a2d40f19").WaitForCompletion())); val2.skinDefParamsAddress = new AssetReferenceT(""); ((Object)val2).name = "skinGupGiant"; ((Object)val2).name = "skinGupGiant_params"; Material val4 = Object.Instantiate(Addressables.LoadAssetAsync((object)((AssetReference)val3.rendererInfos[0].defaultMaterialAddress).AssetGUID).WaitForCompletion()); val4.color = new Color(1.5f, 1f, 2.5f, 1f); Material val5 = Object.Instantiate(Addressables.LoadAssetAsync((object)((AssetReference)val3.rendererInfos[2].defaultMaterialAddress).AssetGUID).WaitForCompletion()); val5.color = new Color(4f, 2f, 3f, 1f); RendererInfo[] array = (val3.rendererInfos = ArrayUtils.Clone(val3.rendererInfos)); array[0].defaultMaterial = val4; array[1].defaultMaterial = val4; array[2].defaultMaterial = val5; array[0].defaultMaterialAddress = null; array[1].defaultMaterialAddress = null; array[2].defaultMaterialAddress = null; gameObject.GetComponent().skins[0] = val2; AISkillDriver[] components = GiantMaster.GetComponents(); components[0].maxDistance = 75f; GiantMaster.AddComponent().equipmentString = "Cleanse"; GiantMaster.GetComponent().itemInfos = (ItemInfo[])(object)new ItemInfo[4] { new ItemInfo { itemString = "AutoCastEquipment", count = 1 }, new ItemInfo { itemString = "BoostEquipmentRecharge", count = 5 }, new ItemInfo { itemString = "AdaptiveArmor", count = 1 }, new ItemInfo { itemString = "TeleportWhenOob", count = 1 } }; GiantMaster.GetComponent().itemDefInfos = (ItemDefInfo[])(object)new ItemDefInfo[1] { new ItemDefInfo { count = 35, itemDef = ItemHelpers.ITCooldownUp } }; MakeWave(); unlockable.cachedName = "Logs.GupGiantBody.0"; unlockable.nameToken = "UNLOCKABLE_LOG_GIANTGUP"; ContentAddition.AddUnlockableDef(unlockable); if (!WConfig.cfgNewEnemiesVisible.Value) { unlockable = null; } GiantBody.GetComponent().logUnlockableDef = unlockable; } } public class GiantGupSplitDeath : GenericCharacterDeath { public static CharacterSpawnCard gupCard = LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGupBody"); public static CharacterSpawnCard geepCard = LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGeepBody"); public static CharacterSpawnCard gipCard = LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGipBody"); public int gupCount = 3; public int geepCount = 6; public int gipCount = 9; public float deathDelay = 0.5f; public float moneyMultiplier = 0.5f; public static float spawnRadiusCoefficient = 0.5f; public static GameObject deathEffectPrefab = LegacyResourcesAPI.Load("Prefabs/Effects/GupExplosion"); private bool hasDied; public TeamIndex teamIndexGup = (TeamIndex)2; public override void OnEnter() { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Invalid comparison between Unknown and I4 //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) ((GenericCharacterDeath)this).OnEnter(); if ((int)((EntityState)this).teamComponent.teamIndex != -1) { teamIndexGup = ((EntityState)this).teamComponent.teamIndex; } ((EntityState)this).characterBody.inventory.RemoveItemPermanent(Items.BoostHp, ((EntityState)this).characterBody.inventory.GetItemCountPermanent(Items.BoostHp)); ((EntityState)this).characterBody.inventory.RemoveItemPermanent(Items.BoostDamage, ((EntityState)this).characterBody.inventory.GetItemCountPermanent(Items.BoostDamage)); ((EntityState)this).characterBody.inventory.RemoveItemPermanent(Items.AdaptiveArmor, ((EntityState)this).characterBody.inventory.GetItemCountPermanent(Items.AdaptiveArmor)); ((EntityState)this).characterBody.inventory.RemoveItemPermanent(Items.TeleportWhenOob, ((EntityState)this).characterBody.inventory.GetItemCountPermanent(Items.TeleportWhenOob)); } public override void OnExit() { ((GenericCharacterDeath)this).DestroyModel(); ((GenericCharacterDeath)this).OnExit(); } public override void FixedUpdate() { //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_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown //IL_007e: 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_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Invalid comparison between Unknown and I4 //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: 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_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_0164: 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_0177: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Unknown result type (might be due to invalid IL or missing references) //IL_02bb: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_020d: 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_0220: Unknown result type (might be due to invalid IL or missing references) //IL_022f: 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_0251: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0284: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_02fb: Unknown result type (might be due to invalid IL or missing references) ((GenericCharacterDeath)this).FixedUpdate(); if (!(((EntityState)this).fixedAge > deathDelay) || hasDied) { return; } hasDied = true; if (NetworkServer.active) { EffectManager.SpawnEffect(deathEffectPrefab, new EffectData { origin = ((EntityState)this).characterBody.corePosition, scale = ((EntityState)this).characterBody.radius * 3f }, true); if ((int)DamageTypeCombo.op_Implicit(((EntityState)this).healthComponent.killingDamageType & DamageTypeCombo.op_Implicit((DamageType)(-2147418112))) == 0) { if (Object.op_Implicit((Object)(object)gipCard)) { new BodySplitter { body = ((EntityState)this).characterBody, masterSummon = { teamIndexOverride = teamIndexGup }, masterSummon = { masterPrefab = ((SpawnCard)gipCard).prefab }, count = gipCount, splinterInitialVelocityLocal = new Vector3(0f, 30f, 25f), minSpawnCircleRadius = ((EntityState)this).characterBody.radius * spawnRadiusCoefficient * 1.2f, moneyMultiplier = moneyMultiplier }.Perform(); } if (Object.op_Implicit((Object)(object)geepCard)) { new BodySplitter { body = ((EntityState)this).characterBody, masterSummon = { teamIndexOverride = teamIndexGup }, masterSummon = { masterPrefab = ((SpawnCard)geepCard).prefab }, count = geepCount, splinterInitialVelocityLocal = new Vector3(0f, 25f, 20f), minSpawnCircleRadius = ((EntityState)this).characterBody.radius * spawnRadiusCoefficient * 1.1f, moneyMultiplier = moneyMultiplier }.Perform(); } if (Object.op_Implicit((Object)(object)gupCard)) { new BodySplitter { body = ((EntityState)this).characterBody, masterSummon = { teamIndexOverride = teamIndexGup }, masterSummon = { masterPrefab = ((SpawnCard)gupCard).prefab }, count = gupCount, splinterInitialVelocityLocal = new Vector3(0f, 20f, 15f), minSpawnCircleRadius = ((EntityState)this).characterBody.radius * spawnRadiusCoefficient, moneyMultiplier = moneyMultiplier }.Perform(); } PickupDropletController.CreatePickupDroplet(PickupCatalog.FindPickupIndex(Items.Pearl.itemIndex), ((EntityState)this).characterBody.corePosition, Vector3.up * 20f); if (Object.op_Implicit((Object)(object)GiantGup.unlockable) && Run.instance.CanUnlockableBeGrantedThisRun(GiantGup.unlockable)) { GameObject val = Object.Instantiate(DeathRewards.logbookPrefab, ((EntityState)this).characterBody.corePosition, Random.rotation); val.GetComponentInChildren().unlockableDef = GiantGup.unlockable; val.GetComponent().teamIndex = (TeamIndex)1; NetworkServer.Spawn(val); } } ((GenericCharacterDeath)this).DestroyBodyAsapServer(); } LocalUser firstLocalUser = LocalUserManager.GetFirstLocalUser(); if (firstLocalUser != null) { firstLocalUser.userProfile.AddAchievement("GIANT_GUP_ACHIEVEMENT", false); } } } public class SuperMegaCrab { public static GameObject SuperCrabBody = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load("Prefabs/CharacterBodies/VoidMegaCrabBody"), "VoidSuperMegaCrabBody", true); public static GameObject SuperCrabMaster = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load("Prefabs/CharacterMasters/VoidMegaCrabMaster"), "VoidSuperMegaCrabMaster", true); public static FamilyDirectorCardCategorySelection dccsVoidFamilyNoBarnacle = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/dccsVoidFamily.asset").WaitForCompletion()); public static UnlockableDef unlockable = ScriptableObject.CreateInstance(); public static void MakeWave() { //IL_004e: 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) //IL_0073: 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_0149: 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_018c: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Unknown result type (might be due to invalid IL or missing references) //IL_0217: Unknown result type (might be due to invalid IL or missing references) //IL_023d: Unknown result type (might be due to invalid IL or missing references) //IL_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_02a0: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_SuperVoidMegaCrab", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "WaveBoss_SuperVoidMegaCrabUI", false); CharacterSpawnCard val3 = LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscVoidMegaCrab"); CharacterSpawnCard val4 = ScriptableObject.CreateInstance(); ((Object)val4).name = "cscITVoidMegaCrabSuper"; val4._loadout = val3._loadout; ((SpawnCard)val4).forbiddenFlags = ((SpawnCard)val3).forbiddenFlags; ((SpawnCard)val4).occupyPosition = false; ((SpawnCard)val4).prefab = SuperCrabMaster; ((SpawnCard)val4).sendOverNetwork = true; ((SpawnCard)val4).hullSize = (HullClassification)2; ((SpawnCard)val4).nodeGraphType = (GraphType)0; ((SpawnCard)val4).requiredFlags = (NodeFlags)0; ((SpawnCard)val4).directorCreditCost = 6000; ((SpawnCard)val4).occupyPosition = true; ((DirectorCardCategorySelection)dccsVoidFamilyNoBarnacle).categories[2].cards = ((DirectorCardCategorySelection)dccsVoidFamilyNoBarnacle).categories[2].cards.Remove(((DirectorCardCategorySelection)dccsVoidFamilyNoBarnacle).categories[2].cards[1]); ((Object)dccsVoidFamilyNoBarnacle).name = "dccsVoidFamilyNoBarnacle"; val.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)dccsVoidFamilyNoBarnacle; InfiniteTowerExplicitSpawnWaveController component = val.GetComponent(); ((InfiniteTowerWaveController)component).baseCredits = 0f; ((InfiniteTowerWaveController)component).linearCreditsPerWave = 0f; component.spawnList[0].spawnCard = val4; component.spawnList[0].spawnDistance = (MonsterSpawnDistance)2; ((InfiniteTowerWaveController)component).secondsBeforeSuddenDeath = ((InfiniteTowerWaveController)component).secondsBeforeSuddenDeath * 2f; ((InfiniteTowerWaveController)component).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; ((InfiniteTowerWaveController)component).rewardDisplayTier = (ItemTier)2; val.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITVoid; val.GetComponent().rewardDisplayTier = (ItemTier)7; val.GetComponent().newRadius = 110f; SimuExplicitStats simuExplicitStats = val.AddComponent(); simuExplicitStats.damageBonusMulti = 0.5f; simuExplicitStats.hpBonusMulti = 1f; simuExplicitStats.halfOnNonFinal = true; ((InfiniteTowerWaveController)component).overlayEntries[1].prefab = val2; val2.SetWaveInfo("ITWAVE_NAME_BOSS_SUPERCRAB", "ITWAVE_DESC_BOSS_SUPERCRAB", Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveVoid.png"), new Color(1f, 0.6278f, 0.83f, 1f)); WeightedWave val5 = new WeightedWave { wavePrefab = val, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave35Prerequisite }; WeightedWave val6 = new WeightedWave { wavePrefab = val, weight = 4f }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val5); Constant.ITSuperBossWaves.wavePrefabs = Constant.ITSuperBossWaves.wavePrefabs.Add(val6); } public static void Start() { //IL_0038: 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_0043: 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_005e: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown //IL_00fe: 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_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01f7: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_021c: 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_023c: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_0258: 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_026c: Unknown result type (might be due to invalid IL or missing references) //IL_027b: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Unknown result type (might be due to invalid IL or missing references) //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_030a: Unknown result type (might be due to invalid IL or missing references) //IL_030f: Unknown result type (might be due to invalid IL or missing references) //IL_0324: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Unknown result type (might be due to invalid IL or missing references) ContentAddition.AddBody(SuperCrabBody); ContentAddition.AddMaster(SuperCrabMaster); SuperCrabMaster.GetComponent().bodyPrefab = SuperCrabBody; CharacterBody component = SuperCrabBody.GetComponent(); component.bodyFlags = (BodyFlags)(component.bodyFlags | 0x800); component.baseNameToken = "SUPERMEGACRAB_BODY_NAME"; component.portraitIcon = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSuperMegaCrabBody.png").WaitForCompletion(); component.baseMaxHealth = 2020f; component.baseDamage *= 0.2f; component.baseMoveSpeed *= 0.75f; component.baseAttackSpeed *= 0.75f; component.baseJumpPower *= 1.5f; component.PerformAutoCalculateLevelStats(); FireCrabCannonBase.OnEnter += new hook_OnEnter(FireCrabCannonBase_OnEnter); DeathState.OnExit += new hook_OnExit(DeathState_OnExit); SuperCrabMaster.AddComponent().itemInfos = (ItemInfo[])(object)new ItemInfo[8] { new ItemInfo { itemString = "AdaptiveArmor", count = 1 }, new ItemInfo { itemString = "TeleportWhenOob", count = 1 }, new ItemInfo { itemString = "ShieldOnly", count = 1 }, new ItemInfo { itemString = "CritGlassesVoid", count = 10 }, new ItemInfo { itemString = "BearVoid", count = 1 }, new ItemInfo { itemString = "MissileVoid", count = 1 }, new ItemInfo { itemString = "ElementalRingVoid", count = 1 }, new ItemInfo { itemString = "VoidMegaCrabItem", count = 3 } }; SuperCrabMaster.GetComponent().itemDefInfos = (ItemDefInfo[])(object)new ItemDefInfo[1] { new ItemDefInfo { itemDef = ItemHelpers.ITCooldownUp, count = 5 } }; Material val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/matVoidSuperMegaCrabMetal.mat").WaitForCompletion(); Material val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/matVoidSuperMegaCrabShell.mat").WaitForCompletion(); GameObject val3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/mdlVoidSuperMegaCrab.fbx").WaitForCompletion(); Debug.Log((object)val3); GameObject gameObject = ((Component)SuperCrabBody.transform.GetChild(0).GetChild(3)).gameObject; gameObject.transform.localScale = new Vector3(1.25f, 1.25f, 1.25f); gameObject.GetComponent().minDistance = 20f; gameObject.GetComponent().maxDistance = 50f; SkinDef val4 = Object.Instantiate(Addressables.LoadAssetAsync((object)"00bdccf5542881c42ab3eb4de8adbaf0").WaitForCompletion()); SkinDefParams val5 = Object.Instantiate(Addressables.LoadAssetAsync((object)"872a5d01600f3d04fbe96095db442636").WaitForCompletion()); val4.skinDefParamsAddress = new AssetReferenceT(""); ((Object)val4).name = "skinVoidSuperMegaCrab"; ((Object)val5).name = "skinVoidSuperMegaCrab_params"; val4.skinDefParams = val5; RendererInfo[] array = (val5.rendererInfos = ArrayUtils.Clone(val5.rendererInfos)); MeshReplacement[] array2 = (val5.meshReplacements = ArrayUtils.Clone(val5.meshReplacements)); array2[2].mesh = ((Component)val3.transform.GetChild(0)).GetComponent().sharedMesh; array2[3].mesh = ((Component)val3.transform.GetChild(1)).GetComponent().sharedMesh; array2[2].meshAddress = null; array2[3].meshAddress = null; array[2].defaultMaterialAddress = new AssetReferenceT("0eb7df469ba68fb408a30cb0b20a83d8"); array[3].defaultMaterialAddress = new AssetReferenceT("e1cd8b55b8fa1004294c9280ec34d3f2"); gameObject.GetComponent().skins[0] = val4; MakeWave(); unlockable.cachedName = "Logs.VoidSuperMegaCrabBody.0"; unlockable.nameToken = "UNLOCKABLE_LOG_SUPERMEGACRAB"; ContentAddition.AddUnlockableDef(unlockable); if (!WConfig.cfgNewEnemiesVisible.Value) { unlockable = null; } SuperCrabBody.GetComponent().logUnlockableDef = unlockable; } private static void FireCrabCannonBase_OnEnter(orig_OnEnter orig, FireCrabCannonBase self) { if (((Object)((EntityState)self).characterBody).name.StartsWith("VoidSuper")) { self.projectileCount += (int)((float)self.projectileCount * 1.2f) + 1; } orig.Invoke(self); } private static void DeathState_OnExit(orig_OnExit orig, DeathState self) { //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) orig.Invoke(self); if (((Object)((EntityState)self).characterBody).name.StartsWith("VoidSuper")) { if (Object.op_Implicit((Object)(object)unlockable) && Run.instance.CanUnlockableBeGrantedThisRun(unlockable)) { GameObject val = Object.Instantiate(DeathRewards.logbookPrefab, ((EntityState)self).characterBody.corePosition, Random.rotation); val.GetComponentInChildren().unlockableDef = unlockable; val.GetComponent().teamIndex = (TeamIndex)1; NetworkServer.Spawn(val); } LocalUser firstLocalUser = LocalUserManager.GetFirstLocalUser(); if (firstLocalUser != null) { firstLocalUser.userProfile.AddAchievement("VOIDSUPERMEGACRAB_ACHIEVEMENT", false); } } } } public class SimulacrumDCCS { public static DirectorCardCategorySelection dccsInfiniteTowerInteractables = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/dccsInfiniteTowerInteractables.asset").WaitForCompletion(); public static DirectorCardCategorySelection dccsITGolemPlainsInteractablesW = null; public static DirectorCardCategorySelection dccsITGooLakeInteractablesW = null; public static DirectorCardCategorySelection dccsITAncientLoftInteractablesW = null; public static DirectorCardCategorySelection dccsITFrozenWallInteractablesW = null; public static DirectorCardCategorySelection dccsITDampCaveInteractablesW = null; public static DirectorCardCategorySelection dccsITSkyMeadowInteractablesW = null; public static DirectorCardCategorySelection dccsITMoonInteractablesW = null; public static InteractableSpawnCard iscVoidCoinBarrelITSacrifice; public static InteractableSpawnCard iscVoidSuppressorIT; public static void Start() { SimuDCCS(); Enemies(); } public static void CreditsRebalance(orig_OnPrePopulateSceneServer orig, InfiniteTowerRun self, SceneDirector sceneDirector) { orig.Invoke(self, sceneDirector); if (!SimulacrumExtrasHelper.shareSuitInstalled) { int num = Run.instance.participatingPlayerCount - 1; sceneDirector.interactableCredit += num * 120; } if (RunArtifactManager.instance.IsArtifactEnabled(Artifact_SimuDrones.ArtifactDef)) { sceneDirector.interactableCredit += 40; } if (self.waveIndex < 30) { sceneDirector.interactableCredit += 40; } else if (self.waveIndex >= 60) { sceneDirector.interactableCredit = (int)((float)sceneDirector.interactableCredit * 0.55f); } else if (self.waveIndex >= 40) { sceneDirector.interactableCredit = (int)((float)sceneDirector.interactableCredit * 0.75f); } if (RunArtifactManager.instance.IsArtifactEnabled(Artifact_RealStages.ArtifactUseNormalStages)) { sceneDirector.interactableCredit += 100; } Debug.Log((object)("InfiniteTower " + sceneDirector.interactableCredit + " interactable credits. ")); if (Object.op_Implicit((Object)(object)SceneInfo.instance)) { ClassicStageInfo component = ((Component)SceneInfo.instance).GetComponent(); if (Object.op_Implicit((Object)(object)component)) { component.sceneDirectorInteractibleCredits = sceneDirector.interactableCredit; } } } public static void MakeITSand(bool makeITSand) { //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_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_00f4: 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_0066: Unknown result type (might be due to invalid IL or missing references) Material val = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineChance/matShrineChanceSandy.mat").WaitForCompletion(); Material val2 = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineBlood/matShrineBloodSandy.mat").WaitForCompletion(); Material val3 = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineCleanse/matShrineCleanseSandy.mat").WaitForCompletion(); GameObject val4 = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineHealing/ShrineHealing.prefab").WaitForCompletion(); if (makeITSand) { Texture2D val5 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgoolake/texSand1SimpleInfiniteTower.png").WaitForCompletion(); val.SetTexture("_GreenChannelTex", (Texture)(object)val5); val2.SetTexture("_GreenChannelTex", (Texture)(object)val5); val3.SetTexture("_GreenChannelTex", (Texture)(object)val5); ((Component)val4.transform.GetChild(0).GetChild(0).GetChild(0)).gameObject.SetActive(false); ((Component)val4.transform.GetChild(0).GetChild(0).GetChild(2)).gameObject.SetActive(false); } else { Texture2D val6 = Addressables.LoadAssetAsync((object)"b33b64ab57a530f4592b379c3224ba4d").WaitForCompletion(); val.SetTexture("_GreenChannelTex", (Texture)(object)val6); val2.SetTexture("_GreenChannelTex", (Texture)(object)val6); val3.SetTexture("_GreenChannelTex", (Texture)(object)val6); ((Component)val4.transform.GetChild(0).GetChild(0).GetChild(0)).gameObject.SetActive(false); ((Component)val4.transform.GetChild(0).GetChild(0).GetChild(2)).gameObject.SetActive(false); } } public static void SimuDCCS() { //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_003a: 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_0056: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0111: 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_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02dd: Unknown result type (might be due to invalid IL or missing references) //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_02f1: Expected O, but got Unknown //IL_02f8: Unknown result type (might be due to invalid IL or missing references) //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_0303: Unknown result type (might be due to invalid IL or missing references) //IL_0308: Unknown result type (might be due to invalid IL or missing references) //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_0323: Expected O, but got Unknown //IL_0398: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a8: Unknown result type (might be due to invalid IL or missing references) //IL_03b4: Expected O, but got Unknown //IL_03bb: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: Unknown result type (might be due to invalid IL or missing references) //IL_03c6: Unknown result type (might be due to invalid IL or missing references) //IL_03cb: Unknown result type (might be due to invalid IL or missing references) //IL_03d9: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Expected O, but got Unknown //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04d7: Unknown result type (might be due to invalid IL or missing references) //IL_04dd: Unknown result type (might be due to invalid IL or missing references) //IL_04e2: Unknown result type (might be due to invalid IL or missing references) //IL_04f0: Unknown result type (might be due to invalid IL or missing references) //IL_04fc: Expected O, but got Unknown //IL_060c: Unknown result type (might be due to invalid IL or missing references) //IL_0611: Unknown result type (might be due to invalid IL or missing references) //IL_0617: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Unknown result type (might be due to invalid IL or missing references) //IL_062a: Unknown result type (might be due to invalid IL or missing references) //IL_0634: Expected O, but got Unknown //IL_0634: Unknown result type (might be due to invalid IL or missing references) //IL_0639: Unknown result type (might be due to invalid IL or missing references) //IL_063f: Unknown result type (might be due to invalid IL or missing references) //IL_0644: Unknown result type (might be due to invalid IL or missing references) //IL_0652: Unknown result type (might be due to invalid IL or missing references) //IL_065c: Expected O, but got Unknown //IL_065c: Unknown result type (might be due to invalid IL or missing references) //IL_0661: Unknown result type (might be due to invalid IL or missing references) //IL_0667: Unknown result type (might be due to invalid IL or missing references) //IL_066c: Unknown result type (might be due to invalid IL or missing references) //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_0684: Expected O, but got Unknown //IL_0684: Unknown result type (might be due to invalid IL or missing references) //IL_0689: Unknown result type (might be due to invalid IL or missing references) //IL_068f: Unknown result type (might be due to invalid IL or missing references) //IL_0694: Unknown result type (might be due to invalid IL or missing references) //IL_06a2: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Expected O, but got Unknown //IL_06ac: Unknown result type (might be due to invalid IL or missing references) //IL_06b1: Unknown result type (might be due to invalid IL or missing references) //IL_06b7: Unknown result type (might be due to invalid IL or missing references) //IL_06bc: Unknown result type (might be due to invalid IL or missing references) //IL_06ca: Unknown result type (might be due to invalid IL or missing references) //IL_06d4: Expected O, but got Unknown //IL_06d4: Unknown result type (might be due to invalid IL or missing references) //IL_06d9: Unknown result type (might be due to invalid IL or missing references) //IL_06df: Unknown result type (might be due to invalid IL or missing references) //IL_06e4: Unknown result type (might be due to invalid IL or missing references) //IL_06f2: Unknown result type (might be due to invalid IL or missing references) //IL_06fc: Expected O, but got Unknown //IL_06fc: Unknown result type (might be due to invalid IL or missing references) //IL_0701: 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_070c: Unknown result type (might be due to invalid IL or missing references) //IL_071a: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Expected O, but got Unknown //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_0729: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Unknown result type (might be due to invalid IL or missing references) //IL_0734: Unknown result type (might be due to invalid IL or missing references) //IL_0742: Unknown result type (might be due to invalid IL or missing references) //IL_074c: Expected O, but got Unknown //IL_074c: Unknown result type (might be due to invalid IL or missing references) //IL_0751: Unknown result type (might be due to invalid IL or missing references) //IL_0757: Unknown result type (might be due to invalid IL or missing references) //IL_075c: Unknown result type (might be due to invalid IL or missing references) //IL_076a: Unknown result type (might be due to invalid IL or missing references) //IL_0773: Expected O, but got Unknown //IL_0773: Unknown result type (might be due to invalid IL or missing references) //IL_0778: Unknown result type (might be due to invalid IL or missing references) //IL_077e: Unknown result type (might be due to invalid IL or missing references) //IL_0783: Unknown result type (might be due to invalid IL or missing references) //IL_0791: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Expected O, but got Unknown //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Unknown result type (might be due to invalid IL or missing references) //IL_07a5: Unknown result type (might be due to invalid IL or missing references) //IL_07aa: Unknown result type (might be due to invalid IL or missing references) //IL_07b8: Unknown result type (might be due to invalid IL or missing references) //IL_07c1: Expected O, but got Unknown //IL_07c1: Unknown result type (might be due to invalid IL or missing references) //IL_07c6: Unknown result type (might be due to invalid IL or missing references) //IL_07cc: Unknown result type (might be due to invalid IL or missing references) //IL_07d1: Unknown result type (might be due to invalid IL or missing references) //IL_07df: Unknown result type (might be due to invalid IL or missing references) //IL_07e8: Expected O, but got Unknown //IL_07e8: Unknown result type (might be due to invalid IL or missing references) //IL_07ed: Unknown result type (might be due to invalid IL or missing references) //IL_07f3: Unknown result type (might be due to invalid IL or missing references) //IL_07f8: Unknown result type (might be due to invalid IL or missing references) //IL_0806: Unknown result type (might be due to invalid IL or missing references) //IL_080f: Expected O, but got Unknown //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_081a: Unknown result type (might be due to invalid IL or missing references) //IL_081f: Unknown result type (might be due to invalid IL or missing references) //IL_082d: Unknown result type (might be due to invalid IL or missing references) //IL_0836: Expected O, but got Unknown //IL_0836: Unknown result type (might be due to invalid IL or missing references) //IL_083b: Unknown result type (might be due to invalid IL or missing references) //IL_0842: Unknown result type (might be due to invalid IL or missing references) //IL_084c: Expected O, but got Unknown //IL_084c: Unknown result type (might be due to invalid IL or missing references) //IL_0851: Unknown result type (might be due to invalid IL or missing references) //IL_0858: Unknown result type (might be due to invalid IL or missing references) //IL_0862: Expected O, but got Unknown //IL_0862: Unknown result type (might be due to invalid IL or missing references) //IL_0867: Unknown result type (might be due to invalid IL or missing references) //IL_086e: Unknown result type (might be due to invalid IL or missing references) //IL_0878: Expected O, but got Unknown //IL_0878: Unknown result type (might be due to invalid IL or missing references) //IL_087d: Unknown result type (might be due to invalid IL or missing references) //IL_0883: Unknown result type (might be due to invalid IL or missing references) //IL_0888: Unknown result type (might be due to invalid IL or missing references) //IL_0896: Unknown result type (might be due to invalid IL or missing references) //IL_089f: Expected O, but got Unknown //IL_089f: Unknown result type (might be due to invalid IL or missing references) //IL_08a4: Unknown result type (might be due to invalid IL or missing references) //IL_08aa: Unknown result type (might be due to invalid IL or missing references) //IL_08af: Unknown result type (might be due to invalid IL or missing references) //IL_08bd: Unknown result type (might be due to invalid IL or missing references) //IL_08c6: Expected O, but got Unknown //IL_0983: Unknown result type (might be due to invalid IL or missing references) //IL_0988: 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_0aa0: Unknown result type (might be due to invalid IL or missing references) InteractableSpawnCard val = ScriptableObject.CreateInstance(); ((Object)val).name = "iscSoupWhiteGreen"; ((SpawnCard)val).prefab = LegacyResourcesAPI.Load("Prefabs/networkedobjects/LunarCauldron, WhiteToGreen"); ((SpawnCard)val).sendOverNetwork = true; ((SpawnCard)val).hullSize = (HullClassification)1; ((SpawnCard)val).nodeGraphType = (GraphType)0; ((SpawnCard)val).requiredFlags = (NodeFlags)0; ((SpawnCard)val).forbiddenFlags = (NodeFlags)8; ((SpawnCard)val).directorCreditCost = 1; ((SpawnCard)val).occupyPosition = true; ((SpawnCard)val).eliteRules = (EliteRules)0; val.orientToFloor = true; val.slightlyRandomizeOrientation = false; val.skipSpawnWhenSacrificeArtifactEnabled = false; InteractableSpawnCard val2 = ScriptableObject.CreateInstance(); ((Object)val2).name = "iscSoupGreenRed"; ((SpawnCard)val2).prefab = LegacyResourcesAPI.Load("Prefabs/networkedobjects/LunarCauldron, GreenToRed Variant"); ((SpawnCard)val2).sendOverNetwork = true; ((SpawnCard)val2).hullSize = (HullClassification)1; ((SpawnCard)val2).nodeGraphType = (GraphType)0; ((SpawnCard)val2).requiredFlags = (NodeFlags)0; ((SpawnCard)val2).forbiddenFlags = (NodeFlags)8; ((SpawnCard)val2).directorCreditCost = 1; ((SpawnCard)val2).occupyPosition = true; ((SpawnCard)val2).eliteRules = (EliteRules)0; val2.orientToFloor = true; val2.slightlyRandomizeOrientation = false; val2.skipSpawnWhenSacrificeArtifactEnabled = false; InteractableSpawnCard val3 = ScriptableObject.CreateInstance(); ((Object)val3).name = "iscSoupRedWhite"; ((SpawnCard)val3).prefab = LegacyResourcesAPI.Load("Prefabs/networkedobjects/LunarCauldron, RedToWhite Variant"); ((SpawnCard)val3).sendOverNetwork = true; ((SpawnCard)val3).hullSize = (HullClassification)1; ((SpawnCard)val3).nodeGraphType = (GraphType)0; ((SpawnCard)val3).requiredFlags = (NodeFlags)0; ((SpawnCard)val3).forbiddenFlags = (NodeFlags)8; ((SpawnCard)val3).directorCreditCost = 1; ((SpawnCard)val3).occupyPosition = true; ((SpawnCard)val3).eliteRules = (EliteRules)0; val3.orientToFloor = true; val3.slightlyRandomizeOrientation = false; val3.skipSpawnWhenSacrificeArtifactEnabled = false; InteractableSpawnCard val4 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidCoinBarrel/iscVoidCoinBarrel.asset").WaitForCompletion()); ((SpawnCard)val4).directorCreditCost = 1; ((Object)val4).name = "iscVoidCoinBarrelIT"; val4.skipSpawnWhenSacrificeArtifactEnabled = true; iscVoidCoinBarrelITSacrifice = Object.Instantiate(val4); ((SpawnCard)iscVoidCoinBarrelITSacrifice).directorCreditCost = 1; ((Object)iscVoidCoinBarrelITSacrifice).name = "iscVoidCoinBarrelITSacrifice"; iscVoidCoinBarrelITSacrifice.skipSpawnWhenSacrificeArtifactEnabled = false; iscVoidCoinBarrelITSacrifice.weightScalarWhenSacrificeArtifactEnabled = 0.5f; InteractableSpawnCard val5 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/GoldChest/iscGoldChest.asset").WaitForCompletion()); val5.maxSpawnsPerStage = 1; ((Object)val5).name = "iscGoldChestIT"; iscVoidSuppressorIT = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSuppressor/iscVoidSuppressor.asset").WaitForCompletion()); ((SpawnCard)iscVoidSuppressorIT).directorCreditCost = 20; ((Object)iscVoidSuppressorIT).name = "iscVoidSuppressorIT"; dccsInfiniteTowerInteractables.categories[0].cards[3].selectionWeight = 60; dccsInfiniteTowerInteractables.categories[0].cards[4].selectionWeight = 15; dccsInfiniteTowerInteractables.categories[0].cards[9].selectionWeight = 5; dccsInfiniteTowerInteractables.categories[0].cards = dccsInfiniteTowerInteractables.categories[0].cards.Remove(dccsInfiniteTowerInteractables.categories[0].cards[8]); dccsInfiniteTowerInteractables.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val4, selectionWeight = 10 }); dccsInfiniteTowerInteractables.AddCard(0, new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"6df786822d3105e4e820c69e1ef94d16").WaitForCompletion(), selectionWeight = 10 }); dccsInfiniteTowerInteractables.categories[1].selectionWeight = 2f; dccsInfiniteTowerInteractables.categories[2].selectionWeight = 0.8f; dccsInfiniteTowerInteractables.categories[2].cards[0].minimumStageCompletions = 1; dccsInfiniteTowerInteractables.categories[2].cards[1].minimumStageCompletions = 1; dccsInfiniteTowerInteractables.AddCard(2, new DirectorCard { spawnCard = (SpawnCard)(object)iscVoidCoinBarrelITSacrifice, selectionWeight = 1 }); dccsInfiniteTowerInteractables.AddCard(2, new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidChest/iscVoidChestSacrificeOn.asset").WaitForCompletion(), selectionWeight = 1 }); dccsInfiniteTowerInteractables.categories[3].cards[1].selectionWeight = 8; dccsInfiniteTowerInteractables.categories[3].cards[2].selectionWeight = 2; dccsInfiniteTowerInteractables.categories[3].cards[3].selectionWeight = 3; dccsInfiniteTowerInteractables.categories[3].cards[2].minimumStageCompletions = 1; dccsInfiniteTowerInteractables.categories[3].cards[3].minimumStageCompletions = 1; dccsInfiniteTowerInteractables.categories[3].cards[4].selectionWeight = 16; dccsInfiniteTowerInteractables.categories[4].selectionWeight = 7f; dccsInfiniteTowerInteractables.categories[4].cards[0].selectionWeight = 3; dccsInfiniteTowerInteractables.AddCard(4, new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidTriple/iscVoidTriple.asset").WaitForCompletion(), selectionWeight = 3 }); int dr = dccsInfiniteTowerInteractables.AddCategory("SimuDrones", 0f); int dr2 = dccsInfiniteTowerInteractables.AddCategory("SimuDroneRelated", 0f); SimulacrumDCCS_Drones.SimulacrumDroneArtifactCategoryGlobal(dr, dr2); dccsITGolemPlainsInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITGooLakeInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITAncientLoftInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITFrozenWallInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITDampCaveInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITSkyMeadowInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); dccsITMoonInteractablesW = Object.Instantiate(dccsInfiniteTowerInteractables); ((Object)dccsITGolemPlainsInteractablesW).name = "dccsITGolemPlainsInteractablesW"; ((Object)dccsITGooLakeInteractablesW).name = "dccsITGooLakeInteractablesW"; ((Object)dccsITAncientLoftInteractablesW).name = "dccsITAncientLoftInteractablesW"; ((Object)dccsITFrozenWallInteractablesW).name = "dccsITFrozenWallInteractablesW"; ((Object)dccsITDampCaveInteractablesW).name = "dccsITDampCaveInteractablesW"; ((Object)dccsITSkyMeadowInteractablesW).name = "dccsITSkyMeadowInteractablesW"; ((Object)dccsITMoonInteractablesW).name = "dccsITMoonInteractablesW"; DirectorCard val6 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/CategoryChest/iscCategoryChestDamage.asset").WaitForCompletion(), selectionWeight = 60 }; DirectorCard val7 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/CategoryChest/iscCategoryChestHealing.asset").WaitForCompletion(), selectionWeight = 60 }; DirectorCard val8 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/CategoryChest/iscCategoryChestUtility.asset").WaitForCompletion(), selectionWeight = 60 }; DirectorCard val9 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Damage.asset").WaitForCompletion(), selectionWeight = 10 }; DirectorCard val10 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Healing.asset").WaitForCompletion(), selectionWeight = 10 }; DirectorCard val11 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/DLC1/CategoryChest2/iscCategoryChest2Utility.asset").WaitForCompletion(), selectionWeight = 10 }; DirectorCard val12 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/TripleShopLarge/iscTripleShopLarge.asset").WaitForCompletion(), selectionWeight = 25 }; DirectorCard val13 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/CasinoChest/iscCasinoChest.asset").WaitForCompletion(), selectionWeight = 20 }; DirectorCard val14 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineChance/iscShrineChance.asset").WaitForCompletion(), selectionWeight = 3 }; DirectorCard val15 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineChance/iscShrineChanceSandy.asset").WaitForCompletion(), selectionWeight = 3 }; DirectorCard val16 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineChance/iscShrineChanceSnowy.asset").WaitForCompletion(), selectionWeight = 3 }; DirectorCard val17 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineCleanse/iscShrineCleanse.asset").WaitForCompletion(), selectionWeight = 4 }; DirectorCard val18 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineHealing/iscShrineHealing.asset").WaitForCompletion(), selectionWeight = 3 }; DirectorCard val19 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineRestack/iscShrineRestack.asset").WaitForCompletion(), selectionWeight = 2 }; DirectorCard val20 = new DirectorCard { spawnCard = (SpawnCard)(object)val, selectionWeight = 20 }; DirectorCard val21 = new DirectorCard { spawnCard = (SpawnCard)(object)val2, selectionWeight = 15 }; DirectorCard val22 = new DirectorCard { spawnCard = (SpawnCard)(object)val3, selectionWeight = 10 }; DirectorCard val23 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineCleanse/iscShrineCleanseSandy.asset").WaitForCompletion(), selectionWeight = 3 }; DirectorCard val24 = new DirectorCard { spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineRestack/iscShrineRestackSnowy.asset").WaitForCompletion(), selectionWeight = 2 }; dccsITGolemPlainsInteractablesW.AddCard(0, val7); dccsITGolemPlainsInteractablesW.AddCard(0, val10); dccsITGolemPlainsInteractablesW.categories[1].selectionWeight = 5f; dccsITGolemPlainsInteractablesW.categories[1].cards[0] = val14; dccsITGolemPlainsInteractablesW.AddCard(1, val18); dccsITGooLakeInteractablesW.AddCard(0, val6); dccsITGooLakeInteractablesW.AddCard(0, val9); dccsITGooLakeInteractablesW.AddCard(0, val12); dccsITGooLakeInteractablesW.categories[1].selectionWeight = 5f; dccsITGooLakeInteractablesW.categories[1].cards[0].spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineBlood/iscShrineBloodSandy.asset").WaitForCompletion(); dccsITGooLakeInteractablesW.AddCard(1, val15); dccsITGooLakeInteractablesW.AddCard(1, val23); dccsITAncientLoftInteractablesW.AddCard(0, val8); dccsITAncientLoftInteractablesW.AddCard(0, val11); dccsITAncientLoftInteractablesW.categories[0].cards[8].selectionWeight = 30; dccsITAncientLoftInteractablesW.categories[1].selectionWeight = 7f; dccsITAncientLoftInteractablesW.categories[1].cards[0] = val17; dccsITAncientLoftInteractablesW.AddCard(1, val18); dccsITAncientLoftInteractablesW.AddCard(1, val14); dccsITFrozenWallInteractablesW.AddCard(0, val8); dccsITFrozenWallInteractablesW.AddCard(0, val11); dccsITFrozenWallInteractablesW.AddCard(0, val13); dccsITFrozenWallInteractablesW.categories[1].selectionWeight = 5f; dccsITFrozenWallInteractablesW.categories[1].cards[0].spawnCard = Addressables.LoadAssetAsync((object)"RoR2/Base/ShrineBlood/iscShrineBloodSnowy.asset").WaitForCompletion(); dccsITFrozenWallInteractablesW.AddCard(1, val16); dccsITFrozenWallInteractablesW.AddCard(1, val24); dccsITDampCaveInteractablesW.AddCard(0, val6); dccsITDampCaveInteractablesW.AddCard(0, val9); dccsITDampCaveInteractablesW.AddCard(0, val12); dccsITDampCaveInteractablesW.AddCard(0, val13); dccsITDampCaveInteractablesW.categories[1].selectionWeight = 5f; dccsITDampCaveInteractablesW.AddCard(1, val18); dccsITDampCaveInteractablesW.AddCard(1, val14); dccsITSkyMeadowInteractablesW.AddCard(0, val7); dccsITSkyMeadowInteractablesW.AddCard(0, val10); dccsITSkyMeadowInteractablesW.AddCard(0, val12); dccsITSkyMeadowInteractablesW.categories[1].selectionWeight = 5f; dccsITSkyMeadowInteractablesW.AddCard(1, val14); dccsITMoonInteractablesW.AddCard(0, val12); dccsITMoonInteractablesW.categories[0].cards[4].selectionWeight = 60; dccsITMoonInteractablesW.categories[0].cards = dccsITMoonInteractablesW.categories[0].cards.Remove(dccsITMoonInteractablesW.categories[0].cards[5]); dccsITMoonInteractablesW.categories[1].selectionWeight = 3f; dccsITMoonInteractablesW.categories[1].cards[0] = val19; dccsITMoonInteractablesW.categories[2].cards = dccsITMoonInteractablesW.categories[2].cards.Remove(dccsITMoonInteractablesW.categories[2].cards[0]); dccsITMoonInteractablesW.categories[2].cards[0].spawnCard = (SpawnCard)(object)val5; dccsITMoonInteractablesW.categories[3].selectionWeight += 4f; dccsITMoonInteractablesW.categories[3].cards = dccsITMoonInteractablesW.categories[3].cards.Remove(dccsITMoonInteractablesW.categories[3].cards[3], dccsITMoonInteractablesW.categories[3].cards[2], dccsITMoonInteractablesW.categories[3].cards[1], dccsITMoonInteractablesW.categories[3].cards[0]); dccsITMoonInteractablesW.AddCard(3, val22); dccsITMoonInteractablesW.AddCard(3, val21); dccsITMoonInteractablesW.AddCard(3, val20); dccsITMoonInteractablesW.categories[4].selectionWeight += 4f; if (dccsITMoonInteractablesW.categories[2].cards.Length >= 3) { dccsITMoonInteractablesW.categories[2].cards[1].selectionWeight = 4; } SimulacrumDCCS_Drones.SimulacrumDroneArtifactCategory(dr); } public static void SimuInteractableDCCSAdder(orig_OnPrePopulateSceneServer orig, InfiniteTowerRun self, SceneDirector sceneDirector) { orig.Invoke(self, sceneDirector); if (Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)SceneInfo.instance)) { switch (SceneInfo.instance.sceneDef.baseSceneName) { case "itgolemplains": ClassicStageInfo.instance.interactableCategories = dccsITGolemPlainsInteractablesW; break; case "itgoolake": ClassicStageInfo.instance.interactableCategories = dccsITGooLakeInteractablesW; break; case "itancientloft": ClassicStageInfo.instance.interactableCategories = dccsITAncientLoftInteractablesW; break; case "itfrozenwall": ClassicStageInfo.instance.interactableCategories = dccsITFrozenWallInteractablesW; break; case "itdampcave": ClassicStageInfo.instance.interactableCategories = dccsITDampCaveInteractablesW; break; case "itskymeadow": ClassicStageInfo.instance.interactableCategories = dccsITSkyMeadowInteractablesW; break; case "itmoon": ClassicStageInfo.instance.interactableCategories = dccsITMoonInteractablesW; sceneDirector.interactableCredit += 50; break; } } } public static void Stage_ExtraObjects(orig_Start orig, SceneDirector self) { //IL_036f: 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_03e1: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0213: 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_0265: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Unknown result type (might be due to invalid IL or missing references) //IL_02b7: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02eb: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); if (!Object.op_Implicit((Object)(object)SceneInfo.instance)) { Debug.LogWarning((object)"How no SceneInfo.instance??"); } else if (SceneInfo.instance.sceneDef.baseSceneName.StartsWith("itmoon")) { ((Component)SceneInfo.instance).gameObject.AddComponent().newGravity = -20f; GameObject val = GameObject.Find("/HOLDER: Stage"); if (Object.op_Implicit((Object)(object)val)) { Vector3 localPosition = default(Vector3); ((Vector3)(ref localPosition))..ctor(7.2f, -1.08f, 0f); Vector3 localEulerAngles = default(Vector3); ((Vector3)(ref localEulerAngles))..ctor(270.0198f, 0f, 0f); Vector3 localScale = default(Vector3); ((Vector3)(ref localScale))..ctor(1f, 1f, 1f); Vector3 localScale2 = default(Vector3); ((Vector3)(ref localScale2))..ctor(1.774f, 0.32f, 1.774f); ((Component)val.transform.GetChild(1).GetChild(0)).gameObject.SetActive(true); for (int i = 0; i < val.transform.GetChild(1).GetChild(0).childCount; i++) { val.transform.GetChild(1).GetChild(0).GetChild(i) .localScale = localScale2; } ((Component)val.transform.GetChild(2).GetChild(0)).gameObject.SetActive(true); val.transform.GetChild(2).GetChild(0).localPosition = localPosition; val.transform.GetChild(2).GetChild(0).localEulerAngles = localEulerAngles; val.transform.GetChild(2).GetChild(0).localScale = localScale; ((Component)val.transform.GetChild(3).GetChild(0)).gameObject.SetActive(true); val.transform.GetChild(3).GetChild(0).localPosition = localPosition; val.transform.GetChild(3).GetChild(0).localEulerAngles = localEulerAngles; val.transform.GetChild(3).GetChild(0).localScale = localScale; ((Component)val.transform.GetChild(4).GetChild(0)).gameObject.SetActive(true); val.transform.GetChild(4).GetChild(0).localPosition = localPosition; val.transform.GetChild(4).GetChild(0).localEulerAngles = localEulerAngles; val.transform.GetChild(4).GetChild(0).localScale = localScale; ((Component)val.transform.GetChild(5).GetChild(0)).gameObject.SetActive(true); val.transform.GetChild(5).GetChild(0).localPosition = localPosition; val.transform.GetChild(5).GetChild(0).localEulerAngles = localEulerAngles; val.transform.GetChild(5).GetChild(0).localScale = localScale; } } else if (SceneInfo.instance.sceneDef.baseSceneName.StartsWith("itdampcave")) { GameObject val2 = GameObject.Find("/HOLDER: Geyser"); if (Object.op_Implicit((Object)(object)val2)) { ((Component)val2.transform.GetChild(4)).gameObject.SetActive(true); val2.transform.GetChild(4).position = new Vector3(-75.6025f, -182.2917f, -247.026f); ((Component)val2.transform.GetChild(5)).gameObject.SetActive(true); val2.transform.GetChild(5).position = new Vector3(46f, -179.5f, -59f); ((Component)val2.transform.GetChild(5).GetChild(2)).GetComponent().jumpVelocity = new Vector3(10f, 80f, -10f); } } else if (SceneInfo.instance.sceneDef.baseSceneName.StartsWith("itancientloft")) { GameObject val3 = GameObject.Find("/HOLDER: Terrain"); MeshRenderer component = ((Component)val3.transform.GetChild(6).GetChild(4)).GetComponent(); ((Renderer)component).materials = (Material[])(object)new Material[1] { ((Renderer)component).material }; } } public static void Enemies() { //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_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_005b: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0085: 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_009a: 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_00af: 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_00c4: 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_00d4: 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_00df: 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_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: 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_0104: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Expected O, but got Unknown //IL_010b: 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_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Expected O, but got Unknown //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0143: 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_015a: 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_0168: 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_0171: Expected O, but got Unknown //IL_0171: Unknown result type (might be due to invalid IL or missing references) //IL_0176: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Expected O, but got Unknown //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Expected O, but got Unknown //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0215: Unknown result type (might be due to invalid IL or missing references) //IL_021c: 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_0225: Expected O, but got Unknown //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Expected O, but got Unknown //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_028d: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Expected O, but got Unknown //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: 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_02bb: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02c9: 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_02d2: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Expected O, but got Unknown //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02f7: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Unknown result type (might be due to invalid IL or missing references) //IL_0305: 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_030e: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Expected O, but got Unknown //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0320: 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_0333: Unknown result type (might be due to invalid IL or missing references) //IL_033a: 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_0348: Unknown result type (might be due to invalid IL or missing references) //IL_034a: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Expected O, but got Unknown //IL_0351: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Unknown result type (might be due to invalid IL or missing references) //IL_035c: Unknown result type (might be due to invalid IL or missing references) //IL_0361: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_0376: Unknown result type (might be due to invalid IL or missing references) //IL_037d: Unknown result type (might be due to invalid IL or missing references) //IL_0384: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Expected O, but got Unknown //IL_038d: Unknown result type (might be due to invalid IL or missing references) //IL_0392: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03a9: Unknown result type (might be due to invalid IL or missing references) //IL_03b0: Unknown result type (might be due to invalid IL or missing references) //IL_03b7: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: Expected O, but got Unknown //IL_03c0: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: 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_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: Unknown result type (might be due to invalid IL or missing references) //IL_03ea: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Expected O, but got Unknown //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_03fe: Unknown result type (might be due to invalid IL or missing references) //IL_0403: Unknown result type (might be due to invalid IL or missing references) //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0418: Unknown result type (might be due to invalid IL or missing references) //IL_041f: Unknown result type (might be due to invalid IL or missing references) //IL_0426: Unknown result type (might be due to invalid IL or missing references) //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_042f: Expected O, but got Unknown //IL_042f: Unknown result type (might be due to invalid IL or missing references) //IL_0434: Unknown result type (might be due to invalid IL or missing references) //IL_043a: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_044d: Unknown result type (might be due to invalid IL or missing references) //IL_0454: Unknown result type (might be due to invalid IL or missing references) //IL_045b: Unknown result type (might be due to invalid IL or missing references) //IL_0462: Unknown result type (might be due to invalid IL or missing references) //IL_0464: Unknown result type (might be due to invalid IL or missing references) //IL_046b: Expected O, but got Unknown //IL_046b: Unknown result type (might be due to invalid IL or missing references) //IL_0470: Unknown result type (might be due to invalid IL or missing references) //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_048e: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Unknown result type (might be due to invalid IL or missing references) //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_049e: Expected O, but got Unknown //IL_049e: 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_04b3: Unknown result type (might be due to invalid IL or missing references) //IL_04ba: Unknown result type (might be due to invalid IL or missing references) //IL_04c1: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: 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_04d1: Expected O, but got Unknown //IL_04d1: Unknown result type (might be due to invalid IL or missing references) //IL_04d6: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: Unknown result type (might be due to invalid IL or missing references) //IL_04e1: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_04f6: Unknown result type (might be due to invalid IL or missing references) //IL_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0504: Unknown result type (might be due to invalid IL or missing references) //IL_0506: Unknown result type (might be due to invalid IL or missing references) //IL_050d: Expected O, but got Unknown //IL_050d: Unknown result type (might be due to invalid IL or missing references) //IL_0512: Unknown result type (might be due to invalid IL or missing references) //IL_0518: Unknown result type (might be due to invalid IL or missing references) //IL_051d: Unknown result type (might be due to invalid IL or missing references) //IL_052b: Unknown result type (might be due to invalid IL or missing references) //IL_0532: Unknown result type (might be due to invalid IL or missing references) //IL_0539: Unknown result type (might be due to invalid IL or missing references) //IL_0540: Unknown result type (might be due to invalid IL or missing references) //IL_0542: Unknown result type (might be due to invalid IL or missing references) //IL_0549: Expected O, but got Unknown //IL_0549: Unknown result type (might be due to invalid IL or missing references) //IL_054e: Unknown result type (might be due to invalid IL or missing references) //IL_0554: Unknown result type (might be due to invalid IL or missing references) //IL_0559: Unknown result type (might be due to invalid IL or missing references) //IL_0567: 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_0575: Unknown result type (might be due to invalid IL or missing references) //IL_057c: Unknown result type (might be due to invalid IL or missing references) //IL_057e: Unknown result type (might be due to invalid IL or missing references) //IL_0585: Expected O, but got Unknown //IL_0585: Unknown result type (might be due to invalid IL or missing references) //IL_058a: Unknown result type (might be due to invalid IL or missing references) //IL_0590: Unknown result type (might be due to invalid IL or missing references) //IL_0595: Unknown result type (might be due to invalid IL or missing references) //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Unknown result type (might be due to invalid IL or missing references) //IL_05b1: Unknown result type (might be due to invalid IL or missing references) //IL_05b8: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Expected O, but got Unknown //IL_05c1: Unknown result type (might be due to invalid IL or missing references) //IL_05c6: Unknown result type (might be due to invalid IL or missing references) //IL_05cc: Unknown result type (might be due to invalid IL or missing references) //IL_05d1: Unknown result type (might be due to invalid IL or missing references) //IL_05df: Unknown result type (might be due to invalid IL or missing references) //IL_05e6: Unknown result type (might be due to invalid IL or missing references) //IL_05ed: 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_05f6: Unknown result type (might be due to invalid IL or missing references) //IL_05fd: Expected O, but got Unknown //IL_05fd: Unknown result type (might be due to invalid IL or missing references) //IL_0602: Unknown result type (might be due to invalid IL or missing references) //IL_0608: Unknown result type (might be due to invalid IL or missing references) //IL_060d: Unknown result type (might be due to invalid IL or missing references) //IL_061b: Unknown result type (might be due to invalid IL or missing references) //IL_0622: Unknown result type (might be due to invalid IL or missing references) //IL_0629: Unknown result type (might be due to invalid IL or missing references) //IL_0630: Unknown result type (might be due to invalid IL or missing references) //IL_0632: Unknown result type (might be due to invalid IL or missing references) //IL_0639: Expected O, but got Unknown //IL_0739: Unknown result type (might be due to invalid IL or missing references) DirectorCardCategorySelection val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgolemplains/dccsITGolemplainsMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgoolake/dccsITGooLakeMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itancientloft/dccsITAncientLoftMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val4 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itfrozenwall/dccsITFrozenWallMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val5 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itdampcave/dccsITDampCaveMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val6 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itskymeadow/dccsITSkyMeadowMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val7 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itmoon/dccsITMoonMonsters.asset").WaitForCompletion(); DirectorCardCategorySelection val8 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgolemplains/dccsITGolemplainsMonstersDLC2.asset").WaitForCompletion(); DirectorCardCategorySelection val9 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itdampcave/dccsITDampCaveMonstersDLC2.asset").WaitForCompletion(); DirectorCardCategorySelection val10 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itskymeadow/dccsITSkyMeadowMonstersDLC2.asset").WaitForCompletion(); DirectorCard val11 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Bell/cscBell.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val12 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscElectricWorm"), preventOverhead = false, selectionWeight = 2, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val13 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscVulture"), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val14 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Gravekeeper/cscGravekeeper.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val15 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/GreaterWisp/cscGreaterWisp.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val16 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Golem/cscGolemSandy.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val17 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/AcidLarva/cscAcidLarva.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val18 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidBarnacle/cscVoidBarnacle.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)1 }; DirectorCard val19 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidBarnacle/cscVoidBarnacleNoCast.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)2 }; DirectorCard val20 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Nullifier/cscNullifier.asset").WaitForCompletion(), selectionWeight = 4, preventOverhead = true, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val21 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidJailer/cscVoidJailer.asset").WaitForCompletion(), selectionWeight = 3, preventOverhead = true, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val22 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidMegaCrab/cscVoidMegaCrab.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 3, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val23 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscMiniMushroom"), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val24 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscHermitCrab"), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val25 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/MajorAndMinorConstruct/cscMinorConstruct.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val26 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/MajorAndMinorConstruct/cscMegaConstruct.asset").WaitForCompletion(), selectionWeight = 2, preventOverhead = true, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val27 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscLemurianBruiser"), preventOverhead = false, selectionWeight = 2, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val28 = new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscJellyfish"), selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val29 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/RoboBallBoss/cscRoboBallBoss.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val30 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/RoboBallBoss/cscRoboBallMini.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val31 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC2/Child/cscChild.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val32 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Parent/cscParent.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val33 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Grandparent/cscGrandparent.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCard val34 = new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Bison/cscBison.asset").WaitForCompletion(), selectionWeight = 1, preventOverhead = false, minimumStageCompletions = 2, spawnDistance = (MonsterSpawnDistance)0 }; val.AddCard(0, val26); val.AddCard(2, val25); val.AddCard(2, val24); val.AddCard(0, val33); val.AddCard(1, val32); val.AddCard(1, val34); val8.categories[0].cards[0].minimumStageCompletions = 2; val8.AddCard(0, val31); val2.AddCard(1, val16); val2.AddCard(1, val17); val3.AddCard(1, val27); val3.AddCard(2, val28); val4.AddCard(0, val29); val4.AddCard(1, val30); val4.AddCard(2, val13); val4.categories[1].cards[2].selectionWeight = 2; val4.AddCard(0, val12); val5.AddCard(0, val14); val5.AddCard(1, val23); val5.AddCard(1, val17); val5.categories[2].cards[3].spawnDistance = (MonsterSpawnDistance)1; val5.AddCard(2, val24); val5.AddCard(0, val12); val9.categories[0].cards[0].minimumStageCompletions = 2; val6.AddCard(2, val11); val6.AddCard(1, val15); val6.categories[0].cards[1].selectionWeight = 2; val6.categories[1].cards[0].selectionWeight = 2; val10.categories[0].cards[0].selectionWeight = 2; val7.categories[0].selectionWeight = 3f; val7.AddCategory("Minibosses", 1f); val7.AddCard(1, val22); val7.AddCard(1, val20); val7.AddCard(1, val21); val7.AddCard(1, val19); val7.AddCard(1, val18); val7.categories[0].cards[0].selectionWeight = 4; val7.categories[0].cards[1].selectionWeight = 4; val7.categories[0].cards[1].selectionWeight = 3; } } public class SimulacrumDCCS_Drones { public static void SimulacrumDroneArtifactCategoryGlobal(int dr, int dr2) { //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_001e: Expected O, but got Unknown //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: 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_003b: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: 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_0058: Expected O, but got Unknown DirectorCard val = new DirectorCard { spawnCardReference = new AssetReferenceT("2eaec01927ea16245822dcb50080cba3"), selectionWeight = 3 }; DirectorCard val2 = new DirectorCard { spawnCardReference = new AssetReferenceT("5a86990b032424e48b4b8456f7d684c9"), selectionWeight = 3 }; DirectorCard val3 = new DirectorCard { spawnCardReference = new AssetReferenceT("d7e78d150bd132744934165e6471f5f6"), selectionWeight = 2 }; SimulacrumDCCS.dccsInfiniteTowerInteractables.AddCard(dr, val2); } public static void AddDroneRelatedToPrinter(DirectorCardCategorySelection dccs) { //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_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Expected O, but got Unknown //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown int num = dccs.FindCategoryIndexByName("Duplicator"); if (num != -1) { dccs.AddCard(num, new DirectorCard { spawnCardReference = new AssetReferenceT("d7e78d150bd132744934165e6471f5f6"), selectionWeight = 10 }); dccs.AddCard(num, new DirectorCard { spawnCardReference = new AssetReferenceT("2eaec01927ea16245822dcb50080cba3"), selectionWeight = 8 }); } } public static void SimulacrumDroneArtifactCategory(int dr) { //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_001e: Expected O, but got Unknown //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: 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_003b: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: 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_0058: Expected O, but got Unknown //IL_0058: 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_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Expected O, but got Unknown //IL_0075: 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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown //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_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Expected O, but got Unknown //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_0102: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Expected O, but got Unknown //IL_010b: 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_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Expected O, but got Unknown //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012e: 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_0147: Expected O, but got Unknown //IL_0147: 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_015c: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Expected O, but got Unknown //IL_0165: 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_017a: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Expected O, but got Unknown //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Expected O, but got Unknown //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: 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) //IL_01bf: Expected O, but got Unknown DirectorCard val = new DirectorCard { spawnCardReference = new AssetReferenceT("8c0ba07e91edbbd4fa573a6702b0e49f"), selectionWeight = 5 }; DirectorCard val2 = new DirectorCard { spawnCardReference = new AssetReferenceT("47129a0298c286f4bb01754a8aaa36b0"), selectionWeight = 5 }; DirectorCard val3 = new DirectorCard { spawnCardReference = new AssetReferenceT("81e6491f830f9c143bb5954640a383b1"), selectionWeight = 4 }; DirectorCard val4 = new DirectorCard { spawnCardReference = new AssetReferenceT("d304fff1f19d4184bb1f9444df3c0837"), selectionWeight = 5 }; DirectorCard val5 = new DirectorCard { spawnCardReference = new AssetReferenceT("d8aad1d9c0616c644869900039f7e3f3"), selectionWeight = 5 }; DirectorCard val6 = new DirectorCard { spawnCardReference = new AssetReferenceT("749e2ff7e1839074885efb0f82197ba7"), selectionWeight = 3 }; DirectorCard val7 = new DirectorCard { spawnCardReference = new AssetReferenceT("592ddd0e913440844b42eff65663abda"), selectionWeight = 3 }; DirectorCard val8 = new DirectorCard { spawnCardReference = new AssetReferenceT("690d26f2cae4e394184aec7506e4884d"), selectionWeight = 3 }; DirectorCard val9 = new DirectorCard { spawnCardReference = new AssetReferenceT("36f38da2d5e04e44abb4f5ed9788bad9"), selectionWeight = 3 }; DirectorCard val10 = new DirectorCard { spawnCardReference = new AssetReferenceT("4e0d52fe3545f474b9076987b6ac92ec"), selectionWeight = 3 }; DirectorCard val11 = new DirectorCard { spawnCardReference = new AssetReferenceT("5b6dafbe8f6447e49a151e62961f9f77"), selectionWeight = 3 }; DirectorCard val12 = new DirectorCard { spawnCardReference = new AssetReferenceT("f92a522e57b907d4b8585b495e706636"), selectionWeight = 3 }; DirectorCard val13 = new DirectorCard { spawnCardReference = new AssetReferenceT("1439f6d216991ee469049c5ab7aff52e"), selectionWeight = 1 }; DirectorCard val14 = new DirectorCard { spawnCardReference = new AssetReferenceT("f6970c1e4b273ea4ca332eb714b8801d"), selectionWeight = 1 }; DirectorCard val15 = new DirectorCard { spawnCardReference = new AssetReferenceT("384bcd7226702fd45a431a2795ff3d01"), selectionWeight = 1 }; SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val2); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val3); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val4); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val5); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val9); SimulacrumDCCS.dccsITGolemPlainsInteractablesW.AddCard(dr, val12); SimulacrumDCCS.dccsITGooLakeInteractablesW.AddCard(dr, val); SimulacrumDCCS.dccsITGooLakeInteractablesW.AddCard(dr, val2); SimulacrumDCCS.dccsITGooLakeInteractablesW.AddCard(dr, val3); SimulacrumDCCS.dccsITGooLakeInteractablesW.AddCard(dr, val6); SimulacrumDCCS.dccsITAncientLoftInteractablesW.AddCard(dr, val4); SimulacrumDCCS.dccsITAncientLoftInteractablesW.AddCard(dr, val7); SimulacrumDCCS.dccsITAncientLoftInteractablesW.AddCard(dr, val8); SimulacrumDCCS.dccsITFrozenWallInteractablesW.AddCard(dr, val13); SimulacrumDCCS.dccsITFrozenWallInteractablesW.AddCard(dr, val14); SimulacrumDCCS.dccsITFrozenWallInteractablesW.AddCard(dr, val12); SimulacrumDCCS.dccsITFrozenWallInteractablesW.AddCard(dr, val5); SimulacrumDCCS.dccsITFrozenWallInteractablesW.AddCard(dr, val); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val15); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val7); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val9); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val8); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val11); SimulacrumDCCS.dccsITDampCaveInteractablesW.AddCard(dr, val6); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val15); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val14); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val8); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val2); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val5); SimulacrumDCCS.dccsITSkyMeadowInteractablesW.AddCard(dr, val6); SimulacrumDCCS.dccsITMoonInteractablesW.AddCard(dr, val13); SimulacrumDCCS.dccsITMoonInteractablesW.AddCard(dr, val14); SimulacrumDCCS.dccsITMoonInteractablesW.AddCard(dr, val10); SimulacrumDCCS.dccsITMoonInteractablesW.AddCard(dr, val11); } } public class VoidCoin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static IsAffordableDelegate <>9__8_0; public static PayCostDelegate <>9__8_1; internal bool b__8_0(CostTypeDef costTypeDef, IsAffordableContext context) { //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_001c: 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) return CostTypeCatalog.GetCostTypeDef((CostTypeIndex)14).IsAffordable(1, context.activator) || CostTypeCatalog.GetCostTypeDef((CostTypeIndex)2).IsAffordable(context.cost, context.activator); } internal void b__8_1(PayCostContext context, PayCostResults result) { if (Object.op_Implicit((Object)(object)context.activatorMaster) && context.activatorMaster.voidCoins != 0) { CharacterMaster activatorMaster = context.activatorMaster; activatorMaster.voidCoins -= 1; } else { CostTypeCatalog.GetCostTypeDef((CostTypeIndex)2).PayCost(context, result); } } } public static CostTypeDef CostTypeVoidCoinBlood; public static CostTypeIndex CostIndexVoidCoinBlood; public static void MakeVoidCoin() { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_005e: 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_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) CostTypeCatalog.modHelper.getAdditionalEntries += addVoidBloodCost; PlayerCharacterMasterController.Start += new hook_Start(StartWithOneVoidCoin); ExplicitPickupDropTable val = LegacyResourcesAPI.Load("DropTables/dtVoidCoin"); val.entries = (StringEntry[])(object)new StringEntry[1] { new StringEntry { pickupName = "MiscPickupIndex.VoidCoin", pickupWeight = 1f } }; GameObject val2 = LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidCoinBarrel"); ChestBehavior val3 = val2.AddComponent(); val3.dropTable = (PickupDropTable)(object)val; val3.dropTransform = ((Component)val2.transform.GetChild(0)).GetComponent().FindChild("Bulb"); val3.dropUpVelocityStrength = 20f; ((Behaviour)val3).enabled = false; PurchaseInteraction component = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSuppressor/VoidSuppressor.prefab").WaitForCompletion().GetComponent(); component.costType = (CostTypeIndex)0; component.cost = 1; } [SystemInitializer(new Type[] { typeof(CostTypeCatalog) })] private static void getCostTypeIndex() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) for (int i = 14; i < CostTypeCatalog.costTypeCount; i++) { CostTypeDef costTypeDef = CostTypeCatalog.GetCostTypeDef((CostTypeIndex)i); if (costTypeDef == CostTypeVoidCoinBlood) { CostIndexVoidCoinBlood = (CostTypeIndex)i; } } } private static void StartWithOneVoidCoin(orig_Start orig, PlayerCharacterMasterController self) { orig.Invoke(self); if (WConfig.cfgVoidCoins.Value && NetworkServer.active && Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { self.master.GiveVoidCoins(1u); VoidCoinChance voidCoinChance = ((Component)self).gameObject.AddComponent(); float num = 1f + (float)(Run.instance.participatingPlayerCount - 1) * 0.2f; voidCoinChance.chance /= num; } } public static void VoidCoinRunStart() { //IL_003a: 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_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_0075: 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_0025: Unknown result type (might be due to invalid IL or missing references) PurchaseInteraction component = LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidChest").GetComponent(); if (component.cost > 0) { component.costType = CostIndexVoidCoinBlood; } LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidTriple").GetComponent().costType = CostIndexVoidCoinBlood; ((Behaviour)LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidCoinBarrel").GetComponent()).enabled = true; GameObject val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSuppressor/VoidSuppressor.prefab").WaitForCompletion(); val.GetComponent().costType = (CostTypeIndex)14; val.GetComponent().costMultiplierPerPurchase = 0f; GlobalEventManager.onCharacterDeathServer += DropVoidCoin; } public static void VoidCoinRunEnd() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0026: 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_004b: 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) LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidChest").GetComponent().costType = (CostTypeIndex)2; LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidTriple").GetComponent().costType = (CostTypeIndex)2; ((Behaviour)LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/Chest/VoidCoinBarrel").GetComponent()).enabled = false; Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSuppressor/VoidSuppressor.prefab").WaitForCompletion().GetComponent() .costType = (CostTypeIndex)0; GlobalEventManager.onCharacterDeathServer -= DropVoidCoin; } private static void DropVoidCoin(DamageReport damageReport) { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004b: 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_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_0066: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0083: 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_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) CharacterMaster attackerMaster = damageReport.attackerMaster; if (Object.op_Implicit((Object)(object)attackerMaster)) { VoidCoinChance component = ((Component)attackerMaster).GetComponent(); if (Object.op_Implicit((Object)(object)component) && Util.CheckRoll(component.chance, 0f, (CharacterMaster)null)) { CreatePickupInfo val = new CreatePickupInfo { rotation = Quaternion.identity }; ((CreatePickupInfo)(ref val)).pickup = new UniquePickup(PickupCatalog.FindPickupIndex(MiscPickups.VoidCoin.miscPickupIndex)); val.position = ((Component)damageReport.victim).transform.position; PickupDropletController.CreatePickupDroplet(val, ((Component)damageReport.victim).transform.position, Vector3.up * 25f); component.chance *= component.mult; } } } internal static void addVoidBloodCost(List obj) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Expected O, but got Unknown //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown CostTypeVoidCoinBlood = new CostTypeDef(); CostTypeVoidCoinBlood.costStringFormatToken = "COST_VOIDCOINBLOOD_FORMAT"; CostTypeVoidCoinBlood.colorIndex = (ColorIndex)26; CostTypeVoidCoinBlood.saturateWorldStyledCostString = false; CostTypeVoidCoinBlood.darkenWorldStyledCostString = true; CostTypeDef costTypeVoidCoinBlood = CostTypeVoidCoinBlood; object obj2 = <>c.<>9__8_0; if (obj2 == null) { IsAffordableDelegate val = (CostTypeDef costTypeDef, IsAffordableContext context) => CostTypeCatalog.GetCostTypeDef((CostTypeIndex)14).IsAffordable(1, context.activator) || CostTypeCatalog.GetCostTypeDef((CostTypeIndex)2).IsAffordable(context.cost, context.activator); <>c.<>9__8_0 = val; obj2 = (object)val; } costTypeVoidCoinBlood.isAffordable = (IsAffordableDelegate)obj2; CostTypeDef costTypeVoidCoinBlood2 = CostTypeVoidCoinBlood; object obj3 = <>c.<>9__8_1; if (obj3 == null) { PayCostDelegate val2 = delegate(PayCostContext context, PayCostResults result) { if (Object.op_Implicit((Object)(object)context.activatorMaster) && context.activatorMaster.voidCoins != 0) { CharacterMaster activatorMaster = context.activatorMaster; activatorMaster.voidCoins -= 1; } else { CostTypeCatalog.GetCostTypeDef((CostTypeIndex)2).PayCost(context, result); } }; <>c.<>9__8_1 = val2; obj3 = (object)val2; } costTypeVoidCoinBlood2.payCost = (PayCostDelegate)obj3; CostIndexVoidCoinBlood = (CostTypeIndex)(CostTypeCatalog.costTypeDefs.Length + obj.Count); obj.Add(CostTypeVoidCoinBlood); } } public class VoidCoinChance : MonoBehaviour { public float chance = 1f; public float mult = 0.6f; public int coinsRemaining = 5; } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Wolfo.SimulacrumAdditions", "SimulacrumAdditions", "2.6.7")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] public class SimuMain : BaseUnityPlugin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_HasFullProgress <>9__0_0; internal bool b__0_0(orig_HasFullProgress orig, InfiniteTowerWaveController self) { if (self._totalCreditsSpent == 0f) { return false; } return orig.Invoke(self); } } public void Awake() { //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Expected O, but got Unknown //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Expected O, but got Unknown //IL_014b: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Expected O, but got Unknown //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Expected O, but got Unknown Assets.Init(((BaseUnityPlugin)this).Info); WConfig.InitConfig(); if (WConfig.cfgDumpInfo.Value) { DumpAllWaveInfo(Constant.ITBasicWaves); DumpAllWaveInfo(Constant.ITBossWaves); } ItemHelpers.MakeItems(); Constant.MakeValues(); SimuChanges(); WavesMain.Start(); GiantGup.Start(); SuperMegaCrab.Start(); ITRun_Hooks.AddHooks(); Wave_Hooks.AddHooks(); VoidSafeWard_Hooks.AddHooks(); Hooks_Other.AddHooks(); ((ResourceAvailability)(ref GameModeCatalog.availability)).CallWhenAvailable((Action)LateRunningMethod); ArtifactTweaks.Main(); Artifact_OnlyAugments.MakeArtifact(); Artifact_RealStages.MakeArtifact(); Artifact_SimuDrones.MakeArtifact(); VoidCoin.MakeVoidCoin(); SceneDirector.Start += new hook_Start(SimulacrumDCCS.Stage_ExtraObjects); InfiniteTowerRun.OnPrePopulateSceneServer += new hook_OnPrePopulateSceneServer(SimulacrumDCCS.SimuInteractableDCCSAdder); if (WConfig.cfgSimuCreditsRebalance.Value) { InfiniteTowerRun.OnPrePopulateSceneServer += new hook_OnPrePopulateSceneServer(SimulacrumDCCS.CreditsRebalance); } Addressables.LoadAssetAsync((object)"RoR2/Base/DuplicatorWild/dtDuplicatorWild.asset").WaitForCompletion().bannedItemTags = (ItemTag[])(object)new ItemTag[0]; Run.BuildDropTable += new hook_BuildDropTable(SimuDropTableEdits); object obj = <>c.<>9__0_0; if (obj == null) { hook_HasFullProgress val = (orig_HasFullProgress orig, InfiniteTowerWaveController self) => self._totalCreditsSpent != 0f && orig.Invoke(self); <>c.<>9__0_0 = val; obj = (object)val; } InfiniteTowerWaveController.HasFullProgress += (hook_HasFullProgress)obj; MainMenuController.Start += new hook_Start(OneTimeLateRunner); Material val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/ancientloft/matAncientLoft_Water.mat").WaitForCompletion(); val2.SetTextureScale("_FoamTex", new Vector2(20f, 20f)); } private void SimuDropTableEdits(orig_BuildDropTable orig, Run self) { //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); if (!(self is InfiniteTowerRun)) { return; } if (RunArtifactManager.instance.IsArtifactEnabled(Artifact_SimuDrones.ArtifactDef)) { if (self.IsExpansionEnabled(DLCS.DLC1)) { } if (!self.IsExpansionEnabled(DLCS.DLC3)) { } } self.availableBossDropList.Add(PickupCatalog.FindPickupIndex(Items.Pearl.itemIndex)); } public void Start() { SimulacrumDCCS.Start(); CrabActivateToTravel.Make(); WConfig.RiskConfig(); } private void OneTimeLateRunner(orig_Start orig, MainMenuController self) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_0020: 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_004a: 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_0065: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); MainMenuController.Start -= new hook_Start(OneTimeLateRunner); CharacterSpawnCard val = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/ScavLunar/cscScavLunar.asset").WaitForCompletion()); ((Object)val).name = "cscScavLunarIT"; val.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[1] { new ItemCountPair { itemDef = Items.AdaptiveArmor, count = 1 } }; Waves_SuperBoss.WaveBoss_ScavLunar.GetComponent().spawnList[0].spawnCard = val; LocalUser firstLocalUser = LocalUserManager.GetFirstLocalUser(); if (firstLocalUser != null && firstLocalUser.userProfile != null) { if (firstLocalUser.userProfile.HasAchievement("GIANT_GUP_ACHIEVEMENT")) { firstLocalUser.userProfile.AddUnlockToken("Logs.GupGiantBody.0"); } if (firstLocalUser.userProfile.HasAchievement("VOIDSUPERMEGACRAB_ACHIEVEMENT")) { firstLocalUser.userProfile.AddUnlockToken("Logs.VoidSuperMegaCrabBody.0"); } } } public static void LateRunningMethod() { WavesMain.LateChanges(); Constant.Late_MakeValues(); AutoConfig.InitConfig(); AutoConfig.ApplyConfig(); Items.BoostHp.hidden = true; if (WConfig.cfgDumpInfo.Value) { DumpAllWaveInfo(Constant.ITBasicWaves); DumpAllWaveInfo(Constant.ITBossWaves); DumpAllWaveInfo(Constant.ITSuperBossWaves); DumpAllWaveInfo(Constant.ITModSupportWaves); } } public static void SimuChanges() { //IL_001f: 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_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_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005b: 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_006f: 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_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //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_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: 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) if (WConfig.cfgMusicChanges.Value) { SceneDef val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgolemplains/itgolemplains.asset").WaitForCompletion(); SceneDef val2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itgoolake/itgoolake.asset").WaitForCompletion(); SceneDef val3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itfrozenwall/itfrozenwall.asset").WaitForCompletion(); SceneDef val4 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itdampcave/itdampcave.asset").WaitForCompletion(); SceneDef val5 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/itmoon/itmoon.asset").WaitForCompletion(); MusicTrackDef mainTrack = Addressables.LoadAssetAsync((object)"RoR2/Base/Common/MusicTrackDefs/muSong08.asset").WaitForCompletion(); MusicTrackDef val6 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/muGameplayDLC1_08.asset").WaitForCompletion(); MusicTrackDef mainTrack2 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/muGameplayDLC1_03.asset").WaitForCompletion(); MusicTrackDef bossTrack = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/muBossfightDLC1_12.asset").WaitForCompletion(); MusicTrackDef bossTrack2 = Addressables.LoadAssetAsync((object)"RoR2/Base/Common/MusicTrackDefs/muSong22.asset").WaitForCompletion(); MusicTrackDef bossTrack3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/muMenuDLC1.asset").WaitForCompletion(); val.mainTrack = mainTrack; val3.mainTrack = mainTrack2; val2.bossTrack = bossTrack; val3.bossTrack = bossTrack2; val5.bossTrack = bossTrack3; } } public static void DumpAllWaveInfo(InfiniteTowerWaveCategory category) { Debug.Log((object)""); Debug.Log((object)("All Simulacrum Waves : " + ((Object)category).name)); for (int i = 0; i < category.wavePrefabs.Length; i++) { string text = "\n" + Language.GetString(((Component)category.wavePrefabs[i].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token) + "\n" + Language.GetString(((Component)category.wavePrefabs[i].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token); Debug.Log((object)text); } Debug.Log((object)""); Debug.Log((object)""); float num = 0f; float num2 = 0f; float num3 = 0f; for (int j = 0; j < category.wavePrefabs.Length; j++) { num += category.wavePrefabs[j].weight; string text2 = "Credits: " + category.wavePrefabs[j].wavePrefab.GetComponent().baseCredits; if (category.wavePrefabs[j].wavePrefab.GetComponent().linearCreditsPerWave > 0f) { text2 = text2 + " + " + category.wavePrefabs[j].wavePrefab.GetComponent().linearCreditsPerWave + " * Wave"; } string text3 = "DropTable: " + ((Object)category.wavePrefabs[j].wavePrefab.GetComponent().rewardDropTable).name; if (Object.op_Implicit((Object)(object)category.wavePrefabs[j].wavePrefab.GetComponent()) && Object.op_Implicit((Object)(object)category.wavePrefabs[j].wavePrefab.GetComponent().rewardDropTable)) { text3 = text3 + " + " + ((Object)category.wavePrefabs[j].wavePrefab.GetComponent().rewardDropTable).name; } string text4 = "Prerequesites: "; if (Object.op_Implicit((Object)(object)category.wavePrefabs[j].prerequisites)) { text4 += ((Object)category.wavePrefabs[j].prerequisites).name; } string text5 = "\n [" + j + "] " + ((Object)category.wavePrefabs[j].wavePrefab).name + "\n" + Language.GetString(((Component)category.wavePrefabs[j].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token) + "\n" + Language.GetString(((Component)category.wavePrefabs[j].wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token) + "\nWeight: " + category.wavePrefabs[j].weight + "\n" + text2 + "\nImmediate: " + category.wavePrefabs[j].wavePrefab.GetComponent().immediateCreditsFraction + "\nWaveSeconds: " + category.wavePrefabs[j].wavePrefab.GetComponent().wavePeriodSeconds + "\n" + text3 + "\n" + text2 + "\n" + text4; if ((Object)(object)category.wavePrefabs[j].wavePrefab.GetComponent().monsterCards != (Object)null) { text5 = text5 + "\nMonsterCards: " + ((Object)category.wavePrefabs[j].wavePrefab.GetComponent().monsterCards).name; } Debug.Log((object)text5); if (category.wavePrefabs[j].prerequisites is InfiniteTowerWaveCountPrerequisites && ((InfiniteTowerWaveCountPrerequisites)/*isinst with value type is only supported in some contexts*/).minimumWaveCount < 11) { num2 += category.wavePrefabs[j].weight; } if (category.wavePrefabs[j].prerequisites is InfiniteTowerWaveCountPrerequisites && ((InfiniteTowerWaveCountPrerequisites)/*isinst with value type is only supported in some contexts*/).minimumWaveCount < 30) { num3 += category.wavePrefabs[j].weight; } if ((Object)(object)category.wavePrefabs[j].prerequisites == (Object)null || category.wavePrefabs[j].prerequisites is InfiniteTowerWaveArtifactPrerequisites) { num2 += category.wavePrefabs[j].weight; num3 += category.wavePrefabs[j].weight; } } float weight = category.wavePrefabs[0].weight; float weight2 = category.wavePrefabs[0].weight; Debug.Log((object)("Total " + ((Object)category).name + " Weight pre 10: " + num2 + " Extra Weight: " + (num2 - weight2) + " Percent for Default: " + weight2 / num2)); Debug.Log((object)("Total " + ((Object)category).name + " Weight pre 30: " + num3 + " Extra Weight: " + (num3 - weight2) + " Percent for Default: " + weight2 / num3)); weight2 = weight * Constant.DefaultWeightMultiplier1; num -= weight2; Debug.Log((object)("Total " + ((Object)category).name + " Weight post 30: " + num + " Extra Weight: " + (num - weight2) + " Percent for Default: " + weight2 / num)); weight2 = weight * Constant.DefaultWeightMultiplier2; num -= weight * (Constant.DefaultWeightMultiplier2 - Constant.DefaultWeightMultiplier1); Debug.Log((object)("Total " + ((Object)category).name + " Weight post 50: " + num + " Extra Weight: " + (num - weight2) + " Percent for Default: " + weight2 / num)); } } public class SimulacrumPulseWave : MonoBehaviour { private TeamFilter teamFilter; private EntityStateMachine stateMachine; public TeamIndex affectedTeam = (TeamIndex)1; public GameObject pulsePrefab; public BuffDef buffDef; public float buffDuration = 1.5f; public float baseForce = 7000f; public float pulseInterval = 1f; private void OnEnable() { //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00df: 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) if ((Object)(object)teamFilter == (Object)null) { teamFilter = ((Component)this).gameObject.AddComponent(); } teamFilter.teamIndex = affectedTeam; MoonBatteryDesignActive.buffDef = buffDef; MoonBatteryDesignActive.buffDuration = buffDuration; MoonBatteryDesignActive.baseForce = baseForce; MoonBatteryDesignActive.pulseInterval = pulseInterval; MoonBatteryDesignActive.pulsePrefab = pulsePrefab; Run instance = Run.instance; GameObject gameObject = ((Component)((InfiniteTowerRun)((instance is InfiniteTowerRun) ? instance : null)).safeWardController).gameObject; ((Component)this).gameObject.transform.position = gameObject.transform.GetChild(2).GetChild(0).position; if (!Object.op_Implicit((Object)(object)stateMachine)) { stateMachine = ((Component)this).gameObject.AddComponent(); PulseWaveState pulseWaveState = new PulseWaveState(); stateMachine.initialStateType = default(SerializableEntityStateType); stateMachine.mainStateType = default(SerializableEntityStateType); ((MoonBatteryDesignActive)pulseWaveState).teamFilter = teamFilter; stateMachine.SetState((EntityState)(object)pulseWaveState); } } public void RemovePulse() { ((Behaviour)stateMachine).enabled = false; } private void OnDisable() { MoonBatteryDesignActive.pulsePrefab = LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/MoonBatteryDesignPulse"); MoonBatteryDesignActive.buffDef = Buffs.Cripple; MoonBatteryDesignActive.buffDuration = 1.5f; MoonBatteryDesignActive.baseForce = 7000f; MoonBatteryDesignActive.pulseInterval = 1f; } } public class PulseWaveState : MoonBatteryDesignActive { public override void OnEnter() { ref HoldoutZoneController holdoutZoneController = ref ((MoonBatteryActive)this).holdoutZoneController; Run instance = Run.instance; holdoutZoneController = ((Component)((InfiniteTowerRun)((instance is InfiniteTowerRun) ? instance : null)).safeWardController).gameObject.GetComponent(); if ((Object)(object)base.teamFilter == (Object)null) { base.teamFilter = ((EntityState)this).GetComponent(); } base.pulseTimer = 3f; } public override void Update() { ((EntityState)this).age = ((EntityState)this).age + Time.deltaTime; } public override void FixedUpdate() { ((EntityState)this).fixedAge = ((EntityState)this).fixedAge + ((EntityState)this).GetDeltaTime(); if (NetworkServer.active) { base.pulseTimer -= ((EntityState)this).GetDeltaTime(); if (base.pulseTimer < 0f) { base.pulseTimer = MoonBatteryDesignActive.pulseInterval; ((MoonBatteryDesignActive)this).CreatePulseServer(); } } } public override void OnExit() { } } public static class ItemHelpers { public static ItemDef Ghost = LegacyResourcesAPI.Load("ItemDefs/Ghost"); public static ItemDef HealthDecay = LegacyResourcesAPI.Load("ItemDefs/HealthDecay"); public static ItemDef AACannon = LegacyResourcesAPI.Load("ItemDefs/AACannon"); public static ItemDef ITDamageDownMult; public static ItemDef ITAttackSpeedDownMult; public static ItemDef ITHealthUpMult; public static ItemDef ITKillOnCompletion; public static ItemDef ITHorrorName; public static ItemDef ITCooldownUp; public static ItemDef ITMakeDudeInvisible; public static ItemDef ITDisableAllSkills; public static ItemDef ITDisableMovement; public static ItemDef ITMakeImmune; public static ItemDef Make(string name) { //IL_0034: 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: Expected O, but got Unknown ItemDef val = ScriptableObject.CreateInstance(); ((Object)val).name = name; val.nameToken = name; val.pickupToken = name; val.descriptionToken = name; val.hidden = true; val.canRemove = false; val.deprecatedTier = (ItemTier)5; val.pickupIconSprite = AACannon.pickupIconSprite; val.pickupModelPrefab = AACannon.pickupModelPrefab; ItemAPI.Add(new CustomItem(val, Array.Empty())); return val; } public static void MakeItems() { //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Expected O, but got Unknown //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: 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_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Expected O, but got Unknown ITDamageDownMult = Make("ITDamageDownMult"); ITAttackSpeedDownMult = Make("ITAttackSpeedDownMult"); ITHealthUpMult = Make("ITHealthUpMult"); ITKillOnCompletion = Make("ITKillsThisGuy"); ITCooldownUp = Make("ITCooldownUp"); ITHorrorName = Make("ITHorrorName"); ITMakeDudeInvisible = Make("ITMakeDudeInvisible"); ITDisableAllSkills = Make("ITDisableAllSkills"); ITDisableMovement = Make("ITDisableMovement"); ITMakeImmune = Make("ITMakeImmune"); Util.GetBestBodyName += new hook_GetBestBodyName(HorrorName); CharacterBody.RecalculateStats += new hook_RecalculateStats(CharacterBody_RecalculateStats); CharacterBody.OnInventoryChanged += new hook_OnInventoryChanged(CharacterBody_OnInventoryChanged); CharacterBody.RecalculateStats += new Manipulator(IL_CharacterBody_RecalculateStats); } private static void CharacterBody_OnInventoryChanged(orig_OnInventoryChanged orig, CharacterBody self) { //IL_0027: 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) orig.Invoke(self); if (self.inventory.GetItemCountPermanent(ITDisableMovement) > 0) { self.SetBuffCount(Buffs.Nullified.buffIndex, 1); } if (self.inventory.GetItemCountPermanent(ITMakeImmune) > 0) { self.SetBuffCount(Buffs.Immune.buffIndex, 1); } if (self.inventory.GetItemCountPermanent(ITDisableAllSkills) > 0) { GenericSkill primary = self.skillLocator.primary; if ((Object)(object)primary != (Object)null) { primary.SetSkillOverride((object)self, CommonAssets.disabledSkill, (SkillOverridePriority)4); } GenericSkill secondary = self.skillLocator.secondary; if ((Object)(object)secondary != (Object)null) { secondary.SetSkillOverride((object)self, CommonAssets.disabledSkill, (SkillOverridePriority)4); } GenericSkill utility = self.skillLocator.utility; if ((Object)(object)utility != (Object)null) { utility.SetSkillOverride((object)self, CommonAssets.disabledSkill, (SkillOverridePriority)4); } GenericSkill special = self.skillLocator.special; if ((Object)(object)special != (Object)null) { special.SetSkillOverride((object)self, CommonAssets.disabledSkill, (SkillOverridePriority)4); } } if (self.inventory.GetItemCountPermanent(ITHorrorName) > 0) { self.master.aiComponents[0].fullVision = true; self.master.aiComponents[0].xrayVision = true; self.master.aiComponents[0].ignoreFliers = true; } } private static string HorrorName(orig_GetBestBodyName orig, GameObject bodyObject) { if (Object.op_Implicit((Object)(object)bodyObject)) { CharacterBody component = bodyObject.GetComponent(); if (Object.op_Implicit((Object)(object)component) && Object.op_Implicit((Object)(object)component.inventory) && component.inventory.GetItemCountPermanent(ITHorrorName) > 0) { return Language.GetString("HORROR_BODY_NAME"); } } return orig.Invoke(bodyObject); } private static void CharacterBody_RecalculateStats(orig_RecalculateStats orig, CharacterBody self) { orig.Invoke(self); if (!Object.op_Implicit((Object)(object)self.inventory)) { return; } int itemCountPermanent = self.inventory.GetItemCountPermanent(ITDamageDownMult); if (itemCountPermanent > 0) { self.damage *= 1f - 0.01f * (float)itemCountPermanent; } int itemCountPermanent2 = self.inventory.GetItemCountPermanent(ITAttackSpeedDownMult); if (itemCountPermanent2 > 0) { self.attackSpeed *= 1f - 0.01f * (float)itemCountPermanent2; int itemCountPermanent3 = self.inventory.GetItemCountPermanent(ITKillOnCompletion); if (itemCountPermanent3 == 54) { self.healthComponent.Networkhealth = self.maxHealth * 0.45f; } if (itemCountPermanent3 == 56) { self.skillLocator.primary = null; self.AddBuff(Buffs.Cloak); } if (itemCountPermanent3 > 77) { self.baseMoveSpeed = 0f; self.moveSpeed = 0f; self.skillLocator.primary = null; if (itemCountPermanent3 > 78) { self.AddBuff(Buffs.Cloak); if (itemCountPermanent3 == 81 && !Object.op_Implicit((Object)(object)((Component)self.master).gameObject.GetComponent())) { ((Component)self.master).gameObject.AddComponent().lifeTimer = 0.1f; } } } } float num = self.inventory.GetItemCountPermanent(ITCooldownUp); if (num > 0f) { if (Object.op_Implicit((Object)(object)self.skillLocator.primary)) { GenericSkill primary = self.skillLocator.primary; primary.cooldownScale *= 1f + num / 10f; } if (Object.op_Implicit((Object)(object)self.skillLocator.secondaryBonusStockSkill)) { GenericSkill secondaryBonusStockSkill = self.skillLocator.secondaryBonusStockSkill; secondaryBonusStockSkill.cooldownScale *= 1f + num / 10f; } if (Object.op_Implicit((Object)(object)self.skillLocator.utilityBonusStockSkill)) { GenericSkill utilityBonusStockSkill = self.skillLocator.utilityBonusStockSkill; utilityBonusStockSkill.cooldownScale *= 1f + num / 10f; } if (Object.op_Implicit((Object)(object)self.skillLocator.specialBonusStockSkill)) { GenericSkill specialBonusStockSkill = self.skillLocator.specialBonusStockSkill; specialBonusStockSkill.cooldownScale *= 1f + num / 10f; } } if (self.HasBuff(Waves_BuffRelated.bdSlippery)) { self.acceleration /= 7.5f; self.moveSpeed *= 1.5f; } if (self.HasBuff(Waves_BuffRelated.bdBadLuck)) { self.master.luck = -3f; } } private static void IL_CharacterBody_RecalculateStats(ILContext il) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown ILCursor val = new ILCursor(il); if (val.TryGotoNext((MoveType)0, new Func[1] { (Instruction x) => ILPatternMatchingExt.MatchCall(x, "RoR2.CharacterBody", "set_maxBarrier") })) { val.TryGotoPrev((MoveType)2, new Func[1] { (Instruction x) => ILPatternMatchingExt.MatchLdarg(x, 0) }); val.EmitDelegate>((Func)delegate(CharacterBody body) { if (Object.op_Implicit((Object)(object)body.inventory)) { int itemCountPermanent = body.inventory.GetItemCountPermanent(ITHealthUpMult); if (itemCountPermanent > 0) { body.maxHealth *= 1f + 0.01f * (float)itemCountPermanent; body.maxShield *= 1f + 0.01f * (float)itemCountPermanent; } } return body; }); } else { Debug.LogWarning((object)"IL Failed : IL.RoR2.CharacterBody.RecalculateStats"); } } } public class MakeMultiCSCs { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_OnEnter <>9__2_0; public static hook_OnEnter <>9__2_1; internal void b__2_0(orig_OnEnter orig, ChannelSunStart self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)((EntityState)self).characterBody) && Object.op_Implicit((Object)(object)((EntityState)self).characterBody.inventory) && ((EntityState)self).characterBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.duration *= 2f; ((EntityState)self).PlayAnimation(ChannelSunStart.animLayerName, ChannelSunStart.animStateName, ChannelSunStart.animPlaybackRateParam, self.duration, 0f); } } internal void b__2_1(orig_OnEnter orig, ChargeMegaNova self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)((EntityState)self).characterBody) && Object.op_Implicit((Object)(object)((EntityState)self).characterBody.inventory) && ((EntityState)self).characterBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.duration *= 1.25f; ((EntityState)self).PlayCrossfade("Gesture, Override", "ChargeMegaNova", "ChargeMegaNova.playbackRate", self.duration, 0.3f); } } } public static void CreateGhostSpawnCards() { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0055: 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_0060: 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_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: 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_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: 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_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_02bb: 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_02d7: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: 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_0305: Unknown result type (might be due to invalid IL or missing references) //IL_031f: Unknown result type (might be due to invalid IL or missing references) //IL_0321: Unknown result type (might be due to invalid IL or missing references) //IL_032a: Unknown result type (might be due to invalid IL or missing references) //IL_0344: Unknown result type (might be due to invalid IL or missing references) //IL_0346: Unknown result type (might be due to invalid IL or missing references) //IL_034f: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Unknown result type (might be due to invalid IL or missing references) //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_0374: 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_0390: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03b3: Unknown result type (might be due to invalid IL or missing references) //IL_03b5: Unknown result type (might be due to invalid IL or missing references) //IL_03be: Unknown result type (might be due to invalid IL or missing references) //IL_03d8: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: Unknown result type (might be due to invalid IL or missing references) //IL_03fd: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) CharacterSpawnCard val = ScriptableObject.CreateInstance(); ((SpawnCard)val).prefab = ((SpawnCard)Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidJailer/cscVoidJailer.asset").WaitForCompletion()).prefab; ((Object)val).name = "cscITGhostVoidJailer"; val.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[7] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 40 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 30 } }; MultiCharacterSpawnCard val2 = ScriptableObject.CreateInstance(); val2.masterPrefabs = (GameObject[])(object)new GameObject[1] { ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscLemurianBruiser")).prefab }; ((Object)val2).name = "cscITGhostBasicSlow"; ((CharacterSpawnCard)val2).itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[6] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = Items.HalfSpeedDoubleHealth, count = 1 } }; MultiCharacterSpawnCard val3 = ScriptableObject.CreateInstance(); val3.masterPrefabs = (GameObject[])(object)new GameObject[3] { ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscClayBruiser")).prefab, ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscClayGrenadier")).prefab, ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscLunarGolem")).prefab }; ((Object)val3).name = "cscITGhostBasicSpeedy"; ((CharacterSpawnCard)val3).itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[9] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.BoostAttackSpeed, count = 0 }, new ItemCountPair { itemDef = Items.SprintOutOfCombat, count = 3 }, new ItemCountPair { itemDef = Items.Hoof, count = 5 }, new ItemCountPair { itemDef = Items.LunarBadLuck, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 } }; Waves_SpecialGuy.CardRandomizerBasicGhost.cscList = (CharacterSpawnCard[])(object)new CharacterSpawnCard[5] { val, (CharacterSpawnCard)val2, (CharacterSpawnCard)val3, (CharacterSpawnCard)val3, (CharacterSpawnCard)val3 }; } public static void CreateGhostSpawnCardsAC() { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0036: 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_0051: Unknown result type (might be due to invalid IL or missing references) //IL_005a: 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_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: 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_00c6: 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_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0184: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: 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_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01ef: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_021d: Unknown result type (might be due to invalid IL or missing references) //IL_0237: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Unknown result type (might be due to invalid IL or missing references) CharacterSpawnCard extractorGhost = Waves_SpecialGuy.ExtractorGhost; ((SpawnCard)extractorGhost).prefab = Addressables.LoadAssetAsync((object)"645c6efa053511c488c3993881e2884a").WaitForCompletion(); ((Object)extractorGhost).name = "cscITExtractorGhost"; extractorGhost.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[7] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.BoostAttackSpeed, count = 10 }, new ItemCountPair { itemDef = Items.Hoof, count = 4 }, new ItemCountPair { itemDef = Items.AlienHead, count = 4 } }; extractorGhost = Waves_SpecialGuy.InvalidatorGhost; ((SpawnCard)extractorGhost).prefab = Addressables.LoadAssetAsync((object)"cdca672e6db07ed45a6a81891c155063").WaitForCompletion(); ((Object)extractorGhost).name = "cscITInvalidatorGhost"; extractorGhost.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[6] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.BoostAttackSpeed, count = 5 }, new ItemCountPair { itemDef = Items.Hoof, count = 4 } }; } public static void CreateBossGhostSpawnCards() { //IL_003c: 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_0058: 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_007b: 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_0086: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: 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_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013f: 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_015c: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Unknown result type (might be due to invalid IL or missing references) //IL_021a: 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_023d: Unknown result type (might be due to invalid IL or missing references) //IL_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0287: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02b7: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02d3: Unknown result type (might be due to invalid IL or missing references) //IL_02dc: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Unknown result type (might be due to invalid IL or missing references) //IL_0302: Unknown result type (might be due to invalid IL or missing references) //IL_031c: Unknown result type (might be due to invalid IL or missing references) //IL_031e: Unknown result type (might be due to invalid IL or missing references) //IL_0328: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_0378: Unknown result type (might be due to invalid IL or missing references) //IL_0388: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: 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_03c7: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03d2: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Unknown result type (might be due to invalid IL or missing references) //IL_03ee: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0413: Unknown result type (might be due to invalid IL or missing references) //IL_041c: Unknown result type (might be due to invalid IL or missing references) //IL_0436: Unknown result type (might be due to invalid IL or missing references) //IL_0438: Unknown result type (might be due to invalid IL or missing references) //IL_0441: Unknown result type (might be due to invalid IL or missing references) //IL_045b: 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) //IL_0466: Unknown result type (might be due to invalid IL or missing references) //IL_0481: Unknown result type (might be due to invalid IL or missing references) //IL_0483: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: 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_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_04ff: Unknown result type (might be due to invalid IL or missing references) //IL_0501: Unknown result type (might be due to invalid IL or missing references) //IL_050a: Unknown result type (might be due to invalid IL or missing references) //IL_0524: Unknown result type (might be due to invalid IL or missing references) //IL_0526: Unknown result type (might be due to invalid IL or missing references) //IL_052f: Unknown result type (might be due to invalid IL or missing references) //IL_0549: Unknown result type (might be due to invalid IL or missing references) //IL_054b: Unknown result type (might be due to invalid IL or missing references) //IL_0554: 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_0570: Unknown result type (might be due to invalid IL or missing references) //IL_0579: Unknown result type (might be due to invalid IL or missing references) //IL_0594: Unknown result type (might be due to invalid IL or missing references) //IL_0596: Unknown result type (might be due to invalid IL or missing references) //IL_059f: Unknown result type (might be due to invalid IL or missing references) //IL_05b9: Unknown result type (might be due to invalid IL or missing references) //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c4: Unknown result type (might be due to invalid IL or missing references) //IL_05df: Unknown result type (might be due to invalid IL or missing references) //IL_05e1: Unknown result type (might be due to invalid IL or missing references) //IL_05ea: Unknown result type (might be due to invalid IL or missing references) //IL_0604: Unknown result type (might be due to invalid IL or missing references) //IL_0606: Unknown result type (might be due to invalid IL or missing references) //IL_0662: Unknown result type (might be due to invalid IL or missing references) //IL_0674: Unknown result type (might be due to invalid IL or missing references) //IL_068e: Unknown result type (might be due to invalid IL or missing references) //IL_0690: Unknown result type (might be due to invalid IL or missing references) //IL_0699: Unknown result type (might be due to invalid IL or missing references) //IL_06b3: Unknown result type (might be due to invalid IL or missing references) //IL_06b5: Unknown result type (might be due to invalid IL or missing references) //IL_06be: Unknown result type (might be due to invalid IL or missing references) //IL_06d8: Unknown result type (might be due to invalid IL or missing references) //IL_06da: Unknown result type (might be due to invalid IL or missing references) //IL_06e3: Unknown result type (might be due to invalid IL or missing references) //IL_06fd: Unknown result type (might be due to invalid IL or missing references) //IL_06ff: Unknown result type (might be due to invalid IL or missing references) //IL_0708: Unknown result type (might be due to invalid IL or missing references) //IL_0722: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_072d: Unknown result type (might be due to invalid IL or missing references) //IL_0747: Unknown result type (might be due to invalid IL or missing references) //IL_0749: Unknown result type (might be due to invalid IL or missing references) //IL_0752: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Unknown result type (might be due to invalid IL or missing references) //IL_076f: Unknown result type (might be due to invalid IL or missing references) //IL_0778: Unknown result type (might be due to invalid IL or missing references) //IL_0793: Unknown result type (might be due to invalid IL or missing references) //IL_0795: Unknown result type (might be due to invalid IL or missing references) //IL_079e: Unknown result type (might be due to invalid IL or missing references) //IL_07b8: 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_0624: Unknown result type (might be due to invalid IL or missing references) //IL_0629: Unknown result type (might be due to invalid IL or missing references) //IL_062f: Expected O, but got Unknown //IL_07d8: Unknown result type (might be due to invalid IL or missing references) //IL_07dd: Unknown result type (might be due to invalid IL or missing references) //IL_07e3: Expected O, but got Unknown MultiCharacterSpawnCard val = ScriptableObject.CreateInstance(); val.masterPrefabs = (GameObject[])(object)new GameObject[1] { ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscImpBoss")).prefab }; ((Object)val).name = "cscITBossGhostNormal"; ((CharacterSpawnCard)val).itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[8] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = Items.BoostAttackSpeed, count = 1 }, new ItemCountPair { itemDef = Items.SecondarySkillMagazine, count = 3 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 20 } }; MultiCharacterSpawnCard val2 = ScriptableObject.CreateInstance(); val2.masterPrefabs = (GameObject[])(object)new GameObject[2] { ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscBrother")).prefab, ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscClayBoss")).prefab }; ((Object)val2).name = "cscITBossGhostLimitedSpecial"; ((CharacterSpawnCard)val2).itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[11] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 6 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = Items.HalfSpeedDoubleHealth, count = 1 }, new ItemCountPair { itemDef = Items.BoostAttackSpeed, count = 1 }, new ItemCountPair { itemDef = Items.Hoof, count = 1 }, new ItemCountPair { itemDef = Items.SecondarySkillMagazine, count = 1 }, new ItemCountPair { itemDef = Items.AlienHead, count = 0 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 20 } }; CharacterSpawnCard val3 = ScriptableObject.CreateInstance(); ((SpawnCard)val3).prefab = ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscSuperRoboBallBoss")).prefab; ((Object)val3).name = "cscITBossGhostRoboBallBoss"; ((SpawnCard)val3).nodeGraphType = (GraphType)1; val3.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[8] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 5 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITCooldownUp, count = 5 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 30 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 35 } }; CharacterSpawnCard val4 = ScriptableObject.CreateInstance(); ((SpawnCard)val4).prefab = ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/Titan/cscGrandparent")).prefab; ((Object)val4).name = "cscITBossGhostGrandparent"; val4.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[8] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 4 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 10 }, new ItemCountPair { itemDef = Items.LunarBadLuck, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 40 }, new ItemCountPair { itemDef = Items.SecondarySkillMagazine, count = 5 } }; object obj = <>c.<>9__2_0; if (obj == null) { hook_OnEnter val5 = delegate(orig_OnEnter orig, ChannelSunStart self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)((EntityState)self).characterBody) && Object.op_Implicit((Object)(object)((EntityState)self).characterBody.inventory) && ((EntityState)self).characterBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.duration *= 2f; ((EntityState)self).PlayAnimation(ChannelSunStart.animLayerName, ChannelSunStart.animStateName, ChannelSunStart.animPlaybackRateParam, self.duration, 0f); } }; <>c.<>9__2_0 = val5; obj = (object)val5; } ChannelSunStart.OnEnter += (hook_OnEnter)obj; CharacterSpawnCard val6 = ScriptableObject.CreateInstance(); ((SpawnCard)val6).prefab = ((SpawnCard)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscVagrant")).prefab; ((Object)val6).name = "cscITBossGhostVagrant"; ((SpawnCard)val6).nodeGraphType = (GraphType)1; val6.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[9] { new ItemCountPair { itemDef = Items.Ghost, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 4 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = Items.CritGlassesVoid, count = 1 }, new ItemCountPair { itemDef = Items.Hoof, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 30 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 35 }, new ItemCountPair { itemDef = Items.SecondarySkillMagazine, count = 3 } }; object obj2 = <>c.<>9__2_1; if (obj2 == null) { hook_OnEnter val7 = delegate(orig_OnEnter orig, ChargeMegaNova self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)((EntityState)self).characterBody) && Object.op_Implicit((Object)(object)((EntityState)self).characterBody.inventory) && ((EntityState)self).characterBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.duration *= 1.25f; ((EntityState)self).PlayCrossfade("Gesture, Override", "ChargeMegaNova", "ChargeMegaNova.playbackRate", self.duration, 0.3f); } }; <>c.<>9__2_1 = val7; obj2 = (object)val7; } ChargeMegaNova.OnEnter += (hook_OnEnter)obj2; Waves_SpecialGuy.CardRandomizerBossGhost.cscList = (CharacterSpawnCard[])(object)new CharacterSpawnCard[6] { (CharacterSpawnCard)val, (CharacterSpawnCard)val2, (CharacterSpawnCard)val2, val4, val3, val6 }; } public static void CreateEquipmentDroneSpawnCards() { //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_0028: 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) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_009a: 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_00bd: 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_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0109: 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_012c: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Unknown result type (might be due to invalid IL or missing references) //IL_0393: Unknown result type (might be due to invalid IL or missing references) //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03b6: Unknown result type (might be due to invalid IL or missing references) //IL_03b8: Unknown result type (might be due to invalid IL or missing references) //IL_03c1: Unknown result type (might be due to invalid IL or missing references) //IL_03db: Unknown result type (might be due to invalid IL or missing references) //IL_03dd: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0402: Unknown result type (might be due to invalid IL or missing references) CharacterSpawnCard val = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/Titan/cscTitanGold.asset").WaitForCompletion()); ((Object)val).name = "cscEquipmentDroneIT"; ((SpawnCard)val).nodeGraphType = (GraphType)1; val.noElites = true; ((SpawnCard)val).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Drones/EquipmentDroneMaster.prefab").WaitForCompletion(); val.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[6] { new ItemCountPair { itemDef = Items.BoostEquipmentRecharge, count = 15 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 0 }, new ItemCountPair { itemDef = Items.AdaptiveArmor, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = Items.CutHp, count = 0 }, new ItemCountPair { itemDef = Items.HalfSpeedDoubleHealth, count = 0 } }; CharacterSpawnCard val2 = Object.Instantiate(val); ((Object)val2).name = "cscEquipmentDroneITMolotov"; val2.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.Molotov }; val2.itemsToGrant[1].count = 60; CharacterSpawnCard val3 = Object.Instantiate(val); ((Object)val3).name = "cscEquipmentDroneITFireBallDash"; val3.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.FireBallDash }; val3.itemsToGrant[0].count = 20; val3.itemsToGrant[1].count = 97; val3.itemsToGrant[5].count = 2; CharacterSpawnCard val4 = Object.Instantiate(val); ((Object)val4).name = "cscEquipmentDroneITTeamWarCry"; val4.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.TeamWarCry }; val4.itemsToGrant[0].count = 12; CharacterSpawnCard val5 = Object.Instantiate(val); ((Object)val5).name = "cscEquipmentDroneITVendingMachine"; val5.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.VendingMachine }; val5.itemsToGrant[0].count = 24; val5.itemsToGrant[1].count = 35; CharacterSpawnCard val6 = Object.Instantiate(val); ((Object)val6).name = "cscEquipmentDroneITMeteor"; val6.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.Meteor }; val6.itemsToGrant[0].count = 10; val6.itemsToGrant[1].count = 35; val6.itemsToGrant[4].count = 1; val6.itemsToGrant[4].itemDef = Items.ShieldOnly; CharacterSpawnCard val7 = Object.Instantiate(val); ((Object)val7).name = "cscEquipmentDroneITCrippleWard"; val7.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.CrippleWard }; val7.itemsToGrant[0].count = 12; val7.itemsToGrant[4].count = 1; val7.itemsToGrant[4].itemDef = Items.ShieldOnly; CharacterSpawnCard val8 = Object.Instantiate(val); ((Object)val8).name = "cscEquipmentDroneITDeathProjectile"; val8.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Equipment.DeathProjectile }; val8.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[4] { new ItemCountPair { itemDef = Items.BoostEquipmentRecharge, count = 3 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = Items.Plant, count = 5 }, new ItemCountPair { itemDef = Items.Tooth, count = 3 } }; Waves_SpecialGuy.CardRandomizerEquipmentDrones.cscList = (CharacterSpawnCard[])(object)new CharacterSpawnCard[7] { val8, val3, val2, val4, val6, val5, val7 }; } public static void CreateDroneSpawnCards() { //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_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002f: 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) //IL_003f: 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_007a: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: 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_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: 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_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: 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_01f2: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Unknown result type (might be due to invalid IL or missing references) //IL_024d: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_0283: Unknown result type (might be due to invalid IL or missing references) //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02a0: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02c4: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: Unknown result type (might be due to invalid IL or missing references) //IL_02cf: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_0310: 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_0335: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_035a: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Unknown result type (might be due to invalid IL or missing references) //IL_0380: Unknown result type (might be due to invalid IL or missing references) //IL_039b: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a6: Unknown result type (might be due to invalid IL or missing references) //IL_03c1: Unknown result type (might be due to invalid IL or missing references) //IL_03c3: Unknown result type (might be due to invalid IL or missing references) //IL_03cc: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03e8: 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_040c: Unknown result type (might be due to invalid IL or missing references) //IL_040e: Unknown result type (might be due to invalid IL or missing references) //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_0438: Unknown result type (might be due to invalid IL or missing references) //IL_0445: Unknown result type (might be due to invalid IL or missing references) //IL_0447: Unknown result type (might be due to invalid IL or missing references) //IL_0450: 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_046e: Unknown result type (might be due to invalid IL or missing references) //IL_0470: Unknown result type (might be due to invalid IL or missing references) //IL_0479: Unknown result type (might be due to invalid IL or missing references) //IL_048a: Unknown result type (might be due to invalid IL or missing references) //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_0499: Unknown result type (might be due to invalid IL or missing references) CharacterSpawnCard val = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/Titan/cscTitanGold.asset").WaitForCompletion()); ((Object)val).name = "cscITDroneFlame"; ((SpawnCard)val).nodeGraphType = (GraphType)1; ((SpawnCard)val).hullSize = (HullClassification)0; ((SpawnCard)val).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Drones/FlameDroneMaster.prefab").WaitForCompletion(); ((SpawnCard)val).directorCreditCost = 3; val.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 10 }, new ItemCountPair { itemDef = Items.ExtraLife, count = 10 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 15 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 80 }, new ItemCountPair { itemDef = Items.HalfSpeedDoubleHealth, count = 1 } }; CharacterSpawnCard val2 = Object.Instantiate(val); ((Object)val2).name = "cscITDroneEmergency"; ((SpawnCard)val2).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Drones/EmergencyDroneMaster.prefab").WaitForCompletion(); ((SpawnCard)val2).directorCreditCost = 2; val2.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 10 }, new ItemCountPair { itemDef = Items.ExtraLife, count = 10 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 15 }, new ItemCountPair { itemDef = Items.CaptainDefenseMatrix, count = 1 }, new ItemCountPair { itemDef = Items.AlienHead, count = 1 } }; CharacterSpawnCard val3 = Object.Instantiate(val); ((Object)val3).name = "cscITDroneTurret"; ((SpawnCard)val3).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Drones/Turret1Master.prefab").WaitForCompletion(); ((SpawnCard)val3).directorCreditCost = 3; ((SpawnCard)val3).nodeGraphType = (GraphType)0; val3.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 15 }, new ItemCountPair { itemDef = Items.ExtraLife, count = 10 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 15 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 60 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 98 } }; CharacterSpawnCard val4 = Object.Instantiate(val); ((Object)val4).name = "cscITDroneMissile"; ((SpawnCard)val4).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/Drones/DroneMissileMaster.prefab").WaitForCompletion(); ((SpawnCard)val4).directorCreditCost = 2; val4.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 10 }, new ItemCountPair { itemDef = Items.ExtraLife, count = 10 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 15 }, new ItemCountPair { itemDef = Items.CaptainDefenseMatrix, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 85 } }; Waves_Misc.DroneWave.spawnList = (SpawnInfo[])(object)new SpawnInfo[3] { new SpawnInfo { count = 3, spawnDistance = (MonsterSpawnDistance)0, spawnCard = val }, new SpawnInfo { count = 1, spawnDistance = (MonsterSpawnDistance)0, spawnCard = val2 }, new SpawnInfo { count = 0, spawnDistance = (MonsterSpawnDistance)2, spawnCard = val } }; } } public class EquipmentDroneInSimulacrum : MonoBehaviour { private void Start() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Invalid comparison between Unknown and I4 CharacterMaster component = ((Component)this).GetComponent(); if (Object.op_Implicit((Object)(object)component) && (int)component.teamIndex == 1) { component.inventory.RemoveItemPermanent(Items.BoostEquipmentRecharge, component.inventory.GetItemCountPermanent(Items.BoostEquipmentRecharge)); component.inventory.GiveItemPermanent(Items.BoostEquipmentRecharge, 15); component.inventory.GiveItemPermanent(Items.BoostHp, 5); Object.DontDestroyOnLoad((Object)(object)((Component)this).gameObject); } } } public class MultiCSC : CharacterSpawnCard { public CharacterSpawnCard[] cscList; public override void Spawn(Vector3 position, Quaternion rotation, DirectorSpawnRequest directorSpawnRequest, ref SpawnResult result) { //IL_0020: 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) int num = (int)(directorSpawnRequest.rng.nextNormalizedFloat * (float)cscList.Length); ((SpawnCard)cscList[num]).Spawn(position, rotation, directorSpawnRequest, ref result); } } public class CardRandomizer : MonoBehaviour { public bool adjustSpawnCount = false; public CharacterSpawnCard[] cscList; public void DoTheThing(InfiniteTowerExplicitSpawnWaveController controller) { if (!Object.op_Implicit((Object)(object)controller)) { Debug.LogWarning((object)"CardRandomizer on invalid object"); return; } if (!Object.op_Implicit((Object)(object)Run.instance)) { Debug.LogWarning((object)"CardRandomizer no run instance"); return; } if (NetworkServer.active) { if (controller.spawnList.Length == 1) { controller.spawnList[0].spawnCard = cscList[(int)(Run.instance.bossRewardRng.nextNormalizedFloat * (float)cscList.Length)]; if (adjustSpawnCount) { controller.spawnList[0].count = ((SpawnCard)controller.spawnList[0].spawnCard).directorCreditCost; } } else { List list = new List(cscList); for (int i = 0; i < controller.spawnList.Length; i++) { controller.spawnList[i].spawnCard = list[(int)(Run.instance.bossRewardRng.nextNormalizedFloat * (float)list.Count)]; list.Remove(controller.spawnList[i].spawnCard); } } } if (((Object)controller).name.EndsWith("EquipmentDrone(Clone)")) { AnnounceEquipmentDrone(controller); } } public static void AnnounceEquipmentDrone(InfiniteTowerExplicitSpawnWaveController self) { //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0184: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Expected O, but got Unknown string format = Language.GetString("ITWAVE_EQUIPMENTDRONE_ANNOUNCE"); string text = ""; if (self.spawnList.Length == 2) { text = ((!self.spawnList[0].spawnCard.equipmentToGrant[0].isLunar) ? (text + "") : (text + "")); text = text + Language.GetString(self.spawnList[0].spawnCard.equipmentToGrant[0].nameToken) + " & "; text = ((!self.spawnList[1].spawnCard.equipmentToGrant[0].isLunar) ? (text + "") : (text + "")); text = text + Language.GetString(self.spawnList[1].spawnCard.equipmentToGrant[0].nameToken) + ""; } else { text = ((!self.spawnList[0].spawnCard.equipmentToGrant[0].isLunar) ? (text + "") : (text + "")); text = text + Language.GetString(self.spawnList[0].spawnCard.equipmentToGrant[0].nameToken) + ""; } string baseToken = string.Format(format, text); Chat.SendBroadcastChat((ChatMessageBase)new SimpleChatMessage { baseToken = baseToken }); } } public class PillarSpawner : MonoBehaviour { public static GameObject pillar; public List pillarInstances; public static void MakePrefab() { //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_001f: 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_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003d: 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_0083: 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) //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) Material val = Object.Instantiate(Addressables.LoadAssetAsync((object)"1a8b98f837c44084e88c328aa2d8f4b3").WaitForCompletion()); Material val2 = Object.Instantiate(Addressables.LoadAssetAsync((object)"fd23a6bf77c1d8f46bc36636fdfb2060").WaitForCompletion()); GameObject val3 = Addressables.LoadAssetAsync((object)"51ffdd60c86fbb34096f8c7e82b807d7").WaitForCompletion(); pillar = PrefabAPI.InstantiateClone(val3, "SimuPillarForGhostWave", true); pillar.transform.GetChild(0).localEulerAngles = Vector3.zero; pillar.transform.GetChild(1).localEulerAngles = Vector3.zero; ((Component)pillar.transform.GetChild(1).GetChild(0).GetChild(1)).gameObject.SetActive(false); ((Component)pillar.transform.GetChild(1).GetChild(0).GetChild(3)).GetComponent().color = new Color(0.9f, 0.4f, 0.9f); ((Component)pillar.transform.GetChild(1).GetChild(0).GetChild(4)).gameObject.SetActive(false); pillar.transform.GetChild(0).GetChild(0).localPosition = new Vector3(0f, -20f, 0f); pillar.transform.GetChild(0).GetChild(0).localScale = new Vector3(1f, 1f, 4f); pillar.transform.localScale = new Vector3(4f, 20f, 4f); ObjectTransformCurve componentInChildren = pillar.GetComponentInChildren(); componentInChildren.translationCurveY = componentInChildren.translationCurveZ; componentInChildren.translationCurveZ = componentInChildren.translationCurveX; val.SetFloat("_RimPower", 0f); val2.SetColor("_TintColor", new Color(5f, 0f, 4f, 1f)); ((Renderer)((Component)pillar.transform.GetChild(0).GetChild(0)).GetComponent()).materials = (Material[])(object)new Material[2] { val, val2 }; } public void MakePillar() { //IL_004f: 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_00ab: 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_00c4: 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_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0130: Unknown result type (might be due to invalid IL or missing references) //IL_014d: 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 (!Object.op_Implicit((Object)(object)pillar)) { MakePrefab(); } pillarInstances = new List(); for (int i = 0; i < 4; i++) { GameObject val = Object.Instantiate(pillar); ? val2 = val.transform; Run instance = Run.instance; ((Transform)val2).position = ((Component)((InfiniteTowerRun)((instance is InfiniteTowerRun) ? instance : null)).safeWardController).transform.position; ? val3 = val.transform; Run instance2 = Run.instance; ((Transform)val3).rotation = ((Component)((InfiniteTowerRun)((instance2 is InfiniteTowerRun) ? instance2 : null)).safeWardController).transform.rotation; pillarInstances.Add(val); } Transform transform = pillarInstances[0].transform; transform.localPosition += new Vector3(20f, 0f, 20f); Transform transform2 = pillarInstances[1].transform; transform2.localPosition += new Vector3(-20f, 0f, 20f); Transform transform3 = pillarInstances[2].transform; transform3.localPosition += new Vector3(-20f, 0f, -20f); Transform transform4 = pillarInstances[3].transform; transform4.localPosition += new Vector3(20f, 0f, -20f); } public void RemovePillars() { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008a: 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_00d9: 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) for (int i = 0; i < pillarInstances.Count; i++) { GameObject val = pillarInstances[i]; ObjectTransformCurve component = ((Component)val.transform.GetChild(0)).GetComponent(); component.timeMax = 3f; AnimationCurve translationCurveY = component.translationCurveY; Keyframe[] array = new Keyframe[2]; Keyframe val2 = default(Keyframe); ((Keyframe)(ref val2)).time = 0f; ((Keyframe)(ref val2)).value = 0f; val2.m_InTangent = 30f; ((Keyframe)(ref val2)).outTangent = 30f; ((Keyframe)(ref val2)).outWeight = 0.3333f; array[0] = val2; val2 = default(Keyframe); ((Keyframe)(ref val2)).time = 1f; ((Keyframe)(ref val2)).value = -30f; val2.m_InTangent = -0.0134f; ((Keyframe)(ref val2)).outTangent = -0.0134f; ((Keyframe)(ref val2)).outWeight = 0.3333f; array[1] = val2; translationCurveY.keys = (Keyframe[])(object)array; component.Reset(); val.gameObject.AddComponent().duration = 6f; } } } public class SimuWaveUnsortedExtras : MonoBehaviour { public enum Case { None = -1, HeresyItems, Infestor, Vengence, Enigma, EquipmentDroneWave, TooManyItems, AcridWave, SS2_Rainbow } public Case code = Case.None; public float ExplicitInitialize(InfiniteTowerExplicitSpawnWaveController self, int waveIndex) { //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) switch (code) { case Case.AcridWave: if (waveIndex > 29) { self.spawnList[0].spawnCard.itemsToGrant[0].count = 1; } else { self.spawnList[0].spawnCard.itemsToGrant[0].count = 0; } return 1.2f; case Case.SS2_Rainbow: { DirectorCard val = ((Component)self).GetComponent().SelectMonsterCardForCombatShrine((float)(waveIndex * 2 + 20)); if (val == null) { Debug.LogWarning((object)"Could not find Emyprean candidate normally"); val = ClassicStageInfo.instance.monsterCategories.categories[2].cards[0]; } ((SpawnCard)self.spawnList[0].spawnCard).prefab = val.spawnCard.prefab; ((SpawnCard)self.spawnList[0].spawnCard).nodeGraphType = val.spawnCard.nodeGraphType; return -1f; } default: return -1f; } } public void CleanUpCurrentWave(InfiniteTowerRun self, GameObject waveInstance) { //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) switch (code) { case Case.HeresyItems: if (self.enemyInventory.GetItemCountPermanent(ItemHelpers.ITDamageDownMult) > 10) { self.enemyInventory.RemoveItemPermanent(Items.LunarPrimaryReplacement, 1); } else { self.enemyInventory.RemoveItemPermanent(Items.LunarSecondaryReplacement, 1); self.enemyInventory.RemoveItemPermanent(Items.LunarUtilityReplacement, 1); } self.enemyInventory.RemoveItemPermanent(ItemHelpers.ITDamageDownMult, self.enemyInventory.GetItemCountPermanent(ItemHelpers.ITDamageDownMult)); self.enemyInventory.RemoveItemPermanent(ItemHelpers.ITAttackSpeedDownMult, self.enemyInventory.GetItemCountPermanent(ItemHelpers.ITAttackSpeedDownMult)); self.enemyInventory.RemoveItemPermanent(ItemHelpers.ITCooldownUp, self.enemyInventory.GetItemCountPermanent(ItemHelpers.ITCooldownUp)); self.enemyInventory.RemoveItemPermanent(Items.BoostHp, self.enemyInventory.GetItemCountPermanent(Items.BoostHp)); break; case Case.TooManyItems: { for (int i = 0; i < self.enemyInventory.itemAcquisitionOrder.Count; i++) { ItemDef itemDef = ItemCatalog.GetItemDef(self.enemyInventory.itemAcquisitionOrder[i]); if ((Object)(object)itemDef == (Object)(object)ItemHelpers.ITHealthUpMult || (Object)(object)itemDef == (Object)(object)Items.Bear || (Object)(object)itemDef == (Object)(object)Items.ExtraLife || (Object)(object)itemDef == (Object)(object)Items.ExtraLifeVoid) { self.enemyInventory.RemoveItemPermanent(itemDef, 1); } else { self.enemyInventory.RemoveItemPermanent(itemDef, (int)((float)self.enemyInventory.GetItemCountPermanent(self.enemyInventory.itemAcquisitionOrder[i]) / 5f * 4f)); } } break; } } } public void InitializeWaveController(InfiniteTowerRun infiniteTowerRun, GameObject waveInstance) { //IL_022e: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Expected O, but got Unknown //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Expected O, but got Unknown //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Unknown result type (might be due to invalid IL or missing references) switch (code) { case Case.Vengence: { if (!NetworkServer.active) { break; } DoppelgangerInvasionManager.PerformInvasion(((Run)infiniteTowerRun).bossRewardRng); CombatSquad component = waveInstance.GetComponent(); CombatSquad[] array = Object.FindObjectsOfType(typeof(CombatSquad)) as CombatSquad[]; for (int j = 0; j < array.Length; j++) { if (!((Object)array[j]).name.Equals("ShadowCloneEncounter(Clone)") && !((Object)array[j]).name.Equals("ShadowCloneEncounterAltered")) { continue; } foreach (CharacterMaster members in array[j].membersList) { component.AddMember(members); } } break; } case Case.Infestor: { CombatDirector obj = waveInstance.GetComponents()[1]; obj.monsterCredit *= Math.Max(0.9f, ((float)(infiniteTowerRun.waveIndex / 10) + 1f) * 0.24f); break; } case Case.HeresyItems: if (NetworkServer.active) { if (((Run)infiniteTowerRun).runRNG.nextBool) { infiniteTowerRun.enemyInventory.GiveItemPermanent(Items.LunarPrimaryReplacement, 1); infiniteTowerRun.enemyInventory.GiveItemPermanent(ItemHelpers.ITDamageDownMult, 50); infiniteTowerRun.enemyInventory.GiveItemPermanent(ItemHelpers.ITAttackSpeedDownMult, 70); infiniteTowerRun.enemyInventory.GiveItemPermanent(ItemHelpers.ITCooldownUp, 10); infiniteTowerRun.enemyInventory.GiveItemPermanent(Items.BoostHp, infiniteTowerRun.waveIndex / 10 * 2); Chat.SendBroadcastChat((ChatMessageBase)new SimpleChatMessage { baseToken = "ITWAVE_HERESY_ANNOUNCE_EYE" }); } else { infiniteTowerRun.enemyInventory.GiveItemPermanent(Items.LunarSecondaryReplacement, 1); infiniteTowerRun.enemyInventory.GiveItemPermanent(Items.LunarUtilityReplacement, 1); infiniteTowerRun.enemyInventory.GiveItemPermanent(Items.BoostHp, infiniteTowerRun.waveIndex / 10 * 2); infiniteTowerRun.enemyInventory.GiveItemPermanent(ItemHelpers.ITDamageDownMult, 5); Chat.SendBroadcastChat((ChatMessageBase)new SimpleChatMessage { baseToken = "ITWAVE_HERESY_ANNOUNCE_ARM" }); } } break; case Case.TooManyItems: { if (!NetworkServer.active) { break; } for (int i = 0; i < infiniteTowerRun.enemyInventory.itemAcquisitionOrder.Count; i++) { ItemDef itemDef = ItemCatalog.GetItemDef(infiniteTowerRun.enemyInventory.itemAcquisitionOrder[i]); if ((Object)(object)itemDef == (Object)(object)ItemHelpers.ITHealthUpMult || (Object)(object)itemDef == (Object)(object)Items.Bear || (Object)(object)itemDef == (Object)(object)Items.ExtraLife || (Object)(object)itemDef == (Object)(object)Items.ExtraLifeVoid) { infiniteTowerRun.enemyInventory.GiveItemPermanent(itemDef, 1); } else { infiniteTowerRun.enemyInventory.GiveItemPermanent(itemDef, infiniteTowerRun.enemyInventory.GetItemCountPermanent(infiniteTowerRun.enemyInventory.itemAcquisitionOrder[i]) * 4); } } break; } case Case.Enigma: case Case.EquipmentDroneWave: break; } } public void OnAllEnemiesDefeatedServer() { //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: 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_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Expected O, but got Unknown Case obj = code; Case obj2 = obj; if (obj2 == Case.Enigma || obj2 != Case.EquipmentDroneWave) { return; } MeteorStormController[] array = Object.FindObjectsOfType(typeof(MeteorStormController)) as MeteorStormController[]; if (array.Length != 0) { for (int i = 0; i < array.Length; i++) { Object.Destroy((Object)(object)((Component)array[i]).gameObject); } } BuffWard[] array2 = Object.FindObjectsOfType(typeof(BuffWard)) as BuffWard[]; if (array2.Length == 0) { return; } GameObject val = LegacyResourcesAPI.Load("Prefabs/Effects/BrittleDeath"); for (int j = 0; j < array2.Length; j++) { if (Object.op_Implicit((Object)(object)(array2[j].buffDef = Buffs.Cripple))) { Object.Destroy((Object)(object)((Component)array2[j]).gameObject); EffectManager.SpawnEffect(val, new EffectData { origin = ((Component)array2[j]).transform.position, rotation = ((Component)array2[j]).transform.rotation }, true); } } } } public class SimulacrumExtrasHelper : MonoBehaviour { public static bool shareSuitInstalled; [SerializeField] public ItemTier rewardDisplayTier; [SerializeField] public PickupDropTable rewardDropTable; public int rewardOptionCount = 3; public float newRadius = 0f; [Server] public void DropRewards() { //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008a: 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_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_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: 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_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012a: 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_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_0157: 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_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) if (!NetworkServer.active) { Debug.LogWarning((object)"[Server] function 'System.Void RoR2.InfiniteTowerWaveController::DropRewards()' called on client"); return; } InfiniteTowerWaveController component = ((Component)this).gameObject.GetComponent(); int num = Run.instance.participatingPlayerCount; if (shareSuitInstalled) { num = 1; } if (num > 0 && Object.op_Implicit((Object)(object)component.spawnTarget) && Object.op_Implicit((Object)(object)rewardDropTable)) { int num2 = num; float num3 = 360f / (float)num2; Vector3 val = Quaternion.AngleAxis((float)Random.Range(0, 360), Vector3.up) * (Vector3.up * 45f + Vector3.forward * 9f); Quaternion val2 = Quaternion.AngleAxis(num3, Vector3.up); Vector3 val3 = component.spawnTarget.transform.position + component.rewardOffset; int num4 = 0; while (num4 < num2) { CreatePickupInfo val4 = default(CreatePickupInfo); ((CreatePickupInfo)(ref val4)).pickupIndex = PickupCatalog.FindPickupIndex(rewardDisplayTier); val4.pickerOptions = PickupPickerController.GenerateOptionsFromDropTable(rewardOptionCount, rewardDropTable, component.rng); val4.rotation = Quaternion.identity; val4.position = val3; val4.prefabOverride = component.rewardPickupPrefab; PickupDropletController.CreatePickupDroplet(val4, val3, val); num4++; val = val2 * val; } } } } public class SimuExplicitStats : MonoBehaviour { public int OneExtraSpawnStartingWave = -1; public int ExtraSpawnPerWaves = -1; public float spawnsPerExtraPlayer = -1f; public bool halfOnNonFinal = false; public bool spawnAsVoidTeam = false; public float hpBonusMulti = 0.5f; public float damageBonusMulti = 0.5f; public void DoTheThing() { } } public class SimuEquipmentWaveHelper : MonoBehaviour { public enum Variant { None, Jetpack, FuelArray, Malachite, GooboJr, Twisted } protected CombatSquad combatSquad; public Variant variant; private int bonusHP = 0; public bool bonusBonus = true; public int counter = 100; private void OnEnable() { InfiniteTowerWaveController component = ((Component)this).GetComponent(); if (variant == Variant.Malachite) { bonusHP += 10; } if (Object.op_Implicit((Object)(object)component) && Object.op_Implicit((Object)(object)component.combatSquad)) { bonusHP += ((Component)Run.instance).GetComponent().waveIndex / 10 * 2; bonusHP *= Run.instance.participatingPlayerCount; combatSquad = component.combatSquad; component.combatSquad.onMemberDiscovered += OnCombatSquadMemberDiscovered; } if (variant == Variant.FuelArray) { Equipment.QuestVolatileBattery.dropOnDeathChance = 0.015f; CountDown.explosionRadius /= 1.8f; } else { if (variant != Variant.GooboJr) { return; } foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { if (Object.op_Implicit((Object)(object)instance.master.bodyInstanceObject)) { instance.master.GetBody().equipmentSlot.FireGummyClone(); } } } } private void OnDisable() { if (Object.op_Implicit((Object)(object)combatSquad)) { combatSquad.onMemberDiscovered -= OnCombatSquadMemberDiscovered; } if (variant == Variant.FuelArray) { Equipment.QuestVolatileBattery.dropOnDeathChance = 0f; CountDown.explosionRadius *= 1.8f; } } protected virtual void OnCombatSquadMemberDiscovered(CharacterMaster master) { //IL_0071: Unknown result type (might be due to invalid IL or missing references) //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_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) CharacterBody body = master.GetBody(); if (!NetworkServer.active) { return; } if (Object.op_Implicit((Object)(object)body) && !Object.op_Implicit((Object)(object)body.equipmentSlot)) { EquipmentSlot val = ((Component)body).gameObject.AddComponent(); val.hasEffectiveAuthority = true; val._rechargeTime = FixedTimeStamp.zero; } if (variant == Variant.Jetpack) { master.inventory.SetEquipmentIndex(Equipment.Jetpack.equipmentIndex); master.inventory.GiveItemPermanent(Items.AutoCastEquipment, 1); master.inventory.GiveItemPermanent(Items.BoostEquipmentRecharge, 7); master.inventory.GiveItemPermanent(Items.SprintOutOfCombat, 1); master.inventory.GiveItemPermanent(Items.BoostHp, 1 + (int)((float)bonusHP * 1.33f)); } else if (variant == Variant.FuelArray) { master.inventory.SetEquipmentIndex(Equipment.QuestVolatileBattery.equipmentIndex); master.inventory.GiveItemPermanent(ItemHelpers.ITHealthUpMult, 80); } else if (variant == Variant.Malachite) { master.inventory.SetEquipmentIndex(Equipment.AffixPoison.equipmentIndex); master.inventory.GiveItemPermanent(Items.BoostHp, bonusHP); } else if (variant == Variant.GooboJr) { if (master.inventory.GetItemCountPermanent(Items.GummyCloneIdentifier) == 0) { master.inventory.SetEquipmentIndex(Equipment.GummyClone.equipmentIndex); master.inventory.GiveItemPermanent(Items.AutoCastEquipment, 1); master.inventory.GiveItemPermanent(Items.EquipmentMagazine, 1); master.inventory.GiveItemPermanent(Items.BoostHp, 3); } else { master.inventory.RemoveItemPermanent(Items.BoostHp, 15); master.inventory.RemoveItemPermanent(Items.BoostDamage, 15); } } else if (variant == Variant.Twisted) { counter++; if (master.inventory.GetItemCountPermanent(Items.BoostDamage) < 10 && counter > 10) { counter = 0; master.inventory.SetEquipmentIndex(Equipment.EliteBeadEquipment.equipmentIndex); master.inventory.GiveItemPermanent(Items.BoostDamage, 5); master.inventory.GiveItemPermanent(Items.BoostHp, 30); } } } } public class SimuBuffWaveHelper : MonoBehaviour { protected CombatSquad combatSquad; public int variant = -1; public int count; public float duration = -1f; public bool timed = false; public bool addToPlayer = false; public bool addToEnemies = true; public BuffDef buffDef; private void OnEnable() { if (addToEnemies) { InfiniteTowerWaveController component = ((Component)this).GetComponent(); if (Object.op_Implicit((Object)(object)component) && Object.op_Implicit((Object)(object)component.combatSquad)) { combatSquad = component.combatSquad; component.combatSquad.onMemberDiscovered += OnCombatSquadMemberDiscovered; } } if (addToPlayer && variant == -1) { if (!NetworkServer.active) { return; } { foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { if (Object.op_Implicit((Object)(object)instance.master.bodyInstanceObject)) { if (timed) { instance.master.GetBody().AddTimedBuff(buffDef, duration); } else { instance.master.GetBody().AddBuff(buffDef); } } } return; } } if (variant == 0) { count = 2 + ((Component)Run.instance).GetComponent().waveIndex / 10; } } private void OnDisable() { if (addToEnemies && Object.op_Implicit((Object)(object)combatSquad)) { combatSquad.onMemberDiscovered -= OnCombatSquadMemberDiscovered; } if (!addToPlayer || variant != -1 || !NetworkServer.active) { return; } foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { if (Object.op_Implicit((Object)(object)instance.master.bodyInstanceObject) && instance.master.GetBody().HasBuff(buffDef)) { instance.master.GetBody().RemoveBuff(buffDef); } } } protected virtual void OnCombatSquadMemberDiscovered(CharacterMaster master) { if (!NetworkServer.active) { return; } CharacterBody body = master.GetBody(); if (variant == -1) { if (timed) { body.AddTimedBuff(buffDef, duration); } else { body.AddBuff(buffDef); } } else if (variant == 0) { master.inventory.GiveItemPermanent(Items.BearVoid, count); body.AddTimedBuff(Buffs.HiddenInvincibility, 0.5f); for (int i = 0; i < count; i++) { body.AddBuff(Buffs.BearVoidReady); } } } } public class SimuWaveSizeModifier : MonoBehaviour { public float sizeModifier; private void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown CharacterBody.RecalculateStats += new hook_RecalculateStats(CharacterBody_RecalculateStats); } private void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown CharacterBody.RecalculateStats -= new hook_RecalculateStats(CharacterBody_RecalculateStats); } private void CharacterBody_RecalculateStats(orig_RecalculateStats orig, CharacterBody self) { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Invalid comparison between Unknown and I4 orig.Invoke(self); if ((int)self.teamComponent.teamIndex != 2) { return; } if (sizeModifier > 1f) { if (self.inventory.GetItemCountPermanent(Items.BoostCharacterScale) == 0) { self.inventory.GiveItemPermanent(Items.BoostCharacterScale, (int)((sizeModifier - 1f) * 100f)); } } else if (self.inventory.GetItemCountPermanent(Items.ReduceCharacterScale) == 0) { self.inventory.GiveItemPermanent(Items.ReduceCharacterScale, (int)(100f * (1f - sizeModifier))); } self.currentScale = sizeModifier; self.desiredScale = sizeModifier; } } public class SimuWaveAlwaysJumping : MonoBehaviour { private void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown GenericCharacterMain.ProcessJump += new hook_ProcessJump(AlwaysSpamJump); } private void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown GenericCharacterMain.ProcessJump -= new hook_ProcessJump(AlwaysSpamJump); } private void AlwaysSpamJump(orig_ProcessJump orig, GenericCharacterMain self) { self.jumpInputReceived = true; orig.Invoke(self); } } public class SimuWaveBouncyProjectiles : MonoBehaviour { private static PhysicMaterial bouncyMat = Addressables.LoadAssetAsync((object)"RoR2/DLC1/MajorAndMinorConstruct/physmatMinorConstructProjectile.physicMaterial").WaitForCompletion(); private void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown ProjectileController.Start += new hook_Start(BouncyProjectiles); } private void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown ProjectileController.Start -= new hook_Start(BouncyProjectiles); } private void BouncyProjectiles(orig_Start orig, ProjectileController self) { orig.Invoke(self); if (self.myColliders.Length != 0) { self.myColliders[0].material = bouncyMat; } ProjectileImpactExplosion component = ((Component)self).GetComponent(); if (Object.op_Implicit((Object)(object)component)) { component.destroyOnWorld = false; component.impactOnWorld = false; } ProjectileSingleTargetImpact component2 = ((Component)self).GetComponent(); if (Object.op_Implicit((Object)(object)component2)) { component2.destroyOnWorld = false; } } } public class SimulacrumGiveItemsOnStart : MonoBehaviour { public int count; public bool hadCannotyCopy = false; public bool hideItem = false; public float extraPer10Wave; public string itemString; public ItemIndex itemIndex = (ItemIndex)(-1); private void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Invalid comparison between Unknown and I4 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) itemIndex = ItemCatalog.FindItemIndex(itemString); ItemDef itemDef = ItemCatalog.GetItemDef(itemIndex); if ((int)itemIndex == -1) { Debug.LogWarning((object)"SimulacrumGiveItemsOnStart : Null Item"); return; } if (itemDef.ContainsTag((ItemTag)13)) { hadCannotyCopy = true; itemDef.tags = itemDef.tags.Remove((ItemTag)13); } if (hideItem) { itemDef.hidden = true; } if (NetworkServer.active) { InfiniteTowerRun component = ((Component)Run.instance).GetComponent(); int num = (int)((float)(component.waveIndex / 10) * extraPer10Wave); if (num < 0) { num = 0; } int num2 = count + num; component.enemyInventory.GiveItemPermanent(itemIndex, num2); } } private void OnDisable() { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0026: 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) ItemDef itemDef = ItemCatalog.GetItemDef(itemIndex); if (hadCannotyCopy) { hadCannotyCopy = false; ref ItemTag[] tags = ref itemDef.tags; ItemTag val = (ItemTag)4; ArrayUtils.ArrayAppend(ref tags, ref val); } if (hideItem) { itemDef.hidden = false; } if (NetworkServer.active) { InfiniteTowerRun component = ((Component)Run.instance).GetComponent(); int num = (int)((float)(component.waveIndex / 10) * extraPer10Wave); if (num < 0) { num = 0; } int num2 = count + num; component.enemyInventory.RemoveItemPermanent(itemIndex, num2); } } } public class SimulacrumInteractablesWaveHelper : MonoBehaviour { public InteractableSpawnCard spawnCard; public float interval = 2f; public int spawnsOnStart = 0; public int maxDistance = 55; public float spawnedTimer; public Xoroshiro128Plus rng; private void OnEnable() { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Expected O, but got Unknown //IL_0071: 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_0086: 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_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0098: 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_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown if (!NetworkServer.active) { spawnedTimer = 999f; ((Behaviour)this).enabled = false; return; } InfiniteTowerRun component = ((Component)Run.instance).GetComponent(); rng = new Xoroshiro128Plus((ulong)component.waveIndex ^ Run.instance.seed); ((Component)this).gameObject.transform.position = ((Component)component.safeWardController).transform.GetChild(2).GetChild(0).position; for (int i = 0; i < spawnsOnStart; i++) { DirectorPlacementRule val = new DirectorPlacementRule { placementMode = (PlacementMode)1, minDistance = 0f, maxDistance = 60f, position = ((Component)this).gameObject.transform.position, spawnOnTarget = ((Component)this).gameObject.transform }; DirectorCore.instance.TrySpawnObject(new DirectorSpawnRequest((SpawnCard)(object)spawnCard, val, rng)); } } private void FixedUpdate() { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: 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_0047: 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_005f: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Expected O, but got Unknown //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown spawnedTimer -= Time.deltaTime; if (spawnedTimer <= 0f) { spawnedTimer += interval; DirectorPlacementRule val = new DirectorPlacementRule { placementMode = (PlacementMode)1, minDistance = 0f, maxDistance = maxDistance, position = ((Component)this).gameObject.transform.position, spawnOnTarget = ((Component)this).gameObject.transform }; DirectorCore.instance.TrySpawnObject(new DirectorSpawnRequest((SpawnCard)(object)spawnCard, val, rng)); } } } public class SimulacrumEliteWaves : MonoBehaviour { public enum EliteCase { None, AddLunar, Lunar, Void, LunarAndVoid, Collective, Poison } public EliteCase eliteCase; public EliteTierDef[] backupTiers; public EliteTierDef[] newTiers; private void OnEnable() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Expected O, but got Unknown //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Expected O, but got Unknown //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Expected O, but got Unknown //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Expected O, but got Unknown backupTiers = CombatDirector.eliteTiers; EliteTierDef[] array = (EliteTierDef[])(object)new EliteTierDef[2]; EliteTierDef val = new EliteTierDef(); val.costMultiplier = 1f; val.eliteTypes = (EliteDef[])(object)new EliteDef[1]; val.isAvailable = (EliteRules rules) => CombatDirector.NotEliteOnlyArtifactActive(); val.canSelectWithoutAvailableEliteDef = true; array[0] = val; if (eliteCase == EliteCase.Lunar) { val = new EliteTierDef(); val.costMultiplier = 3f; val.eliteTypes = (EliteDef[])(object)new EliteDef[1] { Elites.Lunar }; val.isAvailable = (EliteRules rules) => true; val.canSelectWithoutAvailableEliteDef = false; array[1] = val; newTiers = array; } else if (eliteCase == EliteCase.Void) { val = new EliteTierDef(); val.costMultiplier = 3f; val.eliteTypes = (EliteDef[])(object)new EliteDef[1] { Elites.Void }; val.isAvailable = (EliteRules rules) => true; val.canSelectWithoutAvailableEliteDef = false; array[1] = val; newTiers = array; } else if (eliteCase == EliteCase.Collective) { val = new EliteTierDef(); val.costMultiplier = 5f; val.eliteTypes = (EliteDef[])(object)new EliteDef[1] { Elites.CollectiveWeak }; val.isAvailable = (EliteRules rules) => true; val.canSelectWithoutAvailableEliteDef = false; array[1] = val; newTiers = array; } else if (eliteCase == EliteCase.LunarAndVoid) { val = new EliteTierDef(); val.costMultiplier = 3f; val.eliteTypes = (EliteDef[])(object)new EliteDef[2] { Elites.Lunar, Elites.Void }; val.isAvailable = (EliteRules rules) => true; val.canSelectWithoutAvailableEliteDef = false; array[1] = val; newTiers = array; } else if (eliteCase == EliteCase.AddLunar) { CombatDirector.eliteTiers[1].eliteTypes = CombatDirector.eliteTiers[1].eliteTypes.Add(Elites.Lunar); CombatDirector.eliteTiers[2].eliteTypes = CombatDirector.eliteTiers[2].eliteTypes.Add(Elites.Lunar); } if (newTiers == null) { Debug.LogWarning((object)"no elite tiers to overwrite"); } else { CombatDirector.eliteTiers = newTiers; } } private void OnDisable() { if (eliteCase == EliteCase.AddLunar) { CombatDirector.eliteTiers[1].eliteTypes = CombatDirector.eliteTiers[1].eliteTypes.Remove(Elites.Lunar); CombatDirector.eliteTiers[2].eliteTypes = CombatDirector.eliteTiers[2].eliteTypes.Remove(Elites.Lunar); } if (backupTiers != null) { CombatDirector.eliteTiers = backupTiers; } } } public class SimulacrumEclipseWaveHelper : MonoBehaviour { public DifficultyIndex previous; private void OnEnable() { //IL_0007: 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) previous = Run.instance.selectedDifficulty; Run.instance.selectedDifficulty = (DifficultyIndex)10; } private void OnDisable() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)Run.instance)) { return; } Run.instance.selectedDifficulty = previous; foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { if (instance.master.hasBody) { CharacterBody body = instance.master.GetBody(); int buffCount = body.GetBuffCount(Buffs.PermanentCurse); for (int i = 0; i < buffCount; i++) { body.RemoveBuff(Buffs.PermanentCurse); } } } } } public class SimulacrumArtifactTrialWave : MonoBehaviour { public ArtifactDef artifactDef; public ArtifactDef artifactDef2; public bool artifactWasEnabled; public bool artifactWasEnabled2; public int count = 0; public void Awake() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown if (NetworkServer.active) { RollArtifact(); } RunArtifactManager.onArtifactEnabledGlobal += new ArtifactStateChangeDelegate(ArtifactListerner); } private void ArtifactListerner([NotNull] RunArtifactManager runArtifactManager, [NotNull] ArtifactDef artifactDef) { InfiniteTowerWaveController component = ((Component)this).GetComponent(); GameObject prefab = component.overlayEntries[1].prefab; if (count == 0) { ((Component)prefab.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(artifactDef); } else if (count == 1) { ((Component)prefab.transform.GetChild(0).GetChild(3).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(artifactDef); } count++; } public void RollArtifact() { List list = new List { Artifacts.bombArtifactDef, Artifacts.wispOnDeath, Artifacts.swarmsArtifactDef, Artifacts.sacrificeArtifactDef, Artifacts.mixEnemyArtifactDef, Artifacts.singleMonsterTypeArtifactDef, Artifacts.commandArtifactDef, Artifacts.monsterTeamGainsItemsArtifactDef }; ArtifactDef val = ArtifactCatalog.FindArtifactDef("SingleEliteType"); if ((Object)(object)val != (Object)null) { list.Add(val); } int index = H.random.Next(0, list.Count); artifactDef = list[index]; list.Remove(artifactDef); int index2 = H.random.Next(0, list.Count); artifactDef2 = list[index2]; } public void OnEnable() { if (NetworkServer.active) { artifactWasEnabled = RunArtifactManager.instance.IsArtifactEnabled(artifactDef); RunArtifactManager.instance.SetArtifactEnabledServer(artifactDef, true); artifactWasEnabled2 = RunArtifactManager.instance.IsArtifactEnabled(artifactDef2); RunArtifactManager.instance.SetArtifactEnabledServer(artifactDef2, true); } } private void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown RunArtifactManager.onArtifactEnabledGlobal -= new ArtifactStateChangeDelegate(ArtifactListerner); if (NetworkServer.active && Object.op_Implicit((Object)(object)RunArtifactManager.instance)) { RunArtifactManager.instance.SetArtifactEnabledServer(artifactDef2, artifactWasEnabled2); RunArtifactManager.instance.SetArtifactEnabledServer(artifactDef, artifactWasEnabled); } } protected virtual void OnCombatSquadMemberDiscovered(CharacterMaster master) { int itemCountPermanent = master.inventory.GetItemCountPermanent(ItemHelpers.ITKillOnCompletion); if (itemCountPermanent > 0) { master.GetBody().RemoveBuff(Buffs.Immune); HealthComponent healthComponent = master.GetBody().healthComponent; healthComponent.Networkhealth *= 0.1f; } } } public class SimulacrumLightningStormWave : MonoBehaviour { public GameObject LightningStorm; public GameObject LightningStrike; public bool ShouldActivate = false; public int timer = 0; public void Awake() { //IL_0011: 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) if (NetworkServer.active) { LightningStorm = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC2/meridian/DisableSkillsLightning/LightningStormController.prefab").WaitForCompletion()); NetworkServer.Spawn(LightningStorm); } } public void OnEnable() { //IL_0007: 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_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Expected O, but got Unknown //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Expected O, but got Unknown //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Expected O, but got Unknown //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown LightningStrike = Addressables.LoadAssetAsync((object)"RoR2/DLC2/meridian/DisableSkillsLightning/LightningStrikeInstance.prefab").WaitForCompletion(); LightningStrike.GetComponent().teamIndex = (TeamIndex)0; LightningStrikeInstance component = LightningStrike.GetComponent(); component.blastDamageType.damageTypeExtended = (DamageTypeExtended)268435456; if (Object.op_Implicit((Object)(object)LightningStorm)) { ShouldActivate = true; } InteractableSpawnCard val = Addressables.LoadAssetAsync((object)"RoR2/DLC2/iscGeode.asset").WaitForCompletion(); int num = Run.instance.participatingPlayerCount + 1; GameObject val2 = LegacyResourcesAPI.Load("Prefabs/Effects/GeodeShatterVFX"); if (NetworkServer.active) { InfiniteTowerRun component2 = ((Component)Run.instance).GetComponent(); Xoroshiro128Plus val3 = new Xoroshiro128Plus((ulong)component2.waveIndex ^ Run.instance.seed); ((Component)this).gameObject.transform.position = ((Component)component2.safeWardController).transform.GetChild(2).GetChild(0).position; for (int i = 0; i < num; i++) { DirectorPlacementRule val4 = new DirectorPlacementRule { placementMode = (PlacementMode)1, minDistance = 10f, maxDistance = 50f, position = ((Component)this).gameObject.transform.position, spawnOnTarget = ((Component)this).gameObject.transform }; GameObject val5 = DirectorCore.instance.TrySpawnObject(new DirectorSpawnRequest((SpawnCard)(object)val, val4, val3)); if (Object.op_Implicit((Object)(object)val5)) { EffectManager.SpawnEffect(val2, new EffectData { origin = val5.transform.position }, false); } } } else { Object.Destroy((Object)(object)this); } } public void FixedUpdate() { if (ShouldActivate) { timer++; if (timer > 90) { LightningStorm.GetComponent().ServerSetStormActive(true); ShouldActivate = false; } } } public void OnDisable() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) LightningStrikeInstance component = LightningStrike.GetComponent(); component.blastDamageType.damageTypeExtended = (DamageTypeExtended)805306368; } public void DisableStorm() { //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_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown if (Object.op_Implicit((Object)(object)LightningStorm)) { LightningStorm.GetComponent().ServerSetStormActive(false); Object.Destroy((Object)(object)LightningStorm, 3f); } if (!NetworkServer.active) { return; } GeodeController[] array = Object.FindObjectsOfType(typeof(GeodeController)) as GeodeController[]; if (array.Length != 0) { GameObject val = LegacyResourcesAPI.Load("Prefabs/Effects/GeodeShatterVFX"); for (int i = 0; i < array.Length; i++) { Debug.Log((object)array[i]); Object.Destroy((Object)(object)((Component)array[i]).gameObject); EffectManager.SpawnEffect(val, new EffectData { origin = ((Component)array[i]).transform.position }, false); } } } } public class Simulacrum_KnockbackWave : MonoBehaviour { public void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown HealthComponent.TakeDamageForce_DamageInfo_bool_bool -= new hook_TakeDamageForce_DamageInfo_bool_bool(HealthComponent_TakeDamageForce_DamageInfo_bool_bool); } public void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown HealthComponent.TakeDamageForce_DamageInfo_bool_bool += new hook_TakeDamageForce_DamageInfo_bool_bool(HealthComponent_TakeDamageForce_DamageInfo_bool_bool); } private void HealthComponent_TakeDamageForce_DamageInfo_bool_bool(orig_TakeDamageForce_DamageInfo_bool_bool orig, HealthComponent self, DamageInfo damageInfo, bool alwaysApply, bool disableAirControlUntilCollision) { //IL_0051: 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_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005a: 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_006f: Expected I4, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: 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_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Expected O, but got Unknown //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_0242: 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_024b: Unknown result type (might be due to invalid IL or missing references) //IL_0250: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0273: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_0287: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_015d: 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_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self, damageInfo, true, disableAirControlUntilCollision); if (!Object.op_Implicit((Object)(object)damageInfo.attacker) || !(damageInfo.procCoefficient > 0f)) { return; } CharacterMotor characterMotor = self.body.characterMotor; RigidbodyMotor component = ((Component)self).GetComponent(); float num = 1f; HullClassification hullClassification = self.body.hullClassification; HullClassification val = hullClassification; switch ((int)val) { case 0: num = 1f; break; case 1: num = 2.5f; break; case 2: num = 5f; break; } if (Object.op_Implicit((Object)(object)component)) { num *= -1f; } EffectManager.SpawnEffect(CommonAssets.knockbackFinEffect, new EffectData { origin = ((Component)self.body).gameObject.transform.position, scale = num }, true); Ray aimRay; if (Object.op_Implicit((Object)(object)characterMotor)) { float num2 = (characterMotor.isGrounded ? 1.5f : 0.33f); num2 *= damageInfo.procCoefficient; float num3 = KnockbackFinUtil.CalculateImpulseForce(characterMotor.mass, 4, self.body.isChampion, false) * num2; float num4 = num3; float y = characterMotor.velocity.y; if (y < 0f) { num4 -= y * characterMotor.mass; } Vector3 val2 = num4 * Vector3.up; aimRay = damageInfo.attacker.GetComponent().GetAimRay(); Vector3 direction = ((Ray)(ref aimRay)).direction; direction.y = 0f; Vector3 val3 = num3 * 0.2f * 1f * ((Vector3)(ref direction)).normalized; characterMotor.ApplyForce(val2 + val3, false, false); } else if (Object.op_Implicit((Object)(object)component)) { float num5 = -0.5f; num5 *= damageInfo.procCoefficient; float num6 = KnockbackFinUtil.CalculateImpulseForce(component.mass, 4, self.body.isChampion, false) * num5; float num7 = num6; float y2 = component.moveVector.y; if (y2 < 0f) { num7 -= y2 * component.mass; } Vector3 val4 = num7 * Vector3.up; aimRay = damageInfo.attacker.GetComponent().GetAimRay(); Vector3 direction2 = ((Ray)(ref aimRay)).direction; direction2.y = 0f; Vector3 val5 = num6 * 0.2f * 1f * ((Vector3)(ref direction2)).normalized; PhysForceInfo val6 = new PhysForceInfo { force = val4 + val5 }; component.ApplyForceImpulse(ref val6); } } } public class DisableArtifactOfSwarms : MonoBehaviour { private bool wasEnabled; private void OnEnable() { if (NetworkServer.active) { wasEnabled = RunArtifactManager.instance.IsArtifactEnabled(Artifacts.Swarms); RunArtifactManager.instance.SetArtifactEnabledServer(Artifacts.Swarms, false); } } private void OnDisable() { if (NetworkServer.active && Object.op_Implicit((Object)(object)RunArtifactManager.instance)) { RunArtifactManager.instance.SetArtifactEnabledServer(Artifacts.Swarms, wasEnabled); } } } public static class ArrayHelper { public static T[] Add(this T[] array, params T[] items) { int num = array.Length; Array.Resize(ref array, array.Length + items.Length); for (int i = 0; i < items.Length; i++) { array[num + i] = items[i]; } return array; } public static T[] Remove(this T[] array, params T[] items) { return (array ?? Enumerable.Empty()).Except(items).ToArray(); } } public static class H { public struct NewWaveInfo { public GameObject wavePrefab; public GameObject uiPrefab; public string name; public BasicPickupDropTable dropTable; public ItemTier itemTier; public int baseCredits; public int rewardOptionCount; public int bossWave; public InfiniteTowerWaveCategory waveCategory; public float weight; public InfiniteTowerWavePrerequisites prereq; } public struct NewWaveUIInfo { public string NameToken; public string DescToken; public Sprite icon; public Color nameColor; public Color descColor; } public static Random random = new Random(); public static void MakeWave(NewWaveInfo waveInfo, NewWaveUIInfo uiInfo, out GameObject WAVE, out GameObject UI) { //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(waveInfo.wavePrefab, "SimuWave_" + waveInfo.name, true); GameObject val2 = PrefabAPI.InstantiateClone(waveInfo.uiPrefab, "SimuWaveUI_" + waveInfo.name, false); InfiniteTowerWaveController component = val.GetComponent(); if (Object.op_Implicit((Object)(object)waveInfo.dropTable)) { component.rewardDisplayTier = waveInfo.itemTier; component.rewardDropTable = (PickupDropTable)(object)waveInfo.dropTable; } if (waveInfo.rewardOptionCount != 0) { component.rewardOptionCount = waveInfo.rewardOptionCount; } if (waveInfo.baseCredits != 0) { component.baseCredits = waveInfo.baseCredits; } if (waveInfo.bossWave > 0) { component.isBossWave = waveInfo.bossWave == 2; } component.overlayEntries[1].prefab = val2; Transform child = val2.transform.GetChild(0); ((Component)child.GetChild(1).GetChild(0)).GetComponent().token = uiInfo.NameToken; ((Component)child.GetChild(1).GetChild(1)).GetComponent().token = uiInfo.DescToken; if (Object.op_Implicit((Object)(object)uiInfo.icon)) { ((Component)child.GetChild(0).GetChild(0)).GetComponent().sprite = uiInfo.icon; } if (uiInfo.nameColor.a == 1f) { } ref WeightedWave[] wavePrefabs = ref waveInfo.waveCategory.wavePrefabs; WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = waveInfo.weight, prerequisites = waveInfo.prereq }; ArrayUtils.ArrayAppend(ref wavePrefabs, ref val3); UI = val2; WAVE = val; } public static void SetWaveInfo(this GameObject ui, string name, string desc, Sprite icon) { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) SetWaveInfo(ui, name, desc, icon, Color.white, Color.white, setColor: false); } public static void SetWaveInfo(this GameObject ui, string name, string desc, Sprite icon, Color color) { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) SetWaveInfo(ui, name, desc, icon, color, color, setColor: true); } public static void SetWaveInfo(this GameObject ui, string name, string desc, Sprite icon, Color color1, Color color2) { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) SetWaveInfo(ui, name, desc, icon, color1, color2, setColor: true); } public static void SetWaveInfo(GameObject ui, string name, string desc, Sprite icon, Color color1, Color color2, bool setColor) { //IL_0074: 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) Transform child = ui.transform.GetChild(0); Transform child2 = child.GetChild(1); ((Component)child2.GetChild(0)).GetComponent().token = name; ((Component)child2.GetChild(1)).GetComponent().token = desc; if ((Object)(object)icon != (Object)null) { ((Component)child.GetChild(0).GetChild(0)).GetComponent().sprite = icon; } if (setColor) { ((Graphic)((Component)child2.GetChild(0)).GetComponent()).color = color1; ((Graphic)((Component)child.GetChild(2)).GetComponent()).color = color2; } } public static Sprite GetArtifactSprite(ArtifactDef def) { //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) if ((Object)(object)def.smallIconSelectedSprite != (Object)null) { return def.smallIconSelectedSprite; } if (def.smallIconSelectedReference != null) { return Addressables.LoadAssetAsync((object)((AssetReference)def.smallIconSelectedReference).AssetGUID).WaitForCompletion(); } return null; } } } namespace SimulacrumAdditions.Waves { public class WavesMain { public static List orangeWaves = new List(); public static void Start() { Waves_Vanilla.MakeChanges(); Waves_Artifacts.MakeWaves(); Waves_BuffRelated.MakeWaves(); Waves_ConstantlySpawning.MakeWaves(); Waves_Elite.MakeWaves(); Waves_EquipmentGiving.MakeWaves(); Waves_Family.MakeWaves(); Waves_ItemGiving.MakeWaves(); Waves_InfiniteOnDeath.MakeWaves(); Waves_Pulse.MakeWaves(); Waves_SizeChanging.MakeWaves(); Waves_SpecialGuy.MakeWaves(); Waves_SuperBoss.MakeWaves(); Waves_Misc.MakeWaves(); Waves_ModSupport.MakeWaves(); } internal static void LateChanges() { //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0138: 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_016b: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_021c: 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_0227: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_0243: 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_0266: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_035e: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Unknown result type (might be due to invalid IL or missing references) //IL_059e: Unknown result type (might be due to invalid IL or missing references) //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05f6: Unknown result type (might be due to invalid IL or missing references) //IL_05fb: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_07f0: Unknown result type (might be due to invalid IL or missing references) //IL_08a2: Unknown result type (might be due to invalid IL or missing references) //IL_08bc: Unknown result type (might be due to invalid IL or missing references) //IL_08be: Unknown result type (might be due to invalid IL or missing references) //IL_071c: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Unknown result type (might be due to invalid IL or missing references) MakeMultiCSCs.CreateEquipmentDroneSpawnCards(); MakeMultiCSCs.CreateGhostSpawnCards(); MakeMultiCSCs.CreateGhostSpawnCardsAC(); MakeMultiCSCs.CreateBossGhostSpawnCards(); MakeMultiCSCs.CreateDroneSpawnCards(); for (int i = 0; i < Constant.ITModSupportWaves.wavePrefabs.Length; i++) { GameObject wavePrefab = Constant.ITModSupportWaves.wavePrefabs[i].wavePrefab; InfiniteTowerWaveController component = wavePrefab.GetComponent(); switch (((Object)wavePrefab).name) { case "InfiniteTowerWaveArtifactHonorAndBrigade": { ArtifactDef val2 = ArtifactCatalog.FindArtifactDef("SingleEliteType"); if (Object.op_Implicit((Object)(object)val2)) { wavePrefab.AddComponent().artifactDef = val2; ((Component)wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val2); Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(Constant.ITModSupportWaves.wavePrefabs[i]); } break; } case "InfiniteTowerWaveSS2RainbowElites": { EquipmentDef equipmentDef = EquipmentCatalog.GetEquipmentDef(EquipmentCatalog.FindEquipmentIndex("AffixEmpyrean")); if (Object.op_Implicit((Object)(object)equipmentDef)) { ItemDef itemDef = ItemCatalog.GetItemDef(ItemCatalog.FindItemIndex("SS2_ITEM_BOOSTMOVESPEED_NAME")); ItemDef itemDef2 = ItemCatalog.GetItemDef(ItemCatalog.FindItemIndex("SS2_ITEM_BOOSTCOOLDOWNS_NAME")); CharacterSpawnCard val3 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/Bell/cscBell.asset").WaitForCompletion()); ((Object)val3).name = "cscEmpyreanIT"; val3.noElites = true; val3.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[7] { new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 3950 }, new ItemCountPair { itemDef = Items.BoostHp, count = 10 }, new ItemCountPair { itemDef = Items.BoostDamage, count = 40 }, new ItemCountPair { itemDef = Items.AdaptiveArmor, count = 1 }, new ItemCountPair { itemDef = Items.TeleportWhenOob, count = 1 }, new ItemCountPair { itemDef = itemDef, count = 50 }, new ItemCountPair { itemDef = itemDef2, count = 100 } }; val3.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { equipmentDef }; wavePrefab.GetComponent().spawnList[0].spawnCard = val3; wavePrefab.GetComponent().spawnList[0].spawnDistance = (MonsterSpawnDistance)2; ((Component)component.overlayEntries[1].prefab.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = equipmentDef.passiveBuffDef.iconSprite; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(Constant.ITModSupportWaves.wavePrefabs[i]); } break; } case "InfiniteTowerWaveArtifactSS2Cognation": { ArtifactDef val = ArtifactCatalog.FindArtifactDef("Cognation"); if (Object.op_Implicit((Object)(object)val)) { wavePrefab.GetComponent().artifactDef = val; ((Component)wavePrefab.GetComponent().overlayEntries[1].prefab.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val); Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(Constant.ITModSupportWaves.wavePrefabs[i]); } break; } } } GameObject uiPrefab = Constant.ITBasicWaves.wavePrefabs[0].wavePrefab.GetComponent().uiPrefab; Color color = default(Color); ((Color)(ref color))..ctor(1f, 0.7647f, 1.2647f, 1f); for (int j = 0; j < Constant.ITBasicWaves.wavePrefabs.Length; j++) { GameObject wavePrefab2 = Constant.ITBasicWaves.wavePrefabs[j].wavePrefab; InfiniteTowerWaveController component2 = wavePrefab2.GetComponent(); if (component2.maxSquadSize > 20) { component2.maxSquadSize = 20; } if (component2.baseCredits > 199f) { component2.baseCredits -= 14f; } if (component2 is InfiniteTowerExplicitSpawnWaveController) { component2.isBossWave = false; component2.uiPrefab = uiPrefab; component2.wavePeriodSeconds = 60f; } ArtifactEnabler component3 = wavePrefab2.GetComponent(); if (Object.op_Implicit((Object)(object)component3)) { ((Graphic)((Component)component2.overlayEntries[1].prefab.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = color; } } for (int k = 0; k < orangeWaves.Count; k++) { orangeWaves[k].GetComponent().rewardDisplayTier = Constant.ItemOrangeTierDef.tier; } orangeWaves.Clear(); Waves_SpecialGuy.WaveBoss_EquipmentDrone.AddComponent().cscList = Waves_SpecialGuy.CardRandomizerEquipmentDrones.cscList; Waves_SpecialGuy.WaveBoss_EquipmentDrone.GetComponent().rewardDisplayTier = Constant.ItemOrangeTierDef.tier; for (int l = 0; l < Constant.ITBossWaves.wavePrefabs.Length; l++) { GameObject wavePrefab3 = Constant.ITBossWaves.wavePrefabs[l].wavePrefab; InfiniteTowerWaveController component4 = wavePrefab3.GetComponent(); if (component4.maxSquadSize > 20) { component4.maxSquadSize = 20; } if (component4.wavePeriodSeconds == 60f) { component4.wavePeriodSeconds = 50f; } } for (int m = 0; m < Constant.ITSuperBossWaves.wavePrefabs.Length; m++) { if (Constant.ITSuperBossWaves.wavePrefabs[m].weight > 1f) { Constant.ITSuperBossWaves.wavePrefabs[m].weight = 1f; } GameObject wavePrefab4 = Constant.ITSuperBossWaves.wavePrefabs[m].wavePrefab; string name = ((Object)wavePrefab4).name; string text = name; if (text == "InfiniteTowerWaveBossBrother") { wavePrefab4.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITLunar; wavePrefab4.GetComponent().rewardDisplayTier = (ItemTier)3; wavePrefab4.GetComponent().newRadius = 110f; wavePrefab4.AddComponent().hpBonusMulti = 3f; wavePrefab4.GetComponent().damageBonusMulti = 1.2f; wavePrefab4.GetComponent().halfOnNonFinal = false; InfiniteTowerExplicitSpawnWaveController component5 = wavePrefab4.GetComponent(); ((InfiniteTowerWaveController)component5).baseCredits = 50f; ((InfiniteTowerWaveController)component5).immediateCreditsFraction = 0.5f; ((InfiniteTowerWaveController)component5).linearCreditsPerWave = 4f; ((InfiniteTowerWaveController)component5).combatDirector.monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/dccsLunarFamily.asset").WaitForCompletion(); ((InfiniteTowerWaveController)component5).secondsBeforeSuddenDeath = ((InfiniteTowerWaveController)component5).secondsBeforeSuddenDeath * 2f; } } InfiniteTowerExplicitSpawnWaveController component6 = Constant.ScavWave.GetComponent(); ((InfiniteTowerWaveController)component6).rewardDisplayTier = (ItemTier)4; ((InfiniteTowerWaveController)component6).rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; ((InfiniteTowerWaveController)component6).baseCredits = 100f; ((InfiniteTowerWaveController)component6).linearCreditsPerWave = 3f; ((InfiniteTowerWaveController)component6).secondsBeforeSuddenDeath = ((InfiniteTowerWaveController)component6).secondsBeforeSuddenDeath * 2f; Constant.ScavWave.AddComponent().hpBonusMulti = 0.3f; Constant.ScavWave.GetComponent().damageBonusMulti = 0.3f; Constant.ScavWave.GetComponent().halfOnNonFinal = false; Constant.ScavWave.AddComponent().newRadius = 80f; CharacterSpawnCard val4 = Object.Instantiate(component6.spawnList[0].spawnCard); ((Object)val4).name = "cscScavBossIT"; val4.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[1] { new ItemCountPair { count = 1, itemDef = Items.AdaptiveArmor } }; component6.spawnList[0].spawnCard = val4; if (WConfig.cfgMusicSuperBoss.Value) { AddMusic(); } } internal static void AddMusic() { //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_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0085: 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_009a: 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_00af: 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_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: 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_0100: Expected O, but got Unknown SceneDef val = LegacyResourcesAPI.Load("SceneDefs/moon2"); SceneDef val2 = LegacyResourcesAPI.Load("SceneDefs/rootjungle"); SceneDef val3 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/voidraid/voidraid.asset").WaitForCompletion(); SceneDef val4 = LegacyResourcesAPI.Load("SceneDefs/snowyforest"); SceneDef val5 = LegacyResourcesAPI.Load("SceneDefs/goldshores"); SceneDef val6 = LegacyResourcesAPI.Load("SceneDefs/shipgraveyard"); SceneDef val7 = LegacyResourcesAPI.Load("SceneDefs/skymeadow"); SceneDef val8 = LegacyResourcesAPI.Load("SceneDefs/dampcavesimple"); MusicTrackDef track = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/muBossfightDLC1_12.asset").WaitForCompletion(); MusicTrackDef track2 = Addressables.LoadAssetAsync((object)"RoR2/DLC2/Common/muSong_HelminthBoss.asset").WaitForCompletion(); MusicTrackDef track3 = Addressables.LoadAssetAsync((object)"RoR2/DLC2/Common/muSong_MeridianFSB.asset").WaitForCompletion(); MusicTrackDef track4 = Addressables.LoadAssetAsync((object)"RoR2/DLC2/Common/muSong_Lakes&HabitatBoss.asset").WaitForCompletion(); MusicTrackDef track5 = Addressables.LoadAssetAsync((object)"bdab9790c981dac439bf3b540b2b171d").WaitForCompletion(); WwiseStateReference wwiseObjectReference = Addressables.LoadAssetAsync((object)"Wwise/0DE64677-408F-42E3-8F5A-7246170C2CE9.asset").WaitForCompletion(); WwiseStateReference val9 = Addressables.LoadAssetAsync((object)"Wwise/08652DAD-B715-437F-AB20-0254AD418B4D.asset").WaitForCompletion(); State val10 = new State(); val10.WwiseObjectReference = wwiseObjectReference; for (int i = 0; i < Constant.ITSuperBossWaves.wavePrefabs.Length; i++) { GameObject wavePrefab = Constant.ITSuperBossWaves.wavePrefabs[i].wavePrefab; switch (((Object)wavePrefab).name) { case "InfiniteTowerWaveWaveBossBrother": wavePrefab.AddComponent().track = val.bossTrack; wavePrefab.AddComponent().data = val10; break; case "WaveBoss_VoidRaidCrab": wavePrefab.AddComponent().track = val3.bossTrack; wavePrefab.AddComponent().data = val10; break; case "WaveBoss_FalseSon": wavePrefab.AddComponent().track = track3; wavePrefab.AddComponent().data = val10; break; case "WaveBoss_SuperVoidMegaCrab": wavePrefab.AddComponent().track = track2; break; case "WaveBoss_TitanGold": wavePrefab.AddComponent().track = val8.bossTrack; break; case "WaveBoss_SuperRoboBallBoss": wavePrefab.AddComponent().track = val7.bossTrack; break; } } Constant.ScavWave.AddComponent().track = track; Waves_SuperBoss.WaveBoss_ScavLunar.AddComponent().track = track4; Waves_SuperBoss.WaveBoss_VultureHunter.AddComponent().track = track5; } } public class Waves_Artifacts { public static void MakeWaves() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_004a: 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_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_041e: Unknown result type (might be due to invalid IL or missing references) //IL_0423: Unknown result type (might be due to invalid IL or missing references) //IL_04d8: Unknown result type (might be due to invalid IL or missing references) //IL_0514: Unknown result type (might be due to invalid IL or missing references) //IL_0519: Unknown result type (might be due to invalid IL or missing references) ArtifactDef val = LegacyResourcesAPI.Load("ArtifactDefs/EliteOnly"); ArtifactDef val2 = LegacyResourcesAPI.Load("ArtifactDefs/MonsterTeamGainsItems"); ArtifactDef val3 = LegacyResourcesAPI.Load("ArtifactDefs/RandomSurvivorOnRespawn"); ArtifactDef val4 = LegacyResourcesAPI.Load("ArtifactDefs/Sacrifice"); ArtifactDef val5 = LegacyResourcesAPI.Load("ArtifactDefs/Swarms"); RunArtifactManager.onArtifactEnabledGlobal += new ArtifactStateChangeDelegate(RespawnMetamorphosis_onArtifactEnabledGlobal); RunArtifactManager.onArtifactDisabledGlobal += new ArtifactStateChangeDelegate(RespawnMetamorphosis_onArtifactDisabledGlobal); InfiniteTowerWaveArtifactPrerequisites val6 = ScriptableObject.CreateInstance(); val6.bannedArtifact = val2; ((Object)val6).name = "ArtifacEvolutionDisabledPrerequisite"; H.MakeWave(new H.NewWaveInfo { name = "ArtifactEvolution", dropTable = Constant.dtITWaveTier1, rewardOptionCount = 2, wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, waveCategory = Constant.ITBasicWaves, weight = 2f, prereq = (InfiniteTowerWavePrerequisites)(object)val6 }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_EVOLUTION", DescToken = "ITWAVE_DESC_BASIC_EVOLUTION", icon = H.GetArtifactSprite(val2) }, out var WAVE, out var UI); WAVE.GetComponent().artifactDef = val2; InfiniteTowerWaveArtifactPrerequisites val7 = ScriptableObject.CreateInstance(); val7.bannedArtifact = val4; ((Object)val7).name = "ArtifacSacrificeDisabledPrerequisite"; H.MakeWave(new H.NewWaveInfo { name = "ArtifactSacrifice", dropTable = (BasicPickupDropTable)(object)Constant.dtITBasicWaveOnKill, wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, waveCategory = Constant.ITBasicWaves, weight = 2f, prereq = (InfiniteTowerWavePrerequisites)(object)val7 }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_SACRIFICE", DescToken = "ITWAVE_DESC_BASIC_SACRIFICE", icon = H.GetArtifactSprite(val4) }, out var WAVE2, out UI); WAVE2.GetComponent().artifactDef = val4; InfiniteTowerWaveArtifactPrerequisites val8 = ScriptableObject.CreateInstance(); val8.bannedArtifact = val3; ((Object)val8).name = "ArtifacRandomSurvivorDisabledPrerequisite"; H.MakeWave(new H.NewWaveInfo { name = "ArtifactMetamorphosis", wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, dropTable = (BasicPickupDropTable)(object)Constant.dtITRainbow, waveCategory = Constant.ITBasicWaves, weight = 1f, prereq = (InfiniteTowerWavePrerequisites)(object)val8 }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_METAMORPH", DescToken = "ITWAVE_DESC_BASIC_METAMORPH", icon = H.GetArtifactSprite(val3) }, out var WAVE3, out UI); WAVE3.GetComponent().artifactDef = val3; H.MakeWave(new H.NewWaveInfo { name = "ArtifactHonor", dropTable = (BasicPickupDropTable)(object)Constant.dtITBasicBonusGreen, itemTier = (ItemTier)1, baseCredits = 115, wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, waveCategory = Constant.ITBasicWaves, weight = 2f, prereq = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_HONOR", DescToken = "ITWAVE_DESC_BASIC_HONOR", icon = H.GetArtifactSprite(val) }, out var WAVE4, out UI); WAVE4.GetComponent().artifactDef = val; InfiniteTowerWaveArtifactPrerequisites val9 = ScriptableObject.CreateInstance(); val9.bannedArtifact = val5; ((Object)val9).name = "ArtifacSwarmDisabledPrerequisite"; H.MakeWave(new H.NewWaveInfo { name = "ArtifactSwarms", dropTable = Constant.dtITWaveTier1, rewardOptionCount = 6, wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, waveCategory = Constant.ITBasicWaves, weight = 2f, prereq = (InfiniteTowerWavePrerequisites)(object)val9 }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_SWARMS", DescToken = "ARTIFACT_SWARMS_DESCRIPTION", icon = H.GetArtifactSprite(val5) }, out var WAVE5, out UI); WAVE5.GetComponent().artifactDef = val5; ArtifactDef val10 = Addressables.LoadAssetAsync((object)"RoR2/CU8/Devotion.asset").WaitForCompletion(); H.MakeWave(new H.NewWaveInfo { name = "ArtifactDevotion", dropTable = Constant.dtITWaveTier1, rewardOptionCount = 2, wavePrefab = Constant.ArtifactWave, uiPrefab = Constant.ArtifactWaveUI, waveCategory = Constant.ITBasicWaves, weight = 2f }, new H.NewWaveUIInfo { NameToken = "ITWAVE_NAME_BASIC_DEVOTION", DescToken = "ITWAVE_DESC_BASIC_DEVOTION", icon = H.GetArtifactSprite(val10) }, out var WAVE6, out UI); WAVE6.GetComponent().artifactDef = val10; WAVE6.AddComponent().rewardDisplayTier = (ItemTier)0; WAVE6.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; WAVE6.GetComponent().rewardOptionCount = 2; SimulacrumInteractablesWaveHelper simulacrumInteractablesWaveHelper = WAVE6.AddComponent(); simulacrumInteractablesWaveHelper.maxDistance = 20; simulacrumInteractablesWaveHelper.spawnCard = Addressables.LoadAssetAsync((object)"RoR2/CU8/LemurianEgg/iscLemurianEgg.asset").WaitForCompletion(); simulacrumInteractablesWaveHelper.spawnsOnStart = 4; simulacrumInteractablesWaveHelper.spawnedTimer = 99999f; simulacrumInteractablesWaveHelper.interval = 99999f; BossWaves(); } public static void BossWaves() { //IL_00e2: 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_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_0392: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Unknown result type (might be due to invalid IL or missing references) //IL_03ad: 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_03e7: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Unknown result type (might be due to invalid IL or missing references) //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_0505: Unknown result type (might be due to invalid IL or missing references) //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_052e: Unknown result type (might be due to invalid IL or missing references) //IL_0547: Unknown result type (might be due to invalid IL or missing references) //IL_0549: Unknown result type (might be due to invalid IL or missing references) //IL_0581: Unknown result type (might be due to invalid IL or missing references) //IL_0586: Unknown result type (might be due to invalid IL or missing references) //IL_0681: Unknown result type (might be due to invalid IL or missing references) //IL_068e: Unknown result type (might be due to invalid IL or missing references) //IL_06b2: Unknown result type (might be due to invalid IL or missing references) //IL_06b4: Unknown result type (might be due to invalid IL or missing references) //IL_06cd: Unknown result type (might be due to invalid IL or missing references) //IL_06cf: Unknown result type (might be due to invalid IL or missing references) //IL_070e: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Unknown result type (might be due to invalid IL or missing references) //IL_0810: Unknown result type (might be due to invalid IL or missing references) //IL_0815: Unknown result type (might be due to invalid IL or missing references) //IL_081a: Unknown result type (might be due to invalid IL or missing references) //IL_0844: Unknown result type (might be due to invalid IL or missing references) //IL_0849: Unknown result type (might be due to invalid IL or missing references) //IL_084e: Unknown result type (might be due to invalid IL or missing references) //IL_0872: 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_087c: Unknown result type (might be due to invalid IL or missing references) //IL_0889: Unknown result type (might be due to invalid IL or missing references) //IL_08a4: Unknown result type (might be due to invalid IL or missing references) //IL_08a6: Unknown result type (might be due to invalid IL or missing references) //IL_08bf: Unknown result type (might be due to invalid IL or missing references) //IL_08c1: Unknown result type (might be due to invalid IL or missing references) //IL_0948: 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_0a3e: Unknown result type (might be due to invalid IL or missing references) //IL_0a43: Unknown result type (might be due to invalid IL or missing references) //IL_0a45: Unknown result type (might be due to invalid IL or missing references) //IL_0a69: Unknown result type (might be due to invalid IL or missing references) //IL_0a6e: Unknown result type (might be due to invalid IL or missing references) //IL_0a70: Unknown result type (might be due to invalid IL or missing references) //IL_0aa8: Unknown result type (might be due to invalid IL or missing references) //IL_0acf: Unknown result type (might be due to invalid IL or missing references) //IL_0ad1: Unknown result type (might be due to invalid IL or missing references) //IL_0aea: Unknown result type (might be due to invalid IL or missing references) //IL_0aec: Unknown result type (might be due to invalid IL or missing references) ArtifactDef val = LegacyResourcesAPI.Load("ArtifactDefs/EliteOnly"); ArtifactDef def = LegacyResourcesAPI.Load("ArtifactDefs/ShadowClone"); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_ArtifactEliteOnly", true); GameObject val3 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerCurrentBossWaveUIArtifactEliteOnly", false); ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_HONOR"; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_HONOR"; ((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.8f, 1f); val2.GetComponent().overlayEntries[1].prefab = val3; val2.AddComponent().artifactDef = val; InfiniteTowerWaveController component = val2.GetComponent(); component.baseCredits *= 0.7f; ((InfiniteTowerWaveController)val2.GetComponent()).immediateCreditsFraction = 0.1f; val2.GetComponent().rewardDisplayTier = (ItemTier)4; val2.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; val2.AddComponent().newRadius = 95f; InfiniteTowerWaveController component2 = val2.GetComponent(); component2.wavePeriodSeconds += 15f; SimulacrumGiveItemsOnStart simulacrumGiveItemsOnStart = val2.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITDamageDown"; simulacrumGiveItemsOnStart.count = 40; simulacrumGiveItemsOnStart.extraPer10Wave = 0f; WeightedWave val4 = new WeightedWave { wavePrefab = val2, weight = 7f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val4); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_ArtifactDoppelgangerVengence", true); GameObject val6 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerCurrentBossWaveUIArtifactDoppelganger", false); InfiniteTowerBossWaveController component3 = val5.GetComponent(); ((InfiniteTowerWaveController)component3).baseCredits = ((InfiniteTowerWaveController)component3).baseCredits * 0.8f; ((InfiniteTowerWaveController)val5.GetComponent()).immediateCreditsFraction = 0f; InfiniteTowerBossWaveController component4 = val5.GetComponent(); ((InfiniteTowerWaveController)component4).secondsBeforeSuddenDeath = ((InfiniteTowerWaveController)component4).secondsBeforeSuddenDeath * 1.25f; val5.GetComponent().rewardDisplayTier = (ItemTier)1; val5.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier2; val5.AddComponent().newRadius = 80f; val5.AddComponent().code = SimuWaveUnsortedExtras.Case.Vengence; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_VENGENCE"; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_VENGENCE"; ((Component)val6.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(def); ((Graphic)((Component)val6.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.8f, 1f); val5.GetComponent().overlayEntries[1].prefab = val6; WeightedWave val7 = new WeightedWave { wavePrefab = val5, weight = 9f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val7); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_ArtifactSingleMonsterType", true); GameObject val9 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_ArtifactSingleMonsterTypeUI", false); InfiniteTowerWaveArtifactPrerequisites val10 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/ArtifactSingleMonsterTypeDisabledPrerequisite.asset").WaitForCompletion(); val8.AddComponent().artifactDef = val10.bannedArtifact; val8.GetComponent().overlayEntries[1].prefab = val9; val8.GetComponent().eliteBias = 0.1f; val8.GetComponent().wavePeriodSeconds = 30f; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_KIN"; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_KIN"; ((Component)val9.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val10.bannedArtifact); ((Graphic)((Component)val9.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.8f, 1f); WeightedWave val11 = new WeightedWave { wavePrefab = val8, weight = 7f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val11); GameObject val12 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_ArtifactDissonance", true); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_ArtifactDissonanceUI", false); InfiniteTowerWaveArtifactPrerequisites val14 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/ArtifactMixEnemyDisabledPrerequisite.asset").WaitForCompletion(); val12.AddComponent().artifactDef = val14.bannedArtifact; val12.GetComponent().overlayEntries[1].prefab = val13; val12.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossGreenVoid; ((Component)val13.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_DISSONANCE"; ((Component)val13.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_DISSONANCE"; ((Component)val13.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val14.bannedArtifact); ((Graphic)((Component)val13.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.8f, 1f); WeightedWave val15 = new WeightedWave { wavePrefab = val12, weight = 10f, prerequisites = (InfiniteTowerWavePrerequisites)(object)val14 }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val15); GameObject val16 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_AllEnemiesAvailable", true); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_AllEnemiesAvailableUI", false); val16.GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"RoR2/Base/MixEnemy/dccsMixEnemy.asset").WaitForCompletion(); val16.GetComponent().overlayEntries[1].prefab = val17; val16.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossGreenVoid; val16.AddComponent().newRadius = 80f; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_DISSOFAKE"; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_DISSOFAKE"; ((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = H.GetArtifactSprite(val14.bannedArtifact); ((Graphic)((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.8f, 1f) * Waves_Family.FamilyEventIconColor; TextMeshProUGUI component5 = ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent(); ((Graphic)component5).color = ((Graphic)component5).color * Waves_Family.FamilyEventIconColor; Image component6 = ((Component)val17.transform.GetChild(0).GetChild(2)).GetComponent(); ((Graphic)component6).color = ((Graphic)component6).color * Waves_Family.FamilyEventOutlineColor; WeightedWave val18 = new WeightedWave { wavePrefab = val16, weight = 4f }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val18); GameObject val19 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_DoubleArtifact", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_DoubleArtifactUI", false); val19.GetComponent().baseCredits = 450f; val19.GetComponent().linearCreditsPerWave = 0f; val19.GetComponent().immediateCreditsFraction = 0f; val19.AddComponent().newRadius = 100f; val19.AddComponent(); val19.GetComponent().rewardDisplayTier = (ItemTier)1; val19.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossBonusRed; Color val21 = default(Color); ((Color)(ref val21))..ctor(1.2f, 0.8f, 1.2f); Color color = default(Color); ((Color)(ref color))..ctor(1f, 0.7f, 0.8f, 1f); val19.GetComponent().overlayEntries[1].prefab = val20; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_ARTIFACTS"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_ARTIFACTS"; ((Graphic)((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = color; TextMeshProUGUI component7 = ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent(); ((Graphic)component7).color = ((Graphic)component7).color * val21; Image component8 = ((Component)val20.transform.GetChild(0).GetChild(2)).GetComponent(); ((Graphic)component8).color = ((Graphic)component8).color * val21; Object.Instantiate(((Component)val20.transform.GetChild(0).GetChild(0)).gameObject, val20.transform.GetChild(0)); WeightedWave val22 = new WeightedWave { wavePrefab = val19, weight = 6f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val22); } public static void RespawnMetamorphosis_onArtifactEnabledGlobal(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { if (!((Object)(object)artifactDef == (Object)(object)Artifacts.randomSurvivorOnRespawnArtifactDef)) { return; } foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { ((MonoBehaviour)instance).StopAllCoroutines(); ((MonoBehaviour)instance).StartCoroutine(DelayedRespawn(instance, 0.35f)); } } public static void RespawnMetamorphosis_onArtifactDisabledGlobal(RunArtifactManager runArtifactManager, ArtifactDef artifactDef) { if (!((Object)(object)artifactDef == (Object)(object)Artifacts.randomSurvivorOnRespawnArtifactDef)) { return; } foreach (PlayerCharacterMasterController instance in PlayerCharacterMasterController.instances) { instance.SetBodyPrefabToPreference(); ((MonoBehaviour)instance).StopAllCoroutines(); ((MonoBehaviour)instance).StartCoroutine(DelayedRespawn(instance, 0.1f)); } } public static IEnumerator DelayedRespawn(PlayerCharacterMasterController playerCharacterMasterController, float delay) { yield return (object)new WaitForSeconds(delay); CharacterBody temp = playerCharacterMasterController.master.GetBody(); if (Object.op_Implicit((Object)(object)temp)) { playerCharacterMasterController.master.Respawn(temp.footPosition, temp.transform.rotation, false); } } } public class Waves_BuffRelated { public static BuffDef bdSlippery; public static BuffDef bdBadLuck; internal static void MakeWaves() { //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0163: 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_0196: Unknown result type (might be due to invalid IL or missing references) //IL_0198: 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_01b1: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02f9: Unknown result type (might be due to invalid IL or missing references) //IL_0331: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03b2: 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_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_03fd: Unknown result type (might be due to invalid IL or missing references) //IL_0437: Unknown result type (might be due to invalid IL or missing references) //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_0550: Unknown result type (might be due to invalid IL or missing references) //IL_0588: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Unknown result type (might be due to invalid IL or missing references) //IL_05c7: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: Unknown result type (might be due to invalid IL or missing references) //IL_05f0: Unknown result type (might be due to invalid IL or missing references) //IL_0609: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Unknown result type (might be due to invalid IL or missing references) //IL_0674: Unknown result type (might be due to invalid IL or missing references) //IL_0676: Unknown result type (might be due to invalid IL or missing references) //IL_07be: Unknown result type (might be due to invalid IL or missing references) //IL_07e4: Unknown result type (might be due to invalid IL or missing references) //IL_0804: Unknown result type (might be due to invalid IL or missing references) //IL_080e: Unknown result type (might be due to invalid IL or missing references) //IL_0835: Unknown result type (might be due to invalid IL or missing references) //IL_0837: Unknown result type (might be due to invalid IL or missing references) //IL_0850: Unknown result type (might be due to invalid IL or missing references) //IL_0852: Unknown result type (might be due to invalid IL or missing references) //IL_09a6: Unknown result type (might be due to invalid IL or missing references) //IL_09d1: Unknown result type (might be due to invalid IL or missing references) //IL_09db: Unknown result type (might be due to invalid IL or missing references) //IL_0a00: Unknown result type (might be due to invalid IL or missing references) //IL_0a0a: 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_0a3e: Unknown result type (might be due to invalid IL or missing references) //IL_0a40: 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_0a5b: Unknown result type (might be due to invalid IL or missing references) //IL_0bb8: Unknown result type (might be due to invalid IL or missing references) //IL_0bd8: 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_0c09: Unknown result type (might be due to invalid IL or missing references) //IL_0c0b: Unknown result type (might be due to invalid IL or missing references) //IL_0c24: 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_0d9e: Unknown result type (might be due to invalid IL or missing references) //IL_0dc4: Unknown result type (might be due to invalid IL or missing references) //IL_0de4: Unknown result type (might be due to invalid IL or missing references) //IL_0dee: Unknown result type (might be due to invalid IL or missing references) //IL_0e15: Unknown result type (might be due to invalid IL or missing references) //IL_0e17: Unknown result type (might be due to invalid IL or missing references) //IL_0e30: Unknown result type (might be due to invalid IL or missing references) //IL_0e32: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveVoidBear", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerWaveVoidBearUI", false); val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusVoid; val.GetComponent().maxSquadSize = 15; val.AddComponent().variant = 0; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_VOIDBEAR"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_VOIDBEAR"; BuffDef val3 = LegacyResourcesAPI.Load("BuffDefs/BearVoidReady"); ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val3.iconSprite; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val3.buffColor; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = val3.buffColor; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.675f, 0.425f, 0.825f, 1f); WeightedWave val4 = new WeightedWave { wavePrefab = val, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val4); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveBlindness", true); GameObject val6 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveBlindnessUI", false); val5.GetComponent().overlayEntries[1].prefab = val6; val5.AddComponent().variant = -1; val5.GetComponent().addToPlayer = true; val5.GetComponent().addToEnemies = false; val5.GetComponent().buffDef = Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/Buffs/bdBlinded.asset").WaitForCompletion(); ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BLIND"; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BLIND"; ((Graphic)((Component)val6.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.2f, 0.2f, 0.2f); ((Graphic)((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.2f, 0.2f, 0.2f); ((Graphic)((Component)val6.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent()).color = new Color(0.2f, 0.2f, 0.2f); ((Graphic)((Component)val6.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0f, 0f, 0f); WeightedWave val7 = new WeightedWave { wavePrefab = val5, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val7); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveSlippery", true); GameObject val9 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveSlipperyUI", false); BuffDef val10 = LegacyResourcesAPI.Load("buffdefs/Weak"); BuffDef val11 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/OutOfCombatArmor/bdOutOfCombatArmorBuff.asset").WaitForCompletion(); bdSlippery = ScriptableObject.CreateInstance(); bdSlippery.iconSprite = val11.iconSprite; bdSlippery.buffColor = new Color(0.9f, 0.8f, 1f); ((Object)bdSlippery).name = "bdITSlippery"; bdSlippery.isDebuff = false; bdSlippery.canStack = false; bdSlippery.isCooldown = false; ContentAddition.AddBuffDef(bdSlippery); val8.GetComponent().overlayEntries[1].prefab = val9; val8.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryUtility; val8.AddComponent().variant = -1; val8.GetComponent().addToPlayer = true; val8.GetComponent().buffDef = bdSlippery; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_SLIPPERY"; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_SLIPPERY"; ((Graphic)((Component)val9.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.9f, 0.8f, 1f); ((Graphic)((Component)val9.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.9f, 0.8f, 1f); ((Graphic)((Component)val9.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.8f, 0.7f, 0.9f); WeightedWave val12 = new WeightedWave { wavePrefab = val8, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveBadLuck", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveBadLuckUI", false); Color val15 = default(Color); ((Color)(ref val15))..ctor(0.7f, 0.8f, 0.3f); bdBadLuck = ScriptableObject.CreateInstance(); bdBadLuck.iconSprite = val10.iconSprite; bdBadLuck.buffColor = val15; ((Object)bdBadLuck).name = "bdITBadLuck"; bdBadLuck.isDebuff = false; bdBadLuck.canStack = false; bdBadLuck.isCooldown = false; ContentAddition.AddBuffDef(bdBadLuck); val13.GetComponent().overlayEntries[1].prefab = val14; val13.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val13.GetComponent().rewardOptionCount = 6; val13.AddComponent().variant = -1; val13.GetComponent().addToPlayer = true; val13.GetComponent().addToEnemies = false; val13.GetComponent().buffDef = bdBadLuck; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BADLUCK"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BADLUCK"; ((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Constant.texITWaveDefaultWhiteS; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val15; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = val15; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(2)).GetComponent()).color = val15; WeightedWave val16 = new WeightedWave { wavePrefab = val13, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val16); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveNoCooldowns", true); GameObject val18 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveNoCooldownsUI", false); BuffDef val19 = LegacyResourcesAPI.Load("BuffDefs/NoCooldowns"); val17.GetComponent().overlayEntries[1].prefab = val18; val17.AddComponent().variant = -1; val17.GetComponent().addToPlayer = true; val17.GetComponent().addToEnemies = true; val17.GetComponent().buffDef = val19; val17.AddComponent().itemString = "BoostAttackSpeed"; val17.GetComponent().count = 3; val17.GetComponent().hideItem = true; ((Component)val18.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_NOCOOLDOWN"; ((Component)val18.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_NOCOOLDOWN"; ((Component)val18.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val19.iconSprite; ((Graphic)((Component)val18.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val19.buffColor; ((Graphic)((Component)val18.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = val19.buffColor * 1.2f; ((Graphic)((Component)val18.transform.GetChild(0).GetChild(2)).GetComponent()).color = val19.buffColor * 0.9f; WeightedWave val20 = new WeightedWave { wavePrefab = val17, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val20); GameObject val21 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveLunarTonic", true); GameObject val22 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveLunarTonicUI", false); BuffDef val23 = LegacyResourcesAPI.Load("BuffDefs/TonicBuff"); val21.GetComponent().overlayEntries[1].prefab = val22; SimuBuffWaveHelper simuBuffWaveHelper = val21.AddComponent(); simuBuffWaveHelper.addToPlayer = true; simuBuffWaveHelper.addToEnemies = true; simuBuffWaveHelper.timed = true; simuBuffWaveHelper.duration = 14f; simuBuffWaveHelper.buffDef = val23; val21.AddComponent().itemString = "TonicAffliction"; val21.GetComponent().count = 10; Color color = default(Color); ((Color)(ref color))..ctor(0.7f, 0.8f, 1f); ((Component)val22.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_TONIC"; ((Component)val22.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_TONIC"; ((Component)val22.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val23.iconSprite; ((Graphic)((Component)val22.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = color; ((Graphic)((Component)val22.transform.GetChild(0).GetChild(2)).GetComponent()).color = color; WeightedWave val24 = new WeightedWave { wavePrefab = val21, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val24); GameObject val25 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_Leeching", true); GameObject val26 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_LeechingUI", false); BuffDef buffDef = LegacyResourcesAPI.Load("BuffDefs/LifeSteal"); val25.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossCategoryHealing; val25.AddComponent().newRadius = 80f; val25.GetComponent().overlayEntries[1].prefab = val26; simuBuffWaveHelper = val25.AddComponent(); simuBuffWaveHelper.addToPlayer = false; simuBuffWaveHelper.addToEnemies = true; simuBuffWaveHelper.buffDef = buffDef; Color color2 = default(Color); ((Color)(ref color2))..ctor(0.9f, 0.8f, 0.3f); SimulacrumGiveItemsOnStart simulacrumGiveItemsOnStart = val25.AddComponent(); simulacrumGiveItemsOnStart.count = 1; simulacrumGiveItemsOnStart.itemString = "RepeatHeal"; simulacrumGiveItemsOnStart = val25.AddComponent(); simulacrumGiveItemsOnStart.count = 1; simulacrumGiveItemsOnStart.itemString = "IncreaseHealing"; simulacrumGiveItemsOnStart = val25.AddComponent(); simulacrumGiveItemsOnStart.count = 1; simulacrumGiveItemsOnStart.itemString = "BarrierOnOverHeal"; ((Component)val26.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_LEECH"; ((Component)val26.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_LEECH"; ((Graphic)((Component)val26.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = color2; ((Graphic)((Component)val26.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = color2; ((Graphic)((Component)val26.transform.GetChild(0).GetChild(2)).GetComponent()).color = color2; WeightedWave val27 = new WeightedWave { wavePrefab = val25, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val27); } } public class Waves_ConstantlySpawning { internal static void MakeWaves() { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_020c: 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_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: Unknown result type (might be due to invalid IL or missing references) //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_03b6: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: Unknown result type (might be due to invalid IL or missing references) //IL_03fd: Unknown result type (might be due to invalid IL or missing references) //IL_0407: Unknown result type (might be due to invalid IL or missing references) //IL_043e: Unknown result type (might be due to invalid IL or missing references) //IL_044b: Unknown result type (might be due to invalid IL or missing references) //IL_0472: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_048d: Unknown result type (might be due to invalid IL or missing references) //IL_048f: Unknown result type (might be due to invalid IL or missing references) BuffDef val = LegacyResourcesAPI.Load("BuffDefs/DeathMark"); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveSulfurPods", true); GameObject val3 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveSulfurPodsUI", false); val2.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val2.GetComponent().rewardDisplayTier = (ItemTier)0; InfiniteTowerWaveController component = val2.GetComponent(); component.wavePeriodSeconds += 5f; InteractableSpawnCard val4 = ScriptableObject.CreateInstance(); ((Object)val4).name = "cscITSulfurPod"; val4.slightlyRandomizeOrientation = false; val4.orientToFloor = false; ((SpawnCard)val4).directorCreditCost = 1; ((SpawnCard)val4).hullSize = (HullClassification)0; ((SpawnCard)val4).sendOverNetwork = true; val4.skipSpawnWhenSacrificeArtifactEnabled = false; ((SpawnCard)val4).nodeGraphType = (GraphType)0; ((SpawnCard)val4).prefab = LegacyResourcesAPI.Load("Prefabs/CharacterBodies/SulfurPodBody"); SimulacrumInteractablesWaveHelper simulacrumInteractablesWaveHelper = val2.AddComponent(); simulacrumInteractablesWaveHelper.spawnCard = val4; simulacrumInteractablesWaveHelper.interval = 1f; val2.GetComponent().overlayEntries[1].prefab = val3; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_SULFURPODS"; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_SULFURPODS"; ((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val.iconSprite; ((Graphic)((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.7882f, 0.949f, 0.302f, 1f); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.7882f, 0.949f, 0.302f, 1f); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7882f, 0.949f, 0.302f, 2f) * 0.8f; WeightedWave val5 = new WeightedWave { wavePrefab = val2, weight = 1f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val5); GameObject val6 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveTarPots", true); GameObject val7 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveTarPotsUI", false); InfiniteTowerWaveController component2 = val6.GetComponent(); component2.wavePeriodSeconds += 5f; InteractableSpawnCard val8 = ScriptableObject.CreateInstance(); ((Object)val8).name = "cscITTarPot"; ((SpawnCard)val8).directorCreditCost = 1; ((SpawnCard)val8).hullSize = (HullClassification)0; ((SpawnCard)val8).sendOverNetwork = true; val8.skipSpawnWhenSacrificeArtifactEnabled = false; ((SpawnCard)val8).nodeGraphType = (GraphType)1; ((SpawnCard)val8).prefab = LegacyResourcesAPI.Load("Prefabs/CharacterBodies/ExplosivePotDestructibleBody"); simulacrumInteractablesWaveHelper = val6.AddComponent(); simulacrumInteractablesWaveHelper.spawnCard = val8; simulacrumInteractablesWaveHelper.interval = 0.8f; simulacrumInteractablesWaveHelper.spawnsOnStart = 2; val6.GetComponent().overlayEntries[1].prefab = val7; ((Component)val7.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_TARPOTS"; ((Component)val7.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_TARPOTS"; ((Graphic)((Component)val7.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.2f, 0.0902f, 0.0902f, 1f) * 2f; ((Graphic)((Component)val7.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.2f, 0.0902f, 0.0902f, 1f) * 2f; ((Graphic)((Component)val7.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.2f, 0.0902f, 0.0902f, 1f); WeightedWave val9 = new WeightedWave { wavePrefab = val6, weight = 1f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); } } public class Waves_Elite { internal static void MakeWaves() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_02cf: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_02f7: Unknown result type (might be due to invalid IL or missing references) //IL_0336: Unknown result type (might be due to invalid IL or missing references) //IL_035e: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_040a: Unknown result type (might be due to invalid IL or missing references) //IL_0435: Unknown result type (might be due to invalid IL or missing references) //IL_0442: Unknown result type (might be due to invalid IL or missing references) //IL_0469: Unknown result type (might be due to invalid IL or missing references) //IL_046b: Unknown result type (might be due to invalid IL or missing references) //IL_04aa: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: 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_05e6: Unknown result type (might be due to invalid IL or missing references) //IL_064e: Unknown result type (might be due to invalid IL or missing references) //IL_068e: Unknown result type (might be due to invalid IL or missing references) //IL_06b5: Unknown result type (might be due to invalid IL or missing references) //IL_06b7: Unknown result type (might be due to invalid IL or missing references) //IL_06d0: Unknown result type (might be due to invalid IL or missing references) //IL_06d2: Unknown result type (might be due to invalid IL or missing references) //IL_06f8: Unknown result type (might be due to invalid IL or missing references) //IL_06f9: Unknown result type (might be due to invalid IL or missing references) //IL_0700: Unknown result type (might be due to invalid IL or missing references) //IL_0702: Unknown result type (might be due to invalid IL or missing references) //IL_0709: Unknown result type (might be due to invalid IL or missing references) //IL_070b: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "WaveBasic_EliteCollective", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "WaveBasic_EliteCollectiveUI", false); val.GetComponent().rewardDisplayTier = (ItemTier)0; val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITTechnology; val.GetComponent().eliteBias = 1f; val.GetComponent().overlayEntries[1].prefab = val2; val.AddComponent().eliteCase = SimulacrumEliteWaves.EliteCase.Collective; ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveAC.png"); ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DLC3_COLLECTIVE"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DLC3_COLLECTIVE"; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.65f, 0.854f, 0.895f, 1f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.65f, 0.854f, 0.895f, 1f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.65f, 0.854f, 0.895f, 2f) * 0.8f; WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC3_Prerequisite }; GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveLunarElites", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerCurrentLunarEliteWaveUI", false); val4.GetComponent().rewardDisplayTier = (ItemTier)0; val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusLunar; val4.GetComponent().eliteBias = 1f; val4.GetComponent().overlayEntries[1].prefab = val5; val4.AddComponent().eliteCase = SimulacrumEliteWaves.EliteCase.Lunar; ((Component)val5.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveLunarWhite.png"); ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_LUNARELITE"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_LUNARELITE"; WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 6.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; GameObject val7 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveVoidElites", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerCurrentVoidEliteWaveUI", false); val7.GetComponent().eliteBias = 1f; val7.GetComponent().rewardDisplayTier = (ItemTier)0; val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusVoid; val7.AddComponent().eliteCase = SimulacrumEliteWaves.EliteCase.Void; BuffDef val9 = Addressables.LoadAssetAsync((object)"RoR2/DLC1/EliteVoid/bdEliteVoid.asset").WaitForCompletion(); val7.GetComponent().overlayEntries[1].prefab = val8; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_VOIDELITE"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_VOIDELITE"; ((Graphic)((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 1f, 1f); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = val9.buffColor; WeightedWave val10 = new WeightedWave { wavePrefab = val7, weight = 6.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; GameObject val11 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_LunarAndVoidElites", true); GameObject val12 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "WaveBoss_LunarAndVoidElites", false); val11.GetComponent().immediateCreditsFraction = 0.15f; val11.GetComponent().rewardDisplayTier = (ItemTier)1; val11.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossGreenVoid; val11.AddComponent().rewardDisplayTier = (ItemTier)3; val11.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITHeresy; val11.GetComponent().newRadius = 80f; val11.AddComponent().eliteCase = SimulacrumEliteWaves.EliteCase.LunarAndVoid; val11.GetComponent().eliteBias = 0.75f; val11.GetComponent().overlayEntries[1].prefab = val12; ((Component)val12.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_LUNARVOIDELITE"; ((Component)val12.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_LUNARVOIDELITE"; ((Graphic)((Component)val12.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 1f, 1f); ((Graphic)((Component)val12.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 1f, 1f); Object.Instantiate(((Component)val12.transform.GetChild(0).GetChild(0)).gameObject, val12.transform.GetChild(0)); ((Graphic)((Component)val12.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.6f, 0.8f, 1f, 1f); ((Component)val12.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveLunarWhite.png"); WeightedWave val13 = new WeightedWave { wavePrefab = val11, weight = 6f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val13); Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3, val6, val10); } } public class Waves_EquipmentGiving { internal static void MakeWaves() { //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) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_01da: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_023e: Unknown result type (might be due to invalid IL or missing references) //IL_030f: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_038c: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03bf: Unknown result type (might be due to invalid IL or missing references) //IL_03c1: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_0556: Unknown result type (might be due to invalid IL or missing references) //IL_058d: Unknown result type (might be due to invalid IL or missing references) //IL_059a: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Unknown result type (might be due to invalid IL or missing references) //IL_05c3: Unknown result type (might be due to invalid IL or missing references) //IL_05dc: Unknown result type (might be due to invalid IL or missing references) //IL_05de: 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_05fe: Expected O, but got Unknown //IL_063c: Unknown result type (might be due to invalid IL or missing references) //IL_0799: Unknown result type (might be due to invalid IL or missing references) //IL_07d1: Unknown result type (might be due to invalid IL or missing references) //IL_0803: Unknown result type (might be due to invalid IL or missing references) //IL_0810: Unknown result type (might be due to invalid IL or missing references) //IL_0837: Unknown result type (might be due to invalid IL or missing references) //IL_0839: Unknown result type (might be due to invalid IL or missing references) //IL_0852: Unknown result type (might be due to invalid IL or missing references) //IL_0854: Unknown result type (might be due to invalid IL or missing references) //IL_08a0: Unknown result type (might be due to invalid IL or missing references) //IL_08be: Unknown result type (might be due to invalid IL or missing references) //IL_08c3: Unknown result type (might be due to invalid IL or missing references) //IL_096b: Unknown result type (might be due to invalid IL or missing references) //IL_0970: Unknown result type (might be due to invalid IL or missing references) //IL_09b1: Unknown result type (might be due to invalid IL or missing references) //IL_09b6: Unknown result type (might be due to invalid IL or missing references) //IL_09ed: Unknown result type (might be due to invalid IL or missing references) //IL_09f2: Unknown result type (might be due to invalid IL or missing references) //IL_09ff: Unknown result type (might be due to invalid IL or missing references) //IL_0a26: Unknown result type (might be due to invalid IL or missing references) //IL_0a28: Unknown result type (might be due to invalid IL or missing references) //IL_0a41: Unknown result type (might be due to invalid IL or missing references) //IL_0a43: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFlight", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveJetpackUI", false); val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; val.GetComponent().rewardOptionCount = 2; InfiniteTowerWaveController component = val.GetComponent(); component.immediateCreditsFraction *= 0.75f; val.GetComponent().eliteBias = 80000f; val.AddComponent().variant = SimuEquipmentWaveHelper.Variant.Jetpack; val.AddComponent().newGravity = -20f; WavesMain.orangeWaves.Add(val); val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FLYING"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FLYING"; ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveJetpack.png"); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)190, (byte)158, (byte)202, byte.MaxValue)); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)190, (byte)158, (byte)202, byte.MaxValue)); WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 6.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveMalachiteElites", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveMalachiteElitesUI", false); val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusGreen; val4.GetComponent().rewardDisplayTier = (ItemTier)1; InfiniteTowerWaveController component2 = val4.GetComponent(); component2.baseCredits *= 0.5f; val4.GetComponent().maxSquadSize = 12; val4.GetComponent().eliteBias = 80000f; val4.AddComponent().variant = SimuEquipmentWaveHelper.Variant.Malachite; val4.GetComponent().overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_MALACHITE"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_MALACHITE"; ((Component)val5.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Addressables.LoadAssetAsync((object)"2a3ba62b56822304f89831856876a651").WaitForCompletion(); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.5f, 0.75f, 0.25f, 1f); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.5f, 0.75f, 0.25f, 1f); WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave30Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val6); GameObject val7 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveBattery", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveBatteryUI", false); val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val7.GetComponent().rewardDisplayTier = (ItemTier)0; val7.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; val7.GetComponent().rewardOptionCount = 2; val7.GetComponent().immediateCreditsFraction = 0.15f; val7.GetComponent().eliteBias = 80000f; val7.AddComponent().variant = SimuEquipmentWaveHelper.Variant.FuelArray; WavesMain.orangeWaves.Add(val7); val7.GetComponent().overlayEntries[1].prefab = val8; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BATTERY"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BATTERY"; ((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveEquipment.png"); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.65f, 0.25f, 1f); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.55f, 0.1f, 1f); WeightedWave val9 = new WeightedWave { wavePrefab = val7, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); CountDown.Detonate += new hook_Detonate(NerfDamageFromEnemies); GameObject val10 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveGoobo", true); GameObject val11 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveGooboUI", false); val10.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val10.GetComponent().rewardDisplayTier = (ItemTier)0; val10.GetComponent().rewardOptionCount = 6; val10.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; val10.GetComponent().rewardOptionCount = 2; val10.AddComponent(); val10.GetComponent().immediateCreditsFraction = 0.15f; val10.GetComponent().baseCredits = 70f; val10.GetComponent().maxSquadSize = 12; val10.GetComponent().eliteBias = 80000f; val10.AddComponent().variant = SimuEquipmentWaveHelper.Variant.GooboJr; WavesMain.orangeWaves.Add(val10); val10.GetComponent().overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_GOOBO"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_GOOBO"; ((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveEquipment.png"); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.7f, 0.4f, 0.5f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.7f, 0.4f, 0.5f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7f, 0.4f, 0.5f); WeightedWave val12 = new WeightedWave { wavePrefab = val10, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveTwisted", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveTwistedUI", false); val13.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val13.GetComponent().rewardDisplayTier = (ItemTier)0; val13.GetComponent().rewardOptionCount = 4; val13.GetComponent().rewardPickupPrefab = Addressables.LoadAssetAsync((object)"RoR2/DLC2/FragmentPotentialPickup.prefab").WaitForCompletion(); val13.AddComponent().variant = SimuEquipmentWaveHelper.Variant.Twisted; val13.GetComponent().overlayEntries[1].prefab = val14; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_TWISTED"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_TWISTED"; ((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Addressables.LoadAssetAsync((object)"RoR2/DLC2/Elites/EliteBead/texBuffEliteBeadIcon.png").WaitForCompletion(); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)132, (byte)201, byte.MaxValue, byte.MaxValue)); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(2)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)192, (byte)228, byte.MaxValue, byte.MaxValue)); WeightedWave val15 = new WeightedWave { wavePrefab = val13, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC2_StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val15); } private static void NerfDamageFromEnemies(orig_Detonate orig, CountDown self) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Invalid comparison between Unknown and I4 //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody)) { bool flag = false; if ((int)((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody.teamComponent.teamIndex == 2) { flag = true; float num = (77 + 33 * TeamManager.instance.GetTeamLevel((TeamIndex)1)) / 6; ((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody.baseMaxHealth = num; ((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody.levelMaxHealth = 0f; ((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody.maxHealth = num; ((QuestVolatileBatteryBaseState)self).networkedBodyAttachment.attachedBody.maxShield = 0f; } orig.Invoke(self); if (flag && Object.op_Implicit((Object)(object)((QuestVolatileBatteryBaseState)self).attachedHealthComponent)) { ((QuestVolatileBatteryBaseState)self).attachedHealthComponent.Suicide((GameObject)null, (GameObject)null, default(DamageTypeCombo)); } } } } public class Waves_Family { public static Color FamilyEventIconColor = new Color(1f, 0.95f, 0.75f, 1f); public static Color FamilyEventOutlineColor = new Color(0.8f, 0.78f, 0.5f, 1f); public static void MakeWaves() { //IL_003a: 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_00c6: 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_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_023f: Unknown result type (might be due to invalid IL or missing references) //IL_02cb: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_02ff: Unknown result type (might be due to invalid IL or missing references) //IL_033e: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Unknown result type (might be due to invalid IL or missing references) //IL_03cf: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03e8: Unknown result type (might be due to invalid IL or missing references) //IL_0401: Unknown result type (might be due to invalid IL or missing references) //IL_0403: Unknown result type (might be due to invalid IL or missing references) //IL_0442: Unknown result type (might be due to invalid IL or missing references) //IL_0447: Unknown result type (might be due to invalid IL or missing references) //IL_04d3: Unknown result type (might be due to invalid IL or missing references) //IL_04ea: Unknown result type (might be due to invalid IL or missing references) //IL_04ec: Unknown result type (might be due to invalid IL or missing references) //IL_0505: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Unknown result type (might be due to invalid IL or missing references) //IL_0546: Unknown result type (might be due to invalid IL or missing references) //IL_054b: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: Unknown result type (might be due to invalid IL or missing references) //IL_05f0: Unknown result type (might be due to invalid IL or missing references) //IL_0609: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Unknown result type (might be due to invalid IL or missing references) //IL_064a: 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) //IL_06db: Unknown result type (might be due to invalid IL or missing references) //IL_06f8: Unknown result type (might be due to invalid IL or missing references) //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Unknown result type (might be due to invalid IL or missing references) //IL_0715: Unknown result type (might be due to invalid IL or missing references) //IL_0754: Unknown result type (might be due to invalid IL or missing references) //IL_0759: Unknown result type (might be due to invalid IL or missing references) //IL_07e5: Unknown result type (might be due to invalid IL or missing references) //IL_0802: Unknown result type (might be due to invalid IL or missing references) //IL_0804: Unknown result type (might be due to invalid IL or missing references) //IL_081d: Unknown result type (might be due to invalid IL or missing references) //IL_081f: Unknown result type (might be due to invalid IL or missing references) //IL_085e: Unknown result type (might be due to invalid IL or missing references) //IL_0863: Unknown result type (might be due to invalid IL or missing references) //IL_08ef: Unknown result type (might be due to invalid IL or missing references) //IL_0918: Unknown result type (might be due to invalid IL or missing references) //IL_091a: Unknown result type (might be due to invalid IL or missing references) //IL_0933: Unknown result type (might be due to invalid IL or missing references) //IL_0935: Unknown result type (might be due to invalid IL or missing references) //IL_0974: Unknown result type (might be due to invalid IL or missing references) //IL_0979: Unknown result type (might be due to invalid IL or missing references) //IL_0a12: Unknown result type (might be due to invalid IL or missing references) //IL_0a29: Unknown result type (might be due to invalid IL or missing references) //IL_0a2b: Unknown result type (might be due to invalid IL or missing references) //IL_0a44: Unknown result type (might be due to invalid IL or missing references) //IL_0a46: Unknown result type (might be due to invalid IL or missing references) //IL_0a85: Unknown result type (might be due to invalid IL or missing references) //IL_0a8a: Unknown result type (might be due to invalid IL or missing references) //IL_0b16: Unknown result type (might be due to invalid IL or missing references) //IL_0b3f: Unknown result type (might be due to invalid IL or missing references) //IL_0b41: Unknown result type (might be due to invalid IL or missing references) //IL_0b5a: Unknown result type (might be due to invalid IL or missing references) //IL_0b5c: Unknown result type (might be due to invalid IL or missing references) //IL_0b9b: Unknown result type (might be due to invalid IL or missing references) //IL_0ba0: Unknown result type (might be due to invalid IL or missing references) //IL_0c2c: Unknown result type (might be due to invalid IL or missing references) //IL_0c43: Unknown result type (might be due to invalid IL or missing references) //IL_0c45: Unknown result type (might be due to invalid IL or missing references) //IL_0c5e: Unknown result type (might be due to invalid IL or missing references) //IL_0c60: Unknown result type (might be due to invalid IL or missing references) //IL_0c9f: Unknown result type (might be due to invalid IL or missing references) //IL_0ca4: Unknown result type (might be due to invalid IL or missing references) //IL_0d30: Unknown result type (might be due to invalid IL or missing references) //IL_0d59: Unknown result type (might be due to invalid IL or missing references) //IL_0d5b: Unknown result type (might be due to invalid IL or missing references) //IL_0d74: Unknown result type (might be due to invalid IL or missing references) //IL_0d76: Unknown result type (might be due to invalid IL or missing references) //IL_0db5: Unknown result type (might be due to invalid IL or missing references) //IL_0dba: Unknown result type (might be due to invalid IL or missing references) //IL_0e46: Unknown result type (might be due to invalid IL or missing references) //IL_0e69: Unknown result type (might be due to invalid IL or missing references) //IL_0e6b: Unknown result type (might be due to invalid IL or missing references) //IL_0e84: Unknown result type (might be due to invalid IL or missing references) //IL_0e86: Unknown result type (might be due to invalid IL or missing references) //IL_0ec5: Unknown result type (might be due to invalid IL or missing references) //IL_0eca: Unknown result type (might be due to invalid IL or missing references) //IL_0f56: Unknown result type (might be due to invalid IL or missing references) //IL_0f6d: Unknown result type (might be due to invalid IL or missing references) //IL_0f6f: Unknown result type (might be due to invalid IL or missing references) //IL_0f88: Unknown result type (might be due to invalid IL or missing references) //IL_0f8a: Unknown result type (might be due to invalid IL or missing references) //IL_10ec: Unknown result type (might be due to invalid IL or missing references) //IL_1112: Unknown result type (might be due to invalid IL or missing references) //IL_1153: Unknown result type (might be due to invalid IL or missing references) //IL_11af: Unknown result type (might be due to invalid IL or missing references) //IL_11d2: Unknown result type (might be due to invalid IL or missing references) LGTFamily(); float num = 0.85f; GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyBeetle", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyBeetle", false); val.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsBeetleFamily.asset").WaitForCompletion(); val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveUtility; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_BEETLE"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_BEETLE"; WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyWisp", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyWisp", false); val4.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsWispFamily.asset").WaitForCompletion(); val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveDamage; val4.GetComponent().overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_WISP"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_WISP"; WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val6); GameObject val7 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyGolem", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyGolem", false); val7.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsGolemFamily.asset").WaitForCompletion(); val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveHealing; val7.GetComponent().overlayEntries[1].prefab = val8; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_GOLEM"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_GOLEM"; WeightedWave val9 = new WeightedWave { wavePrefab = val7, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); GameObject val10 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyJellyfish", true); GameObject val11 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyJellyfish", false); val10.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsJellyfishFamily.asset").WaitForCompletion(); val10.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveDamage; val10.GetComponent().overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_JELLYFISH"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_JELLYFISH"; WeightedWave val12 = new WeightedWave { wavePrefab = val10, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyLemurian", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyLemurian", false); val13.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsLemurianFamily.asset").WaitForCompletion(); val13.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveDamage; val13.GetComponent().overlayEntries[1].prefab = val14; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_LEMURIAN"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_LEMURIAN"; WeightedWave val15 = new WeightedWave { wavePrefab = val13, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val15); GameObject val16 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyImp", true); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyImp", false); val16.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsImpFamily.asset").WaitForCompletion(); val16.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveDamage; val16.GetComponent().overlayEntries[1].prefab = val17; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_IMP"; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_IMP"; WeightedWave val18 = new WeightedWave { wavePrefab = val16, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val18); GameObject val19 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyParent", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyParent", false); val19.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsParentFamily.asset").WaitForCompletion(); val19.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveHealing; val19.GetComponent().overlayEntries[1].prefab = val20; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_PARENT"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_PARENT"; WeightedWave val21 = new WeightedWave { wavePrefab = val19, weight = num * 2f }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val21); GameObject val22 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyMushroom", true); GameObject val23 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyMushroom", false); val22.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsMushroomFamily.asset").WaitForCompletion(); val22.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveHealing; val22.GetComponent().overlayEntries[1].prefab = val23; ((Component)val23.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_MUSHROOM"; ((Component)val23.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_MUSHROOM"; WeightedWave val24 = new WeightedWave { wavePrefab = val22, weight = num / 2f }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val24); GameObject val25 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyLunar", true); GameObject val26 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerCurrentWaveUIFamilyLunar", false); val25.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsLunarFamily.asset").WaitForCompletion(); val25.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusLunar; val25.GetComponent().overlayEntries[1].prefab = val26; ((Component)val26.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_LUNAR"; ((Component)val26.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_LUNAR"; WeightedWave val27 = new WeightedWave { wavePrefab = val25, weight = num * 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val27); GameObject val28 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyGup", true); GameObject val29 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyGup", false); val28.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsGupFamily.asset").WaitForCompletion(); val28.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val28.GetComponent().rewardOptionCount = 6; val28.GetComponent().overlayEntries[1].prefab = val29; ((Component)val29.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_GUP"; ((Component)val29.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_GUP"; WeightedWave val30 = new WeightedWave { wavePrefab = val28, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val30); GameObject val31 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyLarva", true); GameObject val32 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyLarva", false); val31.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/dccsAcidLarvaFamily.asset").WaitForCompletion(); val31.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicWaveOnKill; val31.GetComponent().overlayEntries[1].prefab = val32; ((Component)val32.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_LARVA"; ((Component)val32.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_LARVA"; WeightedWave val33 = new WeightedWave { wavePrefab = val31, weight = num * 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val33); GameObject val34 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyConstruct", true); GameObject val35 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyConstruct", false); val34.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/dccsConstructFamily.asset").WaitForCompletion(); val34.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveUtility; val34.GetComponent().overlayEntries[1].prefab = val35; ((Component)val35.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_CONSTRUCT"; ((Component)val35.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_CONSTRUCT"; WeightedWave val36 = new WeightedWave { wavePrefab = val34, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val36); GameObject val37 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyVoid", true); GameObject val38 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerCurrentWaveUIFamilyVoid", false); val37.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/Common/dccsVoidFamily.asset").WaitForCompletion(); val37.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusVoid; val37.GetComponent().overlayEntries[1].prefab = val38; ((Component)val38.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_VOID"; ((Component)val38.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_VOID"; WeightedWave val39 = new WeightedWave { wavePrefab = val37, weight = num * 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val39); GameObject val40 = PrefabAPI.InstantiateClone(Constant.BasicWave, "WaveBasic_FamilySolus", true); GameObject val41 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "WaveBasic_FamilySolusUI", false); val40.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"74cc25007c7994343afdbfd1e9ab67a0").WaitForCompletion(); val40.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveUtility; val40.GetComponent().overlayEntries[1].prefab = val41; ((Component)val41.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DLC3_SOLUSFAMILY"; ((Component)val41.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DLC3_SOLUSFAMILY"; WeightedWave val42 = new WeightedWave { wavePrefab = val40, weight = num, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val42); GameObject val43 = PrefabAPI.InstantiateClone(Constant.BasicWave, "WaveBasic_FamilyVulture", true); GameObject val44 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "WaveBasic_FamilyVultureUI", false); val43.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"62efa3334cf9c7b42ac60d8a55cf5cf4").WaitForCompletion(); val43.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveUtility; val43.GetComponent().overlayEntries[1].prefab = val44; ((Component)val44.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DLC3_VULTUREFAMILY"; ((Component)val44.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DLC3_VULTUREFAMILY"; WeightedWave val45 = new WeightedWave { wavePrefab = val43, weight = num }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val45); GameObject[] array = (GameObject[])(object)new GameObject[15] { val, val7, val10, val4, val13, val16, val34, val31, val22, val19, val28, val25, val37, val40, val43 }; for (int i = 0; i < array.Length; i++) { InfiniteTowerWaveController component = array[i].GetComponent(); array[i].GetComponent().skipSpawnIfTooCheap = false; component.baseCredits = 170f; component.immediateCreditsFraction = 0.35f; } GameObject[] array2 = (GameObject[])(object)new GameObject[12] { val2, val8, val11, val5, val14, val17, val35, val32, val23, val20, val41, val44 }; Sprite sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveFamily.png"); for (int j = 0; j < array2.Length; j++) { ((Component)array2[j].transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = sprite; ((Graphic)((Component)array2[j].transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = FamilyEventIconColor; ((Graphic)((Component)array2[j].transform.GetChild(0).GetChild(2)).GetComponent()).color = FamilyEventOutlineColor; } ((Graphic)((Component)val29.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = Color.white; ((Component)val29.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGupYellow.png"); ((Graphic)((Component)val29.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = FamilyEventIconColor; ((Graphic)((Component)val29.transform.GetChild(0).GetChild(2)).GetComponent()).color = FamilyEventOutlineColor; BossFamilyWave(); } public static void BossFamilyWave() { //IL_0106: 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_0110: 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_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0143: 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) //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_017d: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Expected O, but got Unknown //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0215: Unknown result type (might be due to invalid IL or missing references) //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Expected O, but got Unknown //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_0249: Unknown result type (might be due to invalid IL or missing references) //IL_0255: Expected O, but got Unknown //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Expected O, but got Unknown //IL_027c: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Expected O, but got Unknown //IL_02a0: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Unknown result type (might be due to invalid IL or missing references) //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Expected O, but got Unknown //IL_02c4: Unknown result type (might be due to invalid IL or missing references) //IL_02c9: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02e5: Expected O, but got Unknown //IL_02e8: Unknown result type (might be due to invalid IL or missing references) //IL_02ed: Unknown result type (might be due to invalid IL or missing references) //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Expected O, but got Unknown //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_0311: Unknown result type (might be due to invalid IL or missing references) //IL_0321: Unknown result type (might be due to invalid IL or missing references) //IL_032d: Expected O, but got Unknown //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Expected O, but got Unknown //IL_0354: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Expected O, but got Unknown //IL_0378: Unknown result type (might be due to invalid IL or missing references) //IL_037d: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Expected O, but got Unknown //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03ac: Unknown result type (might be due to invalid IL or missing references) //IL_03ba: Unknown result type (might be due to invalid IL or missing references) //IL_03c6: Expected O, but got Unknown //IL_03c9: 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_03de: Unknown result type (might be due to invalid IL or missing references) //IL_03ea: Expected O, but got Unknown GameObject val = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_FamilyBosses", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_FamilyBossesUI", false); DirectorCardCategorySelection val3 = ScriptableObject.CreateInstance(); val.GetComponent().monsterCards = val3; val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier2; val.GetComponent().baseCredits = 500f; val.GetComponent().immediateCreditsFraction = 0.4f; val.GetComponent().wavePeriodSeconds = 40f; val.GetComponent().skipSpawnIfTooCheap = false; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_FAMILY_BOSS"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_FAMILY_BOSS"; Image component = ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent(); ((Graphic)component).color = ((Graphic)component).color * FamilyEventIconColor; TextMeshProUGUI component2 = ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent(); ((Graphic)component2).color = ((Graphic)component2).color * FamilyEventIconColor; Image component3 = ((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent(); ((Graphic)component3).color = ((Graphic)component3).color * FamilyEventOutlineColor; WeightedWave val4 = new WeightedWave { wavePrefab = val, weight = 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val4); val3.AddCategory("Champions", 10f); ((Object)val3).name = "dccsBossesOnly"; val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscBeetleQueen"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscClayBoss"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscElectricWorm"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGravekeeper"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscImpBoss"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscMagmaWorm"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscRoboBallBoss"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscScav"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscVagrant"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscVoidMegaCrab"), selectionWeight = 0 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/Titan/cscGrandparent"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/Titan/cscTitanBlackBeach"), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)Addressables.LoadAssetAsync((object)"RoR2/DLC1/MajorAndMinorConstruct/cscMegaConstruct.asset").WaitForCompletion(), selectionWeight = 1 }); val3.AddCard(0, new DirectorCard { spawnCardReference = new AssetReferenceT("14bf22df446f37549aa65eb724c1ddda"), selectionWeight = 1 }); } public static void LGTFamily() { //IL_016e: 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_0327: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Unknown result type (might be due to invalid IL or missing references) //IL_036e: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03cb: 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_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_045b: Unknown result type (might be due to invalid IL or missing references) //IL_0472: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_048d: Unknown result type (might be due to invalid IL or missing references) //IL_048f: Unknown result type (might be due to invalid IL or missing references) //IL_04b6: Unknown result type (might be due to invalid IL or missing references) //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04e8: Unknown result type (might be due to invalid IL or missing references) //IL_04ea: Unknown result type (might be due to invalid IL or missing references) //IL_050f: Unknown result type (might be due to invalid IL or missing references) //IL_0536: Unknown result type (might be due to invalid IL or missing references) //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_0551: Unknown result type (might be due to invalid IL or missing references) //IL_0553: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyClay", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyClay", false); val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveHealing; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_CLAY"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_CLAY"; GameObject val3 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveFamilyVermin", true); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentWaveUIFamilyVermin", false); val3.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITFamilyWaveUtility; val3.GetComponent().overlayEntries[1].prefab = val4; ((Component)val4.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_FAMILY_VERMIN"; ((Component)val4.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_FAMILY_VERMIN"; GameObject val5 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_FamilyWorms", true); GameObject val6 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerCurrentWaveUIFamilyWorms", false); val5.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; val5.GetComponent().rewardDisplayTier = (ItemTier)4; val5.GetComponent().immediateCreditsFraction = 0.5f; val5.GetComponent().maxSquadSize = 6; val5.GetComponent().wavePeriodSeconds = 20f; val5.AddComponent().newRadius = 100f; val5.AddComponent().hpBonusMulti = -1f; val5.GetComponent().overlayEntries[1].prefab = val6; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_FAMILY_WORM"; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_FAMILY_WORM"; GameObject[] array = (GameObject[])(object)new GameObject[2] { val, val3 }; for (int i = 0; i < array.Length; i++) { InfiniteTowerWaveController component = array[i].GetComponent(); array[i].GetComponent().skipSpawnIfTooCheap = false; component.baseCredits = 170f; component.immediateCreditsFraction = 0.35f; } Sprite sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveFamily.png"); GameObject[] array2 = (GameObject[])(object)new GameObject[2] { val2, val4 }; for (int j = 0; j < array2.Length; j++) { ((Component)array2[j].transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = sprite; ((Graphic)((Component)array2[j].transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = FamilyEventIconColor; ((Graphic)((Component)array2[j].transform.GetChild(0).GetChild(2)).GetComponent()).color = FamilyEventOutlineColor; } Image component2 = ((Component)val6.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent(); ((Graphic)component2).color = ((Graphic)component2).color * FamilyEventIconColor; TextMeshProUGUI component3 = ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent(); ((Graphic)component3).color = ((Graphic)component3).color * FamilyEventIconColor; Image component4 = ((Component)val6.transform.GetChild(0).GetChild(2)).GetComponent(); ((Graphic)component4).color = ((Graphic)component4).color * FamilyEventOutlineColor; float weight = 0.85f; FamilyDirectorCardCategorySelection[] array3 = Object.FindObjectsOfType(typeof(FamilyDirectorCardCategorySelection)) as FamilyDirectorCardCategorySelection[]; for (int k = 0; k < array3.Length; k++) { switch (((Object)array3[k]).name) { case "dccsClayFamily": { val.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)array3[k]; WeightedWave val9 = new WeightedWave { wavePrefab = val, weight = weight }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); break; } case "dccsVerminFamily": { val3.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)array3[k]; WeightedWave val8 = new WeightedWave { wavePrefab = val3, weight = weight }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val8); break; } case "dccsWormsFamily": { val5.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)array3[k]; WeightedWave val7 = new WeightedWave { wavePrefab = val5, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave40Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val7); break; } } } } } public class Waves_InfiniteOnDeath { internal static void MakeWaves() { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: 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_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0116: 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_0121: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_013d: 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_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0162: 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_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Expected O, but got Unknown //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: 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_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Expected O, but got Unknown //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Expected O, but got Unknown //IL_0304: Unknown result type (might be due to invalid IL or missing references) //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_0348: Unknown result type (might be due to invalid IL or missing references) //IL_036e: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Unknown result type (might be due to invalid IL or missing references) //IL_0389: Unknown result type (might be due to invalid IL or missing references) //IL_038b: Unknown result type (might be due to invalid IL or missing references) //IL_0425: Unknown result type (might be due to invalid IL or missing references) //IL_042d: Unknown result type (might be due to invalid IL or missing references) //IL_043e: Unknown result type (might be due to invalid IL or missing references) //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_045b: Unknown result type (might be due to invalid IL or missing references) //IL_0464: Unknown result type (might be due to invalid IL or missing references) //IL_047e: Unknown result type (might be due to invalid IL or missing references) //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_0489: 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_04a5: Unknown result type (might be due to invalid IL or missing references) //IL_04ae: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: 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_04d3: Unknown result type (might be due to invalid IL or missing references) //IL_04ed: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_0522: Unknown result type (might be due to invalid IL or missing references) //IL_0527: Unknown result type (might be due to invalid IL or missing references) //IL_052f: Unknown result type (might be due to invalid IL or missing references) //IL_0536: Unknown result type (might be due to invalid IL or missing references) //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_0542: Expected O, but got Unknown //IL_0546: Unknown result type (might be due to invalid IL or missing references) //IL_054b: Unknown result type (might be due to invalid IL or missing references) //IL_0553: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_055c: Unknown result type (might be due to invalid IL or missing references) //IL_0566: Expected O, but got Unknown //IL_0589: Unknown result type (might be due to invalid IL or missing references) //IL_067f: Unknown result type (might be due to invalid IL or missing references) //IL_06b7: Unknown result type (might be due to invalid IL or missing references) //IL_06c4: Unknown result type (might be due to invalid IL or missing references) //IL_06eb: Unknown result type (might be due to invalid IL or missing references) //IL_06ed: Unknown result type (might be due to invalid IL or missing references) //IL_0706: Unknown result type (might be due to invalid IL or missing references) //IL_0708: Unknown result type (might be due to invalid IL or missing references) //IL_0764: Unknown result type (might be due to invalid IL or missing references) //IL_0769: Unknown result type (might be due to invalid IL or missing references) //IL_0797: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Unknown result type (might be due to invalid IL or missing references) //IL_07b0: Unknown result type (might be due to invalid IL or missing references) //IL_07cf: Unknown result type (might be due to invalid IL or missing references) //IL_07d1: Unknown result type (might be due to invalid IL or missing references) //IL_07da: Unknown result type (might be due to invalid IL or missing references) //IL_07f5: Unknown result type (might be due to invalid IL or missing references) //IL_07f7: Unknown result type (might be due to invalid IL or missing references) //IL_081a: Unknown result type (might be due to invalid IL or missing references) //IL_0848: Unknown result type (might be due to invalid IL or missing references) //IL_084d: Unknown result type (might be due to invalid IL or missing references) //IL_0855: Unknown result type (might be due to invalid IL or missing references) //IL_085c: Unknown result type (might be due to invalid IL or missing references) //IL_085e: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Expected O, but got Unknown //IL_086c: Unknown result type (might be due to invalid IL or missing references) //IL_0871: Unknown result type (might be due to invalid IL or missing references) //IL_0879: Unknown result type (might be due to invalid IL or missing references) //IL_0880: Unknown result type (might be due to invalid IL or missing references) //IL_0882: Unknown result type (might be due to invalid IL or missing references) //IL_088c: Expected O, but got Unknown //IL_0975: Unknown result type (might be due to invalid IL or missing references) //IL_097a: Unknown result type (might be due to invalid IL or missing references) //IL_09b4: Unknown result type (might be due to invalid IL or missing references) //IL_09b9: Unknown result type (might be due to invalid IL or missing references) //IL_09ed: Unknown result type (might be due to invalid IL or missing references) //IL_09f2: Unknown result type (might be due to invalid IL or missing references) //IL_09ff: Unknown result type (might be due to invalid IL or missing references) //IL_0a26: Unknown result type (might be due to invalid IL or missing references) //IL_0a28: Unknown result type (might be due to invalid IL or missing references) //IL_0a41: Unknown result type (might be due to invalid IL or missing references) //IL_0a43: 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_0ae5: Unknown result type (might be due to invalid IL or missing references) //IL_0af6: Unknown result type (might be due to invalid IL or missing references) //IL_0b11: Unknown result type (might be due to invalid IL or missing references) //IL_0b13: Unknown result type (might be due to invalid IL or missing references) //IL_0b1c: Unknown result type (might be due to invalid IL or missing references) //IL_0b37: Unknown result type (might be due to invalid IL or missing references) //IL_0b39: Unknown result type (might be due to invalid IL or missing references) //IL_0b42: Unknown result type (might be due to invalid IL or missing references) //IL_0b5c: Unknown result type (might be due to invalid IL or missing references) //IL_0b5e: Unknown result type (might be due to invalid IL or missing references) //IL_0b67: Unknown result type (might be due to invalid IL or missing references) //IL_0b81: Unknown result type (might be due to invalid IL or missing references) //IL_0b83: Unknown result type (might be due to invalid IL or missing references) //IL_0b8c: Unknown result type (might be due to invalid IL or missing references) //IL_0ba6: Unknown result type (might be due to invalid IL or missing references) //IL_0ba8: Unknown result type (might be due to invalid IL or missing references) //IL_0bb1: Unknown result type (might be due to invalid IL or missing references) //IL_0bcb: Unknown result type (might be due to invalid IL or missing references) //IL_0bcd: Unknown result type (might be due to invalid IL or missing references) //IL_0c0a: Unknown result type (might be due to invalid IL or missing references) //IL_0c38: Unknown result type (might be due to invalid IL or missing references) //IL_0c3d: Unknown result type (might be due to invalid IL or missing references) //IL_0c45: Unknown result type (might be due to invalid IL or missing references) //IL_0c4c: Unknown result type (might be due to invalid IL or missing references) //IL_0c4e: Unknown result type (might be due to invalid IL or missing references) //IL_0c58: Expected O, but got Unknown //IL_0c5c: Unknown result type (might be due to invalid IL or missing references) //IL_0c61: Unknown result type (might be due to invalid IL or missing references) //IL_0c69: Unknown result type (might be due to invalid IL or missing references) //IL_0c70: 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_0c7c: Expected O, but got Unknown //IL_0c80: Unknown result type (might be due to invalid IL or missing references) //IL_0c85: Unknown result type (might be due to invalid IL or missing references) //IL_0c8d: Unknown result type (might be due to invalid IL or missing references) //IL_0c94: Unknown result type (might be due to invalid IL or missing references) //IL_0c9b: Unknown result type (might be due to invalid IL or missing references) //IL_0c9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ca7: Expected O, but got Unknown //IL_0cb4: Unknown result type (might be due to invalid IL or missing references) //IL_0dc5: Unknown result type (might be due to invalid IL or missing references) //IL_0dca: Unknown result type (might be due to invalid IL or missing references) //IL_0e07: Unknown result type (might be due to invalid IL or missing references) //IL_0e0c: Unknown result type (might be due to invalid IL or missing references) //IL_0e43: Unknown result type (might be due to invalid IL or missing references) //IL_0e48: Unknown result type (might be due to invalid IL or missing references) //IL_0e55: Unknown result type (might be due to invalid IL or missing references) //IL_0e7c: Unknown result type (might be due to invalid IL or missing references) //IL_0e7e: Unknown result type (might be due to invalid IL or missing references) //IL_0e97: Unknown result type (might be due to invalid IL or missing references) //IL_0e99: Unknown result type (might be due to invalid IL or missing references) BuffDef val = LegacyResourcesAPI.Load("BuffDefs/DeathMark"); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveDeathVoid", true); GameObject val3 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerWaveDeathVoidUI", false); val2.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusVoid; val2.GetComponent().rewardDisplayTier = (ItemTier)0; InfiniteTowerWaveController component = val2.GetComponent(); component.secondsAfterWave++; val2.AddComponent().newRadius = 90f; CharacterSpawnCard val4 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscNullifier")); ((Object)val4).name = "cscITSuicideVoid"; val4.noElites = true; ((SpawnCard)val4).directorCreditCost = 1; ((SpawnCard)val4).forbiddenFlags = (NodeFlags)0; ((SpawnCard)val4).hullSize = (HullClassification)2; val4.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 99 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 79 }, new ItemCountPair { itemDef = ItemHelpers.Ghost, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.HealthDecay, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDisableAllSkills, count = 1 } }; DirectorCardCategorySelection val5 = ScriptableObject.CreateInstance(); ((Object)val5).name = "dccsITSuicideWaveVoid"; val5.AddCategory("Basic Monsters", 1f); val5.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val4, selectionWeight = 5, spawnDistance = (MonsterSpawnDistance)0 }); val5.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val4, selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)1 }); val5.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val4, selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)2 }); CombatDirector val6 = val2.AddComponent(); val6.monsterCards = val5; val6.monsterCredit = 10000f; val6.maxSeriesSpawnInterval = 4.5f; val6.minSeriesSpawnInterval = 0.5f; val6.maxRerollSpawnInterval = 1f; val6.minRerollSpawnInterval = 0.5f; val2.GetComponent().overlayEntries[1].prefab = val3; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DEATHVOID"; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DEATHVOID"; ((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val.iconSprite; ((Graphic)((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.4f, 0.8f); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.4f, 0.8f); WeightedWave val7 = new WeightedWave { wavePrefab = val2, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val7); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveDeathLunar", true); GameObject val9 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveDeathLunarUI", false); val8.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusLunar; InfiniteTowerWaveController component2 = val8.GetComponent(); component2.secondsAfterWave++; val8.AddComponent().newRadius = 85f; CharacterSpawnCard val10 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscLunarExploder")); ((Object)val10).name = "cscITSuicideLunar"; val10.noElites = true; ((SpawnCard)val10).directorCreditCost = 1; ((SpawnCard)val10).hullSize = (HullClassification)2; ((SpawnCard)val10).nodeGraphType = (GraphType)0; val10.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 99 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.HealthDecay, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.Ghost, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDisableAllSkills, count = 1 } }; DirectorCardCategorySelection val11 = ScriptableObject.CreateInstance(); ((Object)val11).name = "dccsITSuicideWaveLunar"; val11.AddCategory("Basic Monsters", 1f); val11.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val10, selectionWeight = 5, spawnDistance = (MonsterSpawnDistance)0 }); val11.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val10, selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)1 }); val6 = val8.AddComponent(); val6.monsterCards = val11; val6.monsterCredit = 10000f; val6.teamIndex = (TeamIndex)4; val6.maxSeriesSpawnInterval = 1.5f; val6.minSeriesSpawnInterval = 0.75f; val6.maxRerollSpawnInterval = 2.5f; val6.minRerollSpawnInterval = 2f; val8.GetComponent().overlayEntries[1].prefab = val9; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DEATHLUNAR"; ((Component)val9.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DEATHLUNAR"; ((Component)val9.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val.iconSprite; ((Graphic)((Component)val9.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.4f, 0.8f, 0.8f); ((Graphic)((Component)val9.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.4f, 0.8f, 0.8f); WeightedWave val12 = new WeightedWave { wavePrefab = val8, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveDeathMendingCore", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveDeathMendingCoreUI", false); val13.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryHealing; CharacterSpawnCard val15 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscNullifier")); ((SpawnCard)val15).prefab = Addressables.LoadAssetAsync((object)"RoR2/DLC1/EliteEarth/AffixEarthHealerMaster.prefab").WaitForCompletion(); ((Object)val15).name = "cscITAffixEarthHealerMaster"; val15.noElites = true; ((SpawnCard)val15).directorCreditCost = 1; ((SpawnCard)val15).forbiddenFlags = (NodeFlags)0; ((SpawnCard)val15).hullSize = (HullClassification)1; val15.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[2] { new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/UseAmbientLevel"), count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 10 } }; CharacterSpawnCard val16 = Object.Instantiate(val15); ((Object)val16).name = "cscITAffixEarthHealerMasterAIR"; ((SpawnCard)val16).nodeGraphType = (GraphType)0; DirectorCardCategorySelection val17 = ScriptableObject.CreateInstance(); ((Object)val17).name = "dccsITSuicideWaveHealing"; val17.AddCategory("Basic Monsters", 1f); val17.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val15, selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)0 }); val17.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val16, selectionWeight = 1, spawnDistance = (MonsterSpawnDistance)1 }); val6 = val13.AddComponent(); val6.monsterCards = val17; val6.monsterCredit = 10000f; val6.maxSeriesSpawnInterval = 0.75f; val6.minSeriesSpawnInterval = 0.25f; val6.maxRerollSpawnInterval = 0.15f; val6.minRerollSpawnInterval = 0.1f; val13.GetComponent().overlayEntries[1].prefab = val14; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DEATHHEALING"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DEATHHEALING"; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)161, (byte)231, (byte)79, byte.MaxValue)); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)161, (byte)231, (byte)79, byte.MaxValue)); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(2)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)161, (byte)231, (byte)79, byte.MaxValue)); WeightedWave val18 = new WeightedWave { wavePrefab = val13, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val18); GameObject val19 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveDeathIceElite", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveDeathIceEliteUI", false); val19.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicWaveOnKill; InfiniteTowerWaveController component3 = val19.GetComponent(); component3.secondsAfterWave++; val19.AddComponent().newRadius = 90f; CharacterSpawnCard val21 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGipBody")); ((Object)val21).name = "cscITSuicideIce"; val21.noElites = true; ((SpawnCard)val21).directorCreditCost = 1; ((SpawnCard)val21).forbiddenFlags = (NodeFlags)0; ((SpawnCard)val21).hullSize = (HullClassification)1; val21.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[6] { new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 99 }, new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 81 }, new ItemCountPair { itemDef = ItemHelpers.ITMakeImmune, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.Ghost, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.HealthDecay, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDisableAllSkills, count = 1 } }; val21.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { LegacyResourcesAPI.Load("EquipmentDefs/AffixWhite") }; CharacterSpawnCard val22 = Object.Instantiate(val21); ((Object)val22).name = "cscITSuicideIceAIR"; ((SpawnCard)val22).nodeGraphType = (GraphType)1; DirectorCardCategorySelection val23 = ScriptableObject.CreateInstance(); ((Object)val23).name = "dccsITSuicideWaveIce"; val23.AddCategory("Basic Monsters", 1f); val23.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val21, selectionWeight = 3, spawnDistance = (MonsterSpawnDistance)0 }); val23.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val21, selectionWeight = 3, spawnDistance = (MonsterSpawnDistance)1 }); val23.AddCard(0, new DirectorCard { spawnCard = (SpawnCard)(object)val22, selectionWeight = 1, preventOverhead = false, spawnDistance = (MonsterSpawnDistance)1 }); val6 = val19.AddComponent(); val6.teamIndex = (TeamIndex)4; val6.monsterCards = val23; val6.monsterCredit = 10000f; val6.maxSeriesSpawnInterval = 1f; val6.minSeriesSpawnInterval = 0.5f; val6.maxRerollSpawnInterval = 0.2f; val6.minRerollSpawnInterval = 0.1f; val19.GetComponent().overlayEntries[1].prefab = val20; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DEATHICE"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DEATHICE"; ((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val.iconSprite; ((Graphic)((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)214, (byte)247, (byte)247, byte.MaxValue)); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)214, (byte)247, (byte)247, byte.MaxValue)); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(2)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)214, (byte)247, (byte)247, byte.MaxValue)); WeightedWave val24 = new WeightedWave { wavePrefab = val19, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val24); } } public class Waves_ItemGiving { internal static void MakeWaves() { //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_0120: 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_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0184: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02ee: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Unknown result type (might be due to invalid IL or missing references) //IL_031e: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_046e: Unknown result type (might be due to invalid IL or missing references) //IL_04a0: Unknown result type (might be due to invalid IL or missing references) //IL_04ad: Unknown result type (might be due to invalid IL or missing references) //IL_04d4: Unknown result type (might be due to invalid IL or missing references) //IL_04d6: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_04f1: Unknown result type (might be due to invalid IL or missing references) //IL_0600: Unknown result type (might be due to invalid IL or missing references) //IL_063d: Unknown result type (might be due to invalid IL or missing references) //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: 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_06e2: Unknown result type (might be due to invalid IL or missing references) //IL_06fb: Unknown result type (might be due to invalid IL or missing references) //IL_06fd: Unknown result type (might be due to invalid IL or missing references) //IL_0831: Unknown result type (might be due to invalid IL or missing references) //IL_085f: Unknown result type (might be due to invalid IL or missing references) //IL_0864: Unknown result type (might be due to invalid IL or missing references) //IL_08a5: Unknown result type (might be due to invalid IL or missing references) //IL_08dc: Unknown result type (might be due to invalid IL or missing references) //IL_08e9: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Unknown result type (might be due to invalid IL or missing references) //IL_0912: Unknown result type (might be due to invalid IL or missing references) //IL_092b: 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_0a48: Unknown result type (might be due to invalid IL or missing references) //IL_0aa9: Unknown result type (might be due to invalid IL or missing references) //IL_0adb: Unknown result type (might be due to invalid IL or missing references) //IL_0ae8: Unknown result type (might be due to invalid IL or missing references) //IL_0b0f: Unknown result type (might be due to invalid IL or missing references) //IL_0b11: Unknown result type (might be due to invalid IL or missing references) //IL_0b2a: Unknown result type (might be due to invalid IL or missing references) //IL_0b2c: Unknown result type (might be due to invalid IL or missing references) //IL_0c71: Unknown result type (might be due to invalid IL or missing references) //IL_0ca9: Unknown result type (might be due to invalid IL or missing references) //IL_0cdb: Unknown result type (might be due to invalid IL or missing references) //IL_0ce8: Unknown result type (might be due to invalid IL or missing references) //IL_0d0f: Unknown result type (might be due to invalid IL or missing references) //IL_0d11: Unknown result type (might be due to invalid IL or missing references) //IL_0d2a: Unknown result type (might be due to invalid IL or missing references) //IL_0d2c: Unknown result type (might be due to invalid IL or missing references) //IL_0da9: Unknown result type (might be due to invalid IL or missing references) //IL_0dd8: Unknown result type (might be due to invalid IL or missing references) //IL_0eca: Unknown result type (might be due to invalid IL or missing references) //IL_0f02: Unknown result type (might be due to invalid IL or missing references) //IL_0f3a: Unknown result type (might be due to invalid IL or missing references) //IL_0f6c: Unknown result type (might be due to invalid IL or missing references) //IL_0f79: Unknown result type (might be due to invalid IL or missing references) //IL_0fa0: Unknown result type (might be due to invalid IL or missing references) //IL_0fa2: Unknown result type (might be due to invalid IL or missing references) //IL_0fbb: Unknown result type (might be due to invalid IL or missing references) //IL_0fbd: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveManyItems", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveManyItemsUI", false); val.AddComponent().code = SimuWaveUnsortedExtras.Case.TooManyItems; val.GetComponent().overlayEntries[1].prefab = val2; val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryDamage; val.GetComponent().rewardOptionCount = 6; val.GetComponent().rewardDisplayTier = (ItemTier)0; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_MANYITEMS"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_MANYITEMS"; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.5f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.7f, 0.4f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7f, 0.4f, 0f); WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 6f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave30Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveHeresy", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveHeresyUI", false); val4.AddComponent().code = SimuWaveUnsortedExtras.Case.HeresyItems; val4.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITHeresy; val4.GetComponent().rewardDisplayTier = (ItemTier)3; val4.GetComponent().maxSquadSize = 12; Color color = default(Color); ((Color)(ref color))..ctor(0.4f, 0.45f, 0.79f, 1f); val4.GetComponent().overlayEntries[1].prefab = val5; ((Graphic)((Component)val5.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = color; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_HERESY"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_HERESY"; ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = color; ((Graphic)((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent()).color = color; WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 8f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val6); GameObject val7 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveItemCoffee", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveItemCoffeeUI", false); val7.GetComponent().overlayEntries[1].prefab = val8; val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryDamage; val7.AddComponent().itemString = "AttackSpeedAndMoveSpeed"; val7.GetComponent().count = 6; val7.GetComponent().extraPer10Wave = 2f; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_COFFEE"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_COFFEE"; ((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Constant.texITWaveDefaultWhiteS; ((Graphic)((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 1f); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.6f, 0.3f, 0f); WeightedWave val9 = new WeightedWave { wavePrefab = val7, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); GameObject val10 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveItemLepton", true); GameObject val11 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveItemLeptonUI", false); val10.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryHealing; val10.AddComponent().itemString = "TPHealingNova"; val10.GetComponent().count = 0; val10.GetComponent().extraPer10Wave = 0.5f; val10.GetComponent().overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_LEPTON"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_LEPTON"; ((Graphic)((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.8f, 1f, 0.8f, 1f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 1f, 0.8f, 1f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent()).color = new Color(0.8f, 1f, 1f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.6f, 0.8f, 0.6f, 1f); WeightedWave val12 = new WeightedWave { wavePrefab = val10, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveItemShuriken", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveItemShurikenUI", false); val13.GetComponent().overlayEntries[1].prefab = val14; val13.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryDamage; val13.AddComponent().itemString = "PrimarySkillShuriken"; val13.GetComponent().count = 1; val13.GetComponent().extraPer10Wave = 0.2f; SimulacrumGiveItemsOnStart simulacrumGiveItemsOnStart = val13.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITDamageDown"; simulacrumGiveItemsOnStart.count = 25; simulacrumGiveItemsOnStart.extraPer10Wave = 0f; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_SHURIKEN"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_SHURIKEN"; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.54f, 0.912f, 0.312f); ((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Addressables.LoadAssetAsync((object)"RoR2/DLC1/PrimarySkillShuriken/bdPrimarySkillShurikenBuff.asset").WaitForCompletion().iconSprite; ((Graphic)((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.54f, 0.912f, 0.312f); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.45f, 0.76f, 0.26f, 1f); WeightedWave val15 = new WeightedWave { wavePrefab = val13, weight = 2.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val15); GameObject val16 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveItemElixir", true); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveItemElixirUI", false); val16.GetComponent().overlayEntries[1].prefab = val17; val16.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryHealing; val16.GetComponent().baseCredits = 140f; val16.AddComponent().itemString = "HealingPotion"; val16.GetComponent().count = 1; val16.GetComponent().extraPer10Wave = 0.2f; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_ELIXIR"; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_ELIXIR"; ((Graphic)((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.52f, 0.44f); ((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Constant.texITWaveDefaultWhiteS; ((Graphic)((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.52f, 0.44f); ((Graphic)((Component)val17.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.98f, 0.34f, 0.31f); WeightedWave val18 = new WeightedWave { wavePrefab = val16, weight = 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val18); GameObject val19 = PrefabAPI.InstantiateClone(Constant.BossWave, "InfiniteTowerWaveItemBossBehemoth", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerWaveItemBossBehemothUI", false); val19.GetComponent().overlayEntries[1].prefab = val20; val19.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossCategoryDamage; val19.AddComponent().newRadius = 80f; val19.AddComponent().itemString = "Behemoth"; val19.GetComponent().count = 1; val19.GetComponent().extraPer10Wave = 0.5f; simulacrumGiveItemsOnStart = val19.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITDamageDown"; simulacrumGiveItemsOnStart.count = 50; simulacrumGiveItemsOnStart.extraPer10Wave = 0f; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_BEHEMOTH"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_BEHEMOTH"; ((Graphic)((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.5f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.7f, 0.4f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7f, 0.4f, 0f); WeightedWave val21 = new WeightedWave { wavePrefab = val19, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val21); GameObject val22 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_ItemShinyPearl", true); GameObject val23 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_ItemShinyPearlUI", false); val22.GetComponent().overlayEntries[1].prefab = val23; val22.GetComponent().baseCredits = 250f; InfiniteTowerWaveController component = val22.GetComponent(); component.wavePeriodSeconds += 10f; val22.GetComponent().rewardDisplayTier = (ItemTier)1; val22.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossBonusRed; val22.AddComponent().newRadius = 100f; val22.GetComponent().rewardDisplayTier = (ItemTier)4; val22.GetComponent().rewardDropTable = (PickupDropTable)(object)LegacyResourcesAPI.Load("DropTables/dtPearls"); val22.AddComponent().itemString = "ShinyPearl"; val22.GetComponent().count = 4; val22.GetComponent().extraPer10Wave = 1f; simulacrumGiveItemsOnStart = val22.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITDamageDown"; simulacrumGiveItemsOnStart.count = 60; simulacrumGiveItemsOnStart.extraPer10Wave = 0f; ((Component)val23.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_PEARL"; ((Component)val23.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_PEARL"; ((Graphic)((Component)val23.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.9f, 0.9f); ((Graphic)((Component)val23.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 0.5f); ((Graphic)((Component)val23.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent()).color = new Color(0.8f, 1f, 1f); ((Graphic)((Component)val23.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7f, 1f, 0.7f); WeightedWave val24 = new WeightedWave { wavePrefab = val22, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave35Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val24); } } public class Waves_Misc { public static InfiniteTowerExplicitSpawnWaveController DroneWave; internal static void MakeWaves() { //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0134: 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_0167: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0299: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: 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_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_0315: 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_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_036e: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Unknown result type (might be due to invalid IL or missing references) //IL_0387: Unknown result type (might be due to invalid IL or missing references) //IL_0390: Unknown result type (might be due to invalid IL or missing references) //IL_03ab: 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_03b7: Unknown result type (might be due to invalid IL or missing references) //IL_03bc: Unknown result type (might be due to invalid IL or missing references) //IL_03c4: Unknown result type (might be due to invalid IL or missing references) //IL_03cb: Unknown result type (might be due to invalid IL or missing references) //IL_03d2: Unknown result type (might be due to invalid IL or missing references) //IL_03d9: Unknown result type (might be due to invalid IL or missing references) //IL_03db: Unknown result type (might be due to invalid IL or missing references) //IL_03e2: Expected O, but got Unknown //IL_04f7: Unknown result type (might be due to invalid IL or missing references) //IL_0508: Unknown result type (might be due to invalid IL or missing references) //IL_0526: Unknown result type (might be due to invalid IL or missing references) //IL_0528: Unknown result type (might be due to invalid IL or missing references) //IL_0592: Unknown result type (might be due to invalid IL or missing references) //IL_0644: Unknown result type (might be due to invalid IL or missing references) //IL_0651: Unknown result type (might be due to invalid IL or missing references) //IL_0678: Unknown result type (might be due to invalid IL or missing references) //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_0693: Unknown result type (might be due to invalid IL or missing references) //IL_0695: Unknown result type (might be due to invalid IL or missing references) //IL_075a: Unknown result type (might be due to invalid IL or missing references) //IL_0821: Unknown result type (might be due to invalid IL or missing references) //IL_0853: Unknown result type (might be due to invalid IL or missing references) //IL_088b: Unknown result type (might be due to invalid IL or missing references) //IL_08b2: Unknown result type (might be due to invalid IL or missing references) //IL_08b4: Unknown result type (might be due to invalid IL or missing references) //IL_08cd: Unknown result type (might be due to invalid IL or missing references) //IL_08cf: Unknown result type (might be due to invalid IL or missing references) //IL_092c: Unknown result type (might be due to invalid IL or missing references) //IL_0a03: Unknown result type (might be due to invalid IL or missing references) //IL_0a3b: Unknown result type (might be due to invalid IL or missing references) //IL_0a6d: 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_0aa1: Unknown result type (might be due to invalid IL or missing references) //IL_0aa3: 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_0abe: Unknown result type (might be due to invalid IL or missing references) //IL_0b34: Unknown result type (might be due to invalid IL or missing references) //IL_0c14: Unknown result type (might be due to invalid IL or missing references) //IL_0c46: Unknown result type (might be due to invalid IL or missing references) //IL_0c53: Unknown result type (might be due to invalid IL or missing references) //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c7c: Unknown result type (might be due to invalid IL or missing references) //IL_0c95: Unknown result type (might be due to invalid IL or missing references) //IL_0c97: Unknown result type (might be due to invalid IL or missing references) //IL_0cf0: Unknown result type (might be due to invalid IL or missing references) //IL_0cf5: Unknown result type (might be due to invalid IL or missing references) //IL_0d14: Unknown result type (might be due to invalid IL or missing references) //IL_0d19: Unknown result type (might be due to invalid IL or missing references) //IL_0dca: Unknown result type (might be due to invalid IL or missing references) //IL_0df8: Unknown result type (might be due to invalid IL or missing references) //IL_0dfd: Unknown result type (might be due to invalid IL or missing references) //IL_0e3e: Unknown result type (might be due to invalid IL or missing references) //IL_0e70: Unknown result type (might be due to invalid IL or missing references) //IL_0e7d: Unknown result type (might be due to invalid IL or missing references) //IL_0ea4: Unknown result type (might be due to invalid IL or missing references) //IL_0ea6: Unknown result type (might be due to invalid IL or missing references) //IL_0ebf: Unknown result type (might be due to invalid IL or missing references) //IL_0ec1: Unknown result type (might be due to invalid IL or missing references) //IL_0fa6: Unknown result type (might be due to invalid IL or missing references) //IL_0fab: Unknown result type (might be due to invalid IL or missing references) //IL_0fe5: Unknown result type (might be due to invalid IL or missing references) //IL_0fea: Unknown result type (might be due to invalid IL or missing references) //IL_101e: Unknown result type (might be due to invalid IL or missing references) //IL_1023: Unknown result type (might be due to invalid IL or missing references) //IL_1030: Unknown result type (might be due to invalid IL or missing references) //IL_1057: Unknown result type (might be due to invalid IL or missing references) //IL_1059: Unknown result type (might be due to invalid IL or missing references) //IL_1072: Unknown result type (might be due to invalid IL or missing references) //IL_1074: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveAlwaysJumping", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveAlwaysJumpingUI", false); val.AddComponent(); val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryUtility; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BOUNCY"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BOUNCY"; ((Graphic)((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.8f, 1f, 0.6f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 1f, 0.6f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.8f, 1f, 0.6f); WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 2.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveSurprise", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveSurpriseUI", false); val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusGreen; val4.GetComponent().rewardDisplayTier = (ItemTier)1; val4.GetComponent().wavePeriodSeconds = 1f; val4.GetComponent().immediateCreditsFraction = 1f; InfiniteTowerWaveController component = val4.GetComponent(); component.secondsBeforeSuddenDeath *= 2f; val4.GetComponent().overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_ALLCREDITS"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_ALLCREDITS"; TextMeshProUGUI component2 = ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent(); ((Graphic)component2).color = ((Graphic)component2).color * 1.1f; Image component3 = ((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent(); ((Graphic)component3).color = ((Graphic)component3).color * 1.1f; WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val6); ItemDef itemDef = Addressables.LoadAssetAsync((object)"RoR2/Base/AdaptiveArmor/AdaptiveArmor.asset").WaitForCompletion(); CharacterSpawnCard val7 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/EliteVoid/cscVoidInfestor.asset").WaitForCompletion()); ((Object)val7).name = "cscVoidInfestorIT"; val7.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[2] { new ItemCountPair { itemDef = itemDef, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 30 } }; DirectorCard val8 = new DirectorCard { spawnCard = (SpawnCard)(object)val7, selectionWeight = 1, preventOverhead = true, minimumStageCompletions = 0, spawnDistance = (MonsterSpawnDistance)0 }; DirectorCardCategorySelection val9 = ScriptableObject.CreateInstance(); val9.AddCategory("Basic Monsters", 6f); val9.AddCard(0, val8); ((Object)val9).name = "dccsVoidInfestorOnly"; val9.categories[0].cards[0].spawnCard = (SpawnCard)(object)val7; GameObject val10 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_VoidElites", true); GameObject val11 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerCurrentBossVoidEliteWaveUI", false); val10.GetComponent().spawnList[0].spawnCard = val7; ((InfiniteTowerWaveController)val10.GetComponent()).baseCredits = 580f; ((InfiniteTowerWaveController)val10.GetComponent()).secondsBeforeSuddenDeath = 120f; ((InfiniteTowerWaveController)val10.GetComponent()).wavePeriodSeconds = 50f; val10.AddComponent().newRadius = 80f; val10.AddComponent().code = SimuWaveUnsortedExtras.Case.Infestor; val10.AddComponent().hpBonusMulti = 3f; CombatDirector val12 = val10.AddComponent(); val12.monsterCredit = 550f; val12.monsterCards = val9; val12.skipSpawnIfTooCheap = false; val12.teamIndex = (TeamIndex)4; val12.moneyWaveIntervals = (RangeFloat[])(object)new RangeFloat[1] { new RangeFloat { max = 1f, min = 0.5f } }; val12.creditMultiplier = 4f; val12.maxSeriesSpawnInterval += 0.5f; val12.minSeriesSpawnInterval += 0.5f; val12.maxRerollSpawnInterval += 0.5f; val12.minRerollSpawnInterval += 0.5f; val10.GetComponent().rewardDisplayTier = (ItemTier)7; val10.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITVoidInfestorWave; val10.GetComponent().overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_INFESTORS"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_INFESTORS"; ((Graphic)((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.8f, 1f, 1f); WeightedWave val13 = new WeightedWave { wavePrefab = val10, weight = 8f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val13); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BossWave, "InfiniteTowerWaveDoubleBoss", true); GameObject val15 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerWaveDoubleBossUI", false); val14.GetComponent().overlayEntries[1].prefab = val15; InfiniteTowerWaveController component4 = val14.GetComponent(); component4.baseCredits *= 2f; InfiniteTowerWaveController component5 = val14.GetComponent(); component5.secondsBeforeSuddenDeath *= 1.5f; val14.GetComponent().secondsAfterWave = 14; val14.GetComponent().wavePeriodSeconds = 40f; val14.GetComponent().eliteBias = 0f; val14.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier2; val14.GetComponent().rewardDisplayTier = (ItemTier)1; val14.GetComponent().newRadius = 90f; ((Component)val15.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveBossMountain.png"); ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_MOUNTAIN"; ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_MOUNTAIN"; ((Graphic)((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.2f, 0.8f, 0.9f); ((Graphic)((Component)val15.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.2f, 0.8f, 0.9f); Object.Instantiate(((Component)val15.transform.GetChild(0).GetChild(0)).gameObject, val15.transform.GetChild(0)); WeightedWave val16 = new WeightedWave { wavePrefab = val14, weight = 10f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val16); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_WithDrone", true); GameObject val18 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_WithDroneUI", false); val17.GetComponent().baseCredits = 450f; val17.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossCategoryUtility; val17.GetComponent().rewardDisplayTier = (ItemTier)1; val17.AddComponent().newRadius = 95f; DroneWave = val17.GetComponent(); val17.GetComponent().overlayEntries[1].prefab = val18; SimuExplicitStats simuExplicitStats = val17.AddComponent(); simuExplicitStats.damageBonusMulti = 0.8f; simuExplicitStats.OneExtraSpawnStartingWave = 30; ((Component)val18.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_FLAMEDRONES"; ((Component)val18.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_FLAMEDRONES"; ((Graphic)((Component)val18.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.5f); ((Graphic)((Component)val18.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.7f, 0.4f); ((Graphic)((Component)val18.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.7f, 0.4f, 0f); WeightedWave val19 = new WeightedWave { wavePrefab = val17, weight = 6f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val19); GameObject val20 = PrefabAPI.InstantiateClone(Constant.BossWave, "WaveBoss_Eclipse8", true); GameObject val21 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_Eclipse8", false); val20.GetComponent().overlayEntries[1].prefab = val21; val20.GetComponent().baseCredits = 450f; val20.GetComponent().immediateCreditsFraction = 0.1f; val20.GetComponent().rewardDisplayTier = (ItemTier)2; val20.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; val20.AddComponent().newRadius = 50f; val20.AddComponent(); ((Component)val21.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_ECLIPSE8"; ((Component)val21.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_ECLIPSE8"; ((Component)val21.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveEclipse.png"); ((Graphic)((Component)val21.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.6f, 0.8f, 0.95f); ((Graphic)((Component)val21.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.1f, 0.15f, 0.4f); WeightedWave val22 = new WeightedWave { wavePrefab = val20, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val22); GameObject val23 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveMeridianStorm", true); GameObject val24 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveMeridianStormUI", false); val23.GetComponent().overlayEntries[1].prefab = val24; val23.AddComponent(); InteractableSpawnCard val25 = Addressables.LoadAssetAsync((object)"RoR2/DLC2/iscGeode.asset").WaitForCompletion(); val25.orientToFloor = false; val23.GetComponent().rewardPickupPrefab = Addressables.LoadAssetAsync((object)"RoR2/DLC2/FragmentPotentialPickup.prefab").WaitForCompletion(); val23.GetComponent().rewardOptionCount = 4; InfiniteTowerWaveController component6 = val23.GetComponent(); component6.baseCredits += 10f; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_PMSTORM"; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_PMSTORM"; ((Graphic)((Component)val24.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.52f, 0.79f, 1f); ((Component)val24.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Addressables.LoadAssetAsync((object)"RoR2/Base/ShockNearby/bdTeslaField.asset").WaitForCompletion().iconSprite; ((Graphic)((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.52f, 0.79f, 1f); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.52f, 0.79f, 1f); WeightedWave val26 = new WeightedWave { wavePrefab = val23, weight = 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC2_StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val26); GameObject val27 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveKnockback", true); GameObject val28 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveKnockbackUI", false); val27.GetComponent().overlayEntries[1].prefab = val28; val27.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryUtility; val27.AddComponent(); ((Component)val28.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_KNOCKBACKFIN"; ((Component)val28.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_KNOCKBACKFIN"; ((Graphic)((Component)val28.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)219, (byte)122, (byte)173, byte.MaxValue)); ((Graphic)((Component)val28.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)216, (byte)95, (byte)148, byte.MaxValue)); ((Graphic)((Component)val28.transform.GetChild(0).GetChild(2)).GetComponent()).color = Color32.op_Implicit(new Color32((byte)216, (byte)95, (byte)148, byte.MaxValue)); WeightedWave val29 = new WeightedWave { wavePrefab = val27, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val29); } } public class Waves_ModSupport { public static void ModdedArtifacts() { //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: 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_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.ArtifactWave, "InfiniteTowerWaveArtifactSS2Cognation", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.ArtifactWaveUI, "InfiniteTowerWaveArtifactSS2CognationUI", false); val.GetComponent().overlayEntries[1].prefab = val2; val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicWaveOnKill; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "SS2_ITWAVE_NAME_BASIC_COGNATION"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "SS2_ITWAVE_DESC_BASIC_COGNATION"; WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 1.5f }; Constant.ITModSupportWaves.wavePrefabs = Constant.ITModSupportWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.ArtifactWave, "InfiniteTowerWaveArtifactRiskyOrigin", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.ArtifactWaveUI, "InfiniteTowerWaveArtifactRiskyOriginUI", false); val4.GetComponent().overlayEntries[1].prefab = val5; val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "MOD_ITWAVE_NAME_BASIC_ORIGIN"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "MOD_ITWAVE_DESC_BASIC_ORIGIN"; WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 1f }; Constant.ITModSupportWaves.wavePrefabs = Constant.ITModSupportWaves.wavePrefabs.Add(val6); } internal static void MakeWaves() { //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: 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_011c: 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_0144: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0299: Unknown result type (might be due to invalid IL or missing references) //IL_02cb: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Unknown result type (might be due to invalid IL or missing references) //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_0319: Unknown result type (might be due to invalid IL or missing references) //IL_031b: Unknown result type (might be due to invalid IL or missing references) ModdedArtifacts(); GameObject val = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_Direseeker", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerCurrentBossDireseekerWaveUI", false); ((InfiniteTowerWaveController)val.GetComponent()).immediateCreditsFraction = 0.15f; ((InfiniteTowerWaveController)val.GetComponent()).baseCredits = 150f; ((InfiniteTowerWaveController)val.GetComponent()).linearCreditsPerWave = 3f; ((InfiniteTowerWaveController)val.GetComponent()).secondsBeforeSuddenDeath = 120f; val.GetComponent().rewardDisplayTier = (ItemTier)2; val.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; val.AddComponent().newRadius = 80f; val.GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"RoR2/Base/dampcave/dccsDampCaveMonstersDLC1.asset").WaitForCompletion(); val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "MOD_ITWAVE_NAME_BOSS_DIRESEEKER"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "MOD_ITWAVE_DESC_BOSS_DIRESEEKER"; WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITModSupportWaves.wavePrefabs = Constant.ITModSupportWaves.wavePrefabs.Add(val3); GameObject val4 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "InfiniteTowerWaveSS2RainbowElites", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerCurrentSS2RainbowElitesWaveUI", false); val4.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; val4.GetComponent().rewardDisplayTier = (ItemTier)0; val4.GetComponent().baseCredits = 100f; val4.GetComponent().wavePeriodSeconds = 30f; val4.GetComponent().overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "SS2_ITWAVE_NAME_BASIC_RAINBOWELITE"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "SS2_ITWAVE_DESC_BASIC_RAINBOWELITE"; ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.7f, 1f, 1f); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent()).color = new Color(0.7f, 1f, 0.7f); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.85f, 0.3f, 0.3f); WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave30Prerequisite }; Constant.ITModSupportWaves.wavePrefabs = Constant.ITModSupportWaves.wavePrefabs.Add(val6); } } public class Waves_Pulse { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_OnEnter <>9__0_0; internal void b__0_0(orig_OnEnter orig, MoonBatteryComplete self) { if (!Object.op_Implicit((Object)(object)((EntityState)self).gameObject.GetComponent())) { orig.Invoke(self); } } } internal static void MakeWaves() { //IL_009b: 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_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_021f: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Unknown result type (might be due to invalid IL or missing references) //IL_0252: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_037e: 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_03e0: Unknown result type (might be due to invalid IL or missing references) //IL_0484: Unknown result type (might be due to invalid IL or missing references) //IL_053e: Unknown result type (might be due to invalid IL or missing references) //IL_0569: Unknown result type (might be due to invalid IL or missing references) //IL_0576: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Unknown result type (might be due to invalid IL or missing references) //IL_059f: Unknown result type (might be due to invalid IL or missing references) //IL_05b8: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Unknown result type (might be due to invalid IL or missing references) //IL_0644: Unknown result type (might be due to invalid IL or missing references) //IL_06ea: Unknown result type (might be due to invalid IL or missing references) //IL_071b: Unknown result type (might be due to invalid IL or missing references) //IL_074c: Unknown result type (might be due to invalid IL or missing references) //IL_07e2: Unknown result type (might be due to invalid IL or missing references) //IL_089c: Unknown result type (might be due to invalid IL or missing references) //IL_08d4: Unknown result type (might be due to invalid IL or missing references) //IL_0906: Unknown result type (might be due to invalid IL or missing references) //IL_0913: Unknown result type (might be due to invalid IL or missing references) //IL_093a: Unknown result type (might be due to invalid IL or missing references) //IL_093c: Unknown result type (might be due to invalid IL or missing references) //IL_0955: Unknown result type (might be due to invalid IL or missing references) //IL_0957: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Unknown result type (might be due to invalid IL or missing references) //IL_0a97: Unknown result type (might be due to invalid IL or missing references) //IL_0ac8: Unknown result type (might be due to invalid IL or missing references) //IL_0be3: Unknown result type (might be due to invalid IL or missing references) //IL_0c1b: Unknown result type (might be due to invalid IL or missing references) //IL_0c4d: Unknown result type (might be due to invalid IL or missing references) //IL_0c5a: Unknown result type (might be due to invalid IL or missing references) //IL_0c81: Unknown result type (might be due to invalid IL or missing references) //IL_0c83: Unknown result type (might be due to invalid IL or missing references) //IL_0c9c: Unknown result type (might be due to invalid IL or missing references) //IL_0c9e: 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) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown object obj = <>c.<>9__0_0; if (obj == null) { hook_OnEnter val = delegate(orig_OnEnter orig, MoonBatteryComplete self) { if (!Object.op_Implicit((Object)(object)((EntityState)self).gameObject.GetComponent())) { orig.Invoke(self); } }; <>c.<>9__0_0 = val; obj = (object)val; } MoonBatteryComplete.OnEnter += (hook_OnEnter)obj; GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWavePulseLunar", true); GameObject val3 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWavePulseLunarUI", false); val2.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusLunar; GameObject val4 = PrefabAPI.InstantiateClone(LegacyResourcesAPI.Load("Prefabs/NetworkedObjects/MoonBatteryDesignPulse"), "ITPulseLunar", true); val4.GetComponent().finalRadius = 75f; val4.GetComponent().duration = 0.6f; Transform child = val4.transform.GetChild(1); child.localScale *= 2f; Transform child2 = val4.transform.GetChild(2); child2.localScale *= 2f; Transform child3 = val4.transform.GetChild(4); child3.localScale *= 3f; BuffDef val5 = LegacyResourcesAPI.Load("BuffDefs/Cripple"); SimulacrumPulseWave simulacrumPulseWave = val2.AddComponent(); simulacrumPulseWave.buffDef = val5; simulacrumPulseWave.buffDuration = 3f; simulacrumPulseWave.pulsePrefab = val4; simulacrumPulseWave.baseForce = 5000f; simulacrumPulseWave.pulseInterval = 1.5f; val2.GetComponent().overlayEntries[1].prefab = val3; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_PULSE_LUNAR"; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_PULSE_LUNAR"; ((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val5.iconSprite; ((Graphic)((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val5.buffColor; ((Graphic)((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.55f, 0.85f, 0.95f); WeightedWave val6 = new WeightedWave { wavePrefab = val2, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val6); GameObject val7 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWavePulseVoid", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerWavePulseVoidUI", false); val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusVoid; GameObject val9 = PrefabAPI.InstantiateClone(val4, "ITPulseVoid", true); val9.GetComponent().finalRadius = 75f; val9.GetComponent().duration = 0.6f; Material val10 = Object.Instantiate(((Renderer)((Component)val4.transform.GetChild(0).GetChild(0)).GetComponent()).material); Texture2D val11 = Assets.Bundle.LoadAsset("Assets/Simulacrum/Main/texRampPulseVoid.png"); ((Texture)val11).wrapMode = (TextureWrapMode)1; ((Texture)val11).filterMode = (FilterMode)0; val10.SetTexture("_RemapTex", (Texture)(object)val11); ((Renderer)((Component)val9.transform.GetChild(0).GetChild(0)).GetComponent()).material = val10; ((Component)val9.transform.GetChild(1)).GetComponent().startColor = new Color(1f, 0.2f, 1f, 1f); ((Component)val9.transform.GetChild(2)).GetComponent().startColor = new Color(0.255f, 0.2f, 0.255f, 1f); ((Component)val9.transform.GetChild(4)).GetComponent().startColor = new Color(0.9137f, 0.3569f, 0.9137f, 0.5922f); BuffDef buffDef = LegacyResourcesAPI.Load("BuffDefs/NullifyStack"); BuffDef val12 = LegacyResourcesAPI.Load("BuffDefs/Nullified"); simulacrumPulseWave = val7.AddComponent(); simulacrumPulseWave.buffDef = buffDef; simulacrumPulseWave.buffDuration = 20f; simulacrumPulseWave.pulsePrefab = val9; simulacrumPulseWave.baseForce = 3000f; simulacrumPulseWave.pulseInterval = 1.5f; SimulacrumPulseWave simulacrumPulseWave2 = val7.AddComponent(); simulacrumPulseWave2.buffDef = buffDef; simulacrumPulseWave2.buffDuration = 20f; simulacrumPulseWave2.pulsePrefab = val9; simulacrumPulseWave2.baseForce = 3000f; simulacrumPulseWave2.pulseInterval = 1.5f; simulacrumPulseWave2.affectedTeam = (TeamIndex)2; val7.GetComponent().overlayEntries[1].prefab = val8; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_PULSE_VOID"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_PULSE_VOID"; ((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val12.iconSprite; ((Graphic)((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val12.buffColor; ((Graphic)((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = val12.buffColor; WeightedWave val13 = new WeightedWave { wavePrefab = val7, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val13); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWavePulseSuckInward", true); GameObject val15 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWavePulseSuckInwardUI", false); val14.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryUtility; GameObject val16 = PrefabAPI.InstantiateClone(val4, "ITPulseSuckInward", true); val16.GetComponent().finalRadius = 100f; val16.GetComponent().duration = 1f; val16.transform.localPosition = new Vector3(0f, -2.5f, 0f); Material val17 = Object.Instantiate(((Renderer)((Component)val4.transform.GetChild(0).GetChild(0)).GetComponent()).material); Texture2D val18 = Assets.Bundle.LoadAsset("Assets/Simulacrum/Main/texRampPulseSuck.png"); ((Texture)val18).wrapMode = (TextureWrapMode)1; ((Texture)val18).filterMode = (FilterMode)0; val17.SetTexture("_RemapTex", (Texture)(object)val18); ((Renderer)((Component)val16.transform.GetChild(0).GetChild(0)).GetComponent()).material = val17; ((Component)val16.transform.GetChild(1)).GetComponent().startColor = new Color(0.2f, 0.2f, 0.2f, 1f); ((Component)val16.transform.GetChild(2)).GetComponent().startColor = new Color(0.2f, 0.2f, 0.2f, 1f); ((Component)val16.transform.GetChild(4)).GetComponent().startColor = new Color(0.3f, 0.3f, 0.3f, 0.5922f); BuffDef val19 = LegacyResourcesAPI.Load("BuffDefs/ElementalRingVoidCooldown"); simulacrumPulseWave = val14.AddComponent(); simulacrumPulseWave.buffDef = null; simulacrumPulseWave.buffDuration = 0f; simulacrumPulseWave.pulsePrefab = val16; simulacrumPulseWave.baseForce = -6000f; simulacrumPulseWave.pulseInterval = 1.3f; simulacrumPulseWave2 = val14.AddComponent(); simulacrumPulseWave2.buffDef = null; simulacrumPulseWave2.buffDuration = 0f; simulacrumPulseWave2.pulsePrefab = val16; simulacrumPulseWave2.baseForce = -12000f; simulacrumPulseWave2.pulseInterval = 1.3f; simulacrumPulseWave2.affectedTeam = (TeamIndex)2; val14.GetComponent().overlayEntries[1].prefab = val15; ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_PULSE_BIGSUCK"; ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_PULSE_BIGSUCK"; ((Component)val15.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val19.iconSprite; ((Graphic)((Component)val15.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val19.buffColor; ((Graphic)((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.6f, 0.6f, 0.6f); ((Graphic)((Component)val15.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.3f, 0.3f, 0.3f); WeightedWave val20 = new WeightedWave { wavePrefab = val14, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val20); GameObject val21 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWavePulseNoHealing", true); GameObject val22 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWavePulseNoHealingUI", false); val21.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryHealing; GameObject val23 = PrefabAPI.InstantiateClone(val4, "ITPulseNoHealing", true); val23.GetComponent().finalRadius = 150f; val23.GetComponent().duration = 1.5f; Material val24 = Object.Instantiate(((Renderer)((Component)val4.transform.GetChild(0).GetChild(0)).GetComponent()).material); Texture2D val25 = Assets.Bundle.LoadAsset("Assets/Simulacrum/Main/texRampPulseNoHeal.png"); ((Texture)val25).wrapMode = (TextureWrapMode)1; ((Texture)val25).filterMode = (FilterMode)0; val24.SetTexture("_RemapTex", (Texture)(object)val25); ((Renderer)((Component)val23.transform.GetChild(0).GetChild(0)).GetComponent()).material = val24; ((Component)val23.transform.GetChild(1)).GetComponent().startColor = new Color(0.2f, 0.6f, 0.2f, 1f); ((Component)val23.transform.GetChild(2)).GetComponent().startColor = new Color(0.15f, 0.255f, 0.15f, 1f); ((Component)val23.transform.GetChild(4)).GetComponent().startColor = new Color(0.2f, 0.7f, 0.2f, 0.58f); BuffDef val26 = LegacyResourcesAPI.Load("BuffDefs/HealingDisabled"); val21.AddComponent().buffDef = val26; val21.GetComponent().buffDuration = 8f; val21.GetComponent().pulsePrefab = val23; val21.GetComponent().baseForce = 0f; val21.GetComponent().pulseInterval = 1.5f; val21.GetComponent().overlayEntries[1].prefab = val22; ((Component)val22.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_PULSE_MALACHITE"; ((Component)val22.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_PULSE_MALACHITE"; ((Component)val22.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = val26.iconSprite; ((Graphic)((Component)val22.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = val26.buffColor; ((Graphic)((Component)val22.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.4f, 0.9f, 0.3f); ((Graphic)((Component)val22.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.3f, 0.5f, 0.2f); WeightedWave val27 = new WeightedWave { wavePrefab = val21, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val27); } } public class Waves_SizeChanging { internal static void MakeWaves() { //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_0187: 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_0306: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_033c: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Unknown result type (might be due to invalid IL or missing references) //IL_035d: Unknown result type (might be due to invalid IL or missing references) //IL_035f: Unknown result type (might be due to invalid IL or missing references) GameObject val = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveSizeBigEnemies", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveSizeBigEnemiesUI", false); val.AddComponent().sizeModifier = 1.65f; SimulacrumGiveItemsOnStart simulacrumGiveItemsOnStart = val.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITHealthUpMult"; simulacrumGiveItemsOnStart.count = 90; val.GetComponent().baseCredits = 130f; val.GetComponent().overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BIG"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BIG"; ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveBIG.png"); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.75f, 0.9f, 0.95f); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.75f, 0.9f, 0.95f); WeightedWave val3 = new WeightedWave { wavePrefab = val, weight = 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; GameObject val4 = PrefabAPI.InstantiateClone(Constant.BasicWave, "InfiniteTowerWaveSizeSmallEnemies", true); GameObject val5 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveSizeSmallEnemiesUI", false); val4.AddComponent().sizeModifier = 0.6f; simulacrumGiveItemsOnStart = val4.AddComponent(); simulacrumGiveItemsOnStart.itemString = "CutHp"; simulacrumGiveItemsOnStart.count = 1; simulacrumGiveItemsOnStart.hideItem = true; simulacrumGiveItemsOnStart = val4.AddComponent(); simulacrumGiveItemsOnStart.itemString = "ITHealthUpMult"; simulacrumGiveItemsOnStart.count = 30; val4.GetComponent().baseCredits = 220f; val4.GetComponent().overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_SMALL"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_SMALL"; ((Component)val5.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveSMALL.png"); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.75f, 0.9f, 0.95f); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.75f, 0.9f, 0.95f); WeightedWave val6 = new WeightedWave { wavePrefab = val4, weight = 1f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val3, val6); } } public class Waves_SpecialFollower { } public class Waves_SpecialGuy { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static hook_OnEnter <>9__6_0; internal void b__6_0(orig_OnEnter orig, ReadyState self) { orig.Invoke(self); if (((BaseBodyAttachmentState)self).attachedBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.attachedHealthComponent.Networkhealth = 10f; } } } public static CardRandomizer CardRandomizerEquipmentDrones; public static GameObject WaveBoss_EquipmentDrone; public static MultiCSC CardRandomizerBasicGhost; public static CharacterSpawnCard ExtractorGhost; public static CharacterSpawnCard InvalidatorGhost; public static MultiCSC CardRandomizerBossGhost; internal static void MakeWaves() { //IL_00cf: 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_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_028a: 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_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02ba: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_030f: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Unknown result type (might be due to invalid IL or missing references) //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_031f: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Unknown result type (might be due to invalid IL or missing references) //IL_033f: Unknown result type (might be due to invalid IL or missing references) //IL_0449: Unknown result type (might be due to invalid IL or missing references) //IL_0486: Unknown result type (might be due to invalid IL or missing references) //IL_0493: Unknown result type (might be due to invalid IL or missing references) //IL_04bd: Unknown result type (might be due to invalid IL or missing references) //IL_04bf: Unknown result type (might be due to invalid IL or missing references) //IL_04d8: Unknown result type (might be due to invalid IL or missing references) //IL_04da: Unknown result type (might be due to invalid IL or missing references) //IL_0580: Unknown result type (might be due to invalid IL or missing references) //IL_068f: Unknown result type (might be due to invalid IL or missing references) //IL_06c6: Unknown result type (might be due to invalid IL or missing references) //IL_06d3: Unknown result type (might be due to invalid IL or missing references) //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_06fc: Unknown result type (might be due to invalid IL or missing references) //IL_0715: Unknown result type (might be due to invalid IL or missing references) //IL_0717: Unknown result type (might be due to invalid IL or missing references) //IL_08a2: Unknown result type (might be due to invalid IL or missing references) //IL_08d9: Unknown result type (might be due to invalid IL or missing references) //IL_08e6: Unknown result type (might be due to invalid IL or missing references) //IL_090d: Unknown result type (might be due to invalid IL or missing references) //IL_090f: Unknown result type (might be due to invalid IL or missing references) //IL_0928: Unknown result type (might be due to invalid IL or missing references) //IL_092a: Unknown result type (might be due to invalid IL or missing references) //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ad4: Unknown result type (might be due to invalid IL or missing references) //IL_0ae1: Unknown result type (might be due to invalid IL or missing references) //IL_0b08: Unknown result type (might be due to invalid IL or missing references) //IL_0b0a: Unknown result type (might be due to invalid IL or missing references) //IL_0b23: Unknown result type (might be due to invalid IL or missing references) //IL_0b25: Unknown result type (might be due to invalid IL or missing references) //IL_0b8c: Unknown result type (might be due to invalid IL or missing references) //IL_0ba1: Unknown result type (might be due to invalid IL or missing references) //IL_0bae: Unknown result type (might be due to invalid IL or missing references) //IL_0bb0: Unknown result type (might be due to invalid IL or missing references) //IL_0be7: Unknown result type (might be due to invalid IL or missing references) //IL_0cea: Unknown result type (might be due to invalid IL or missing references) //IL_0d27: Unknown result type (might be due to invalid IL or missing references) //IL_0d5e: Unknown result type (might be due to invalid IL or missing references) //IL_0d6b: Unknown result type (might be due to invalid IL or missing references) //IL_0d92: Unknown result type (might be due to invalid IL or missing references) //IL_0d94: Unknown result type (might be due to invalid IL or missing references) //IL_0dad: Unknown result type (might be due to invalid IL or missing references) //IL_0daf: Unknown result type (might be due to invalid IL or missing references) //IL_0e59: Unknown result type (might be due to invalid IL or missing references) //IL_0e73: Unknown result type (might be due to invalid IL or missing references) //IL_0e75: Unknown result type (might be due to invalid IL or missing references) //IL_0e7e: Unknown result type (might be due to invalid IL or missing references) //IL_0e98: Unknown result type (might be due to invalid IL or missing references) //IL_0e9a: Unknown result type (might be due to invalid IL or missing references) //IL_0ea3: Unknown result type (might be due to invalid IL or missing references) //IL_0ebe: Unknown result type (might be due to invalid IL or missing references) //IL_0ec0: Unknown result type (might be due to invalid IL or missing references) //IL_0ec9: Unknown result type (might be due to invalid IL or missing references) //IL_0edf: Unknown result type (might be due to invalid IL or missing references) //IL_0ee1: Unknown result type (might be due to invalid IL or missing references) //IL_0eee: Unknown result type (might be due to invalid IL or missing references) //IL_0f1f: Unknown result type (might be due to invalid IL or missing references) //IL_0fbb: Unknown result type (might be due to invalid IL or missing references) //IL_0ff3: Unknown result type (might be due to invalid IL or missing references) //IL_1025: Unknown result type (might be due to invalid IL or missing references) //IL_1032: Unknown result type (might be due to invalid IL or missing references) //IL_1059: Unknown result type (might be due to invalid IL or missing references) //IL_105b: Unknown result type (might be due to invalid IL or missing references) //IL_1074: Unknown result type (might be due to invalid IL or missing references) //IL_1076: Unknown result type (might be due to invalid IL or missing references) //IL_10e6: Unknown result type (might be due to invalid IL or missing references) //IL_10eb: Unknown result type (might be due to invalid IL or missing references) //IL_1114: Unknown result type (might be due to invalid IL or missing references) //IL_112b: Unknown result type (might be due to invalid IL or missing references) //IL_112d: Unknown result type (might be due to invalid IL or missing references) //IL_1136: Unknown result type (might be due to invalid IL or missing references) //IL_1151: Unknown result type (might be due to invalid IL or missing references) //IL_1153: Unknown result type (might be due to invalid IL or missing references) //IL_115c: Unknown result type (might be due to invalid IL or missing references) //IL_117a: Unknown result type (might be due to invalid IL or missing references) //IL_117c: Unknown result type (might be due to invalid IL or missing references) //IL_1185: Unknown result type (might be due to invalid IL or missing references) //IL_11a4: Unknown result type (might be due to invalid IL or missing references) //IL_11a6: Unknown result type (might be due to invalid IL or missing references) //IL_11af: Unknown result type (might be due to invalid IL or missing references) //IL_11ce: Unknown result type (might be due to invalid IL or missing references) //IL_11d0: Unknown result type (might be due to invalid IL or missing references) //IL_11d9: Unknown result type (might be due to invalid IL or missing references) //IL_11f8: Unknown result type (might be due to invalid IL or missing references) //IL_11fa: Unknown result type (might be due to invalid IL or missing references) //IL_1203: Unknown result type (might be due to invalid IL or missing references) //IL_121a: Unknown result type (might be due to invalid IL or missing references) //IL_121c: Unknown result type (might be due to invalid IL or missing references) //IL_1225: Unknown result type (might be due to invalid IL or missing references) //IL_123d: Unknown result type (might be due to invalid IL or missing references) //IL_123f: Unknown result type (might be due to invalid IL or missing references) //IL_1248: Unknown result type (might be due to invalid IL or missing references) //IL_125f: Unknown result type (might be due to invalid IL or missing references) //IL_1261: Unknown result type (might be due to invalid IL or missing references) //IL_126b: Unknown result type (might be due to invalid IL or missing references) //IL_1278: Unknown result type (might be due to invalid IL or missing references) //IL_127d: Unknown result type (might be due to invalid IL or missing references) //IL_1294: Unknown result type (might be due to invalid IL or missing references) //IL_1296: Unknown result type (might be due to invalid IL or missing references) //IL_12a0: Unknown result type (might be due to invalid IL or missing references) //IL_12b7: Unknown result type (might be due to invalid IL or missing references) //IL_12b9: Unknown result type (might be due to invalid IL or missing references) //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_1303: Unknown result type (might be due to invalid IL or missing references) //IL_1305: Unknown result type (might be due to invalid IL or missing references) //IL_130e: Unknown result type (might be due to invalid IL or missing references) //IL_1325: Unknown result type (might be due to invalid IL or missing references) //IL_1327: Unknown result type (might be due to invalid IL or missing references) //IL_1342: Unknown result type (might be due to invalid IL or missing references) //IL_135c: Unknown result type (might be due to invalid IL or missing references) //IL_1361: Unknown result type (might be due to invalid IL or missing references) //IL_1363: Unknown result type (might be due to invalid IL or missing references) //IL_136c: Unknown result type (might be due to invalid IL or missing references) //IL_1383: Unknown result type (might be due to invalid IL or missing references) //IL_1385: Unknown result type (might be due to invalid IL or missing references) //IL_13ec: Unknown result type (might be due to invalid IL or missing references) //IL_149e: Unknown result type (might be due to invalid IL or missing references) //IL_14db: Unknown result type (might be due to invalid IL or missing references) //IL_1512: Unknown result type (might be due to invalid IL or missing references) //IL_151f: Unknown result type (might be due to invalid IL or missing references) //IL_1546: Unknown result type (might be due to invalid IL or missing references) //IL_1548: Unknown result type (might be due to invalid IL or missing references) //IL_1561: Unknown result type (might be due to invalid IL or missing references) //IL_1563: Unknown result type (might be due to invalid IL or missing references) //IL_15d1: Unknown result type (might be due to invalid IL or missing references) //IL_15ec: Unknown result type (might be due to invalid IL or missing references) //IL_15ee: Unknown result type (might be due to invalid IL or missing references) //IL_15f7: Unknown result type (might be due to invalid IL or missing references) //IL_160d: Unknown result type (might be due to invalid IL or missing references) //IL_160f: Unknown result type (might be due to invalid IL or missing references) //IL_1618: Unknown result type (might be due to invalid IL or missing references) //IL_1632: Unknown result type (might be due to invalid IL or missing references) //IL_1634: Unknown result type (might be due to invalid IL or missing references) //IL_163d: Unknown result type (might be due to invalid IL or missing references) //IL_1658: Unknown result type (might be due to invalid IL or missing references) //IL_165a: Unknown result type (might be due to invalid IL or missing references) //IL_1663: Unknown result type (might be due to invalid IL or missing references) //IL_167d: Unknown result type (might be due to invalid IL or missing references) //IL_167f: Unknown result type (might be due to invalid IL or missing references) //IL_1767: Unknown result type (might be due to invalid IL or missing references) //IL_176c: Unknown result type (might be due to invalid IL or missing references) //IL_17a8: Unknown result type (might be due to invalid IL or missing references) //IL_17e0: Unknown result type (might be due to invalid IL or missing references) //IL_1812: Unknown result type (might be due to invalid IL or missing references) //IL_181f: Unknown result type (might be due to invalid IL or missing references) //IL_1846: Unknown result type (might be due to invalid IL or missing references) //IL_1848: Unknown result type (might be due to invalid IL or missing references) //IL_1861: Unknown result type (might be due to invalid IL or missing references) //IL_1863: Unknown result type (might be due to invalid IL or missing references) //IL_18c8: Unknown result type (might be due to invalid IL or missing references) //IL_18e3: Unknown result type (might be due to invalid IL or missing references) //IL_18e5: Unknown result type (might be due to invalid IL or missing references) //IL_18ee: Unknown result type (might be due to invalid IL or missing references) //IL_1904: Unknown result type (might be due to invalid IL or missing references) //IL_1906: Unknown result type (might be due to invalid IL or missing references) //IL_190f: Unknown result type (might be due to invalid IL or missing references) //IL_1929: Unknown result type (might be due to invalid IL or missing references) //IL_192b: Unknown result type (might be due to invalid IL or missing references) //IL_1934: Unknown result type (might be due to invalid IL or missing references) //IL_194f: Unknown result type (might be due to invalid IL or missing references) //IL_1951: Unknown result type (might be due to invalid IL or missing references) //IL_195a: Unknown result type (might be due to invalid IL or missing references) //IL_1975: Unknown result type (might be due to invalid IL or missing references) //IL_1977: Unknown result type (might be due to invalid IL or missing references) //IL_1980: Unknown result type (might be due to invalid IL or missing references) //IL_199f: Unknown result type (might be due to invalid IL or missing references) //IL_19a1: Unknown result type (might be due to invalid IL or missing references) //IL_19aa: Unknown result type (might be due to invalid IL or missing references) //IL_19c9: Unknown result type (might be due to invalid IL or missing references) //IL_19cb: Unknown result type (might be due to invalid IL or missing references) //IL_19d4: Unknown result type (might be due to invalid IL or missing references) //IL_19ee: Unknown result type (might be due to invalid IL or missing references) //IL_19f0: Unknown result type (might be due to invalid IL or missing references) //IL_1a09: Unknown result type (might be due to invalid IL or missing references) //IL_1a23: Unknown result type (might be due to invalid IL or missing references) //IL_1a28: Unknown result type (might be due to invalid IL or missing references) //IL_1a2a: Unknown result type (might be due to invalid IL or missing references) //IL_1aed: Unknown result type (might be due to invalid IL or missing references) //IL_1b25: Unknown result type (might be due to invalid IL or missing references) //IL_1b57: Unknown result type (might be due to invalid IL or missing references) //IL_1b64: Unknown result type (might be due to invalid IL or missing references) //IL_1b8b: Unknown result type (might be due to invalid IL or missing references) //IL_1b8d: Unknown result type (might be due to invalid IL or missing references) //IL_1ba6: Unknown result type (might be due to invalid IL or missing references) //IL_1ba8: Unknown result type (might be due to invalid IL or missing references) //IL_1bf4: Unknown result type (might be due to invalid IL or missing references) //IL_1c07: Unknown result type (might be due to invalid IL or missing references) //IL_1c0c: Unknown result type (might be due to invalid IL or missing references) //IL_1c33: Unknown result type (might be due to invalid IL or missing references) //IL_1c4e: Unknown result type (might be due to invalid IL or missing references) //IL_1c50: Unknown result type (might be due to invalid IL or missing references) //IL_1c59: Unknown result type (might be due to invalid IL or missing references) //IL_1c73: Unknown result type (might be due to invalid IL or missing references) //IL_1c75: Unknown result type (might be due to invalid IL or missing references) //IL_1c7e: Unknown result type (might be due to invalid IL or missing references) //IL_1c99: Unknown result type (might be due to invalid IL or missing references) //IL_1c9b: Unknown result type (might be due to invalid IL or missing references) //IL_1ca8: Unknown result type (might be due to invalid IL or missing references) //IL_1cbc: Unknown result type (might be due to invalid IL or missing references) //IL_1cd6: Unknown result type (might be due to invalid IL or missing references) //IL_1cdb: Unknown result type (might be due to invalid IL or missing references) //IL_1cdd: Unknown result type (might be due to invalid IL or missing references) //IL_1d8e: Unknown result type (might be due to invalid IL or missing references) //IL_1dc6: Unknown result type (might be due to invalid IL or missing references) //IL_1df8: Unknown result type (might be due to invalid IL or missing references) //IL_1e05: Unknown result type (might be due to invalid IL or missing references) //IL_1e2c: Unknown result type (might be due to invalid IL or missing references) //IL_1e2e: Unknown result type (might be due to invalid IL or missing references) //IL_1ecb: Unknown result type (might be due to invalid IL or missing references) //IL_1ed0: Unknown result type (might be due to invalid IL or missing references) //IL_1f09: Unknown result type (might be due to invalid IL or missing references) //IL_1f0e: Unknown result type (might be due to invalid IL or missing references) //IL_1f4f: Unknown result type (might be due to invalid IL or missing references) //IL_1f54: Unknown result type (might be due to invalid IL or missing references) //IL_1ffe: Unknown result type (might be due to invalid IL or missing references) //IL_2035: Unknown result type (might be due to invalid IL or missing references) //IL_2072: Unknown result type (might be due to invalid IL or missing references) //IL_207f: Unknown result type (might be due to invalid IL or missing references) //IL_20a6: Unknown result type (might be due to invalid IL or missing references) //IL_20a8: Unknown result type (might be due to invalid IL or missing references) //IL_20c1: Unknown result type (might be due to invalid IL or missing references) //IL_20c3: Unknown result type (might be due to invalid IL or missing references) //IL_1e44: Unknown result type (might be due to invalid IL or missing references) //IL_1e49: Unknown result type (might be due to invalid IL or missing references) //IL_1e4f: Expected O, but got Unknown ItemDef itemDef = LegacyResourcesAPI.Load("ItemDefs/Ghost"); ItemDef itemDef2 = LegacyResourcesAPI.Load("ItemDefs/BoostAttackSpeed"); ItemDef val = LegacyResourcesAPI.Load("ItemDefs/AlienHead"); ItemDef itemDef3 = LegacyResourcesAPI.Load("ItemDefs/AdaptiveArmor"); ItemDef itemDef4 = LegacyResourcesAPI.Load("ItemDefs/CutHP"); ItemDef itemDef5 = LegacyResourcesAPI.Load("ItemDefs/UseAmbientLevel"); ItemDef itemDef6 = LegacyResourcesAPI.Load("ItemDefs/BossDamageBonus"); ItemDef itemDef7 = LegacyResourcesAPI.Load("ItemDefs/CritGlassesVoid"); ItemDef itemDef8 = LegacyResourcesAPI.Load("ItemDefs/ExtraLifeVoid"); GameObject val2 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "WaveBasic_EquipmentDrone", true); GameObject val3 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBasic_EquipmentDroneUI", false); WavesMain.orangeWaves.Add(val2); CardRandomizerEquipmentDrones = val2.AddComponent(); InfiniteTowerExplicitSpawnWaveController component = val2.GetComponent(); component.spawnList[0].spawnCard = null; component.spawnList[0].spawnDistance = (MonsterSpawnDistance)0; ((InfiniteTowerWaveController)component).secondsBeforeSuddenDeath = 75f; ((InfiniteTowerWaveController)component).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier1; ((InfiniteTowerWaveController)component).rewardDisplayTier = (ItemTier)0; SimulacrumExtrasHelper simulacrumExtrasHelper = val2.AddComponent(); simulacrumExtrasHelper.rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; simulacrumExtrasHelper.rewardOptionCount = 2; simulacrumExtrasHelper.newRadius = 75f; val2.AddComponent().code = SimuWaveUnsortedExtras.Case.EquipmentDroneWave; SimuExplicitStats simuExplicitStats = val2.AddComponent(); simuExplicitStats.OneExtraSpawnStartingWave = 35; val2.GetComponent().overlayEntries[1].prefab = val3; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_EQUIPMENTDRONE"; ((Component)val3.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_EQUIPMENTDRONE"; ((Component)val3.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveEquipment.png"); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.55f, 0.1f, 1f); ((Graphic)((Component)val3.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.65f, 0.25f, 1f); WeightedWave val4 = new WeightedWave { wavePrefab = val2, weight = 14f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val4); WaveBoss_EquipmentDrone = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_EquipmentDrone", true); GameObject val5 = PrefabAPI.InstantiateClone(Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossBrotherUI.prefab").WaitForCompletion(), "InfiniteTowerCurrentBossEquipmentDroneWaveUI", false); WaveBoss_EquipmentDrone.AddComponent().code = SimuWaveUnsortedExtras.Case.EquipmentDroneWave; component = WaveBoss_EquipmentDrone.GetComponent(); component.spawnList = (SpawnInfo[])(object)new SpawnInfo[2] { new SpawnInfo { count = 1, spawnCard = null, spawnDistance = (MonsterSpawnDistance)2 }, new SpawnInfo { count = 2, spawnCard = null, spawnDistance = (MonsterSpawnDistance)2 } }; WaveBoss_EquipmentDrone.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; WaveBoss_EquipmentDrone.GetComponent().newRadius = 90f; simuExplicitStats = WaveBoss_EquipmentDrone.AddComponent(); simuExplicitStats.OneExtraSpawnStartingWave = 40; ((InfiniteTowerWaveController)component).overlayEntries[1].prefab = val5; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_EQUIPMENTDRONE"; ((Component)val5.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_EQUIPMENTDRONE"; ((Component)val5.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveEquipmentBoss.png"); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.55f, 0.1f, 1f); ((Graphic)((Component)val5.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.65f, 0.25f, 1f); WeightedWave val6 = new WeightedWave { wavePrefab = WaveBoss_EquipmentDrone, weight = 10f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val6); GameObject val7 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "WaveBasic_Ghost", true); GameObject val8 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBasic_GhostUI", false); CardRandomizerBasicGhost = ScriptableObject.CreateInstance(); ((Object)CardRandomizerBasicGhost).name = "MulticscITGhost"; ((SpawnCard)CardRandomizerBasicGhost).sendOverNetwork = true; val7.GetComponent().spawnList[0].spawnCard = (CharacterSpawnCard)(object)CardRandomizerBasicGhost; ((InfiniteTowerWaveController)val7.GetComponent()).secondsBeforeSuddenDeath = 90f; val7.AddComponent().newRadius = 80f; val7.AddComponent(); val7.GetComponent().rewardDisplayTier = (ItemTier)1; val7.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusGreen; simuExplicitStats = val7.AddComponent(); simuExplicitStats.hpBonusMulti = 0f; simuExplicitStats.damageBonusMulti = 0.8f; simuExplicitStats.OneExtraSpawnStartingWave = 40; val7.GetComponent().overlayEntries[1].prefab = val8; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_GHOST"; ((Component)val8.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_GHOST"; ((Component)val8.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGhost.png"); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.8f, 0.85f, 1f); ((Graphic)((Component)val8.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.8f, 0.8f, 0.85f, 1f); WeightedWave val9 = new WeightedWave { wavePrefab = val7, weight = 10f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.NoItMoonStartWave5 }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val9); GameObject val10 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "WaveBasic_GhostExtractor", true); GameObject val11 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "WaveBasic_GhostExtractorUI", false); ExtractorGhost = ScriptableObject.CreateInstance(); ((SpawnCard)ExtractorGhost).sendOverNetwork = true; val10.GetComponent().spawnList[0].spawnCard = ExtractorGhost; val10.GetComponent().spawnList[0].count = 2; val10.GetComponent().rewardOptionCount = 1; simuExplicitStats = val10.AddComponent(); simuExplicitStats.hpBonusMulti = 0f; simuExplicitStats.damageBonusMulti = -1f; simuExplicitStats.ExtraSpawnPerWaves = 10; simuExplicitStats.OneExtraSpawnStartingWave = 10; val10.GetComponent().overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DLC3_EXTRACTOR"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DLC3_EXTRACTOR"; ((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGhost.png"); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.85f, 0.8f, 0.85f, 1f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.85f, 0.75f, 0.85f, 1f); WeightedWave val12 = new WeightedWave { wavePrefab = val10, weight = 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC3_Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val12); GameObject val13 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "WaveBasic_GhostInvalidator", true); GameObject val14 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "WaveBasic_GhostInvalidatorUI", false); InvalidatorGhost = ScriptableObject.CreateInstance(); ((SpawnCard)InvalidatorGhost).sendOverNetwork = true; val13.GetComponent().spawnList[0].spawnCard = InvalidatorGhost; val13.GetComponent().rewardOptionCount = 6; simuExplicitStats = val13.AddComponent(); simuExplicitStats.hpBonusMulti = 0f; simuExplicitStats.damageBonusMulti = -1f; simuExplicitStats.ExtraSpawnPerWaves = 10; simuExplicitStats.OneExtraSpawnStartingWave = 10; val13.GetComponent().overlayEntries[1].prefab = val14; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_DLC3_INVALIDATOR"; ((Component)val14.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_DLC3_INVALIDATOR"; ((Component)val14.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGhost.png"); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.85f, 0.6f, 0.85f, 1f); ((Graphic)((Component)val14.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.85f, 0.65f, 0.85f, 1f); WeightedWave val15 = new WeightedWave { wavePrefab = val13, weight = 2f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC3_Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val15); GameObject val16 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_GhostBoss", true); GameObject val17 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "WaveBoss_GhostBossUI", false); CardRandomizerBossGhost = ScriptableObject.CreateInstance(); ((Object)CardRandomizerBossGhost).name = "MulticscITGhostBoss"; ((SpawnCard)CardRandomizerBossGhost).sendOverNetwork = true; val16.GetComponent().spawnList[0] = new SpawnInfo { spawnCard = (CharacterSpawnCard)(object)CardRandomizerBossGhost, spawnDistance = (MonsterSpawnDistance)2, count = 1 }; ((InfiniteTowerWaveController)val16.GetComponent()).immediateCreditsFraction = 0f; val16.AddComponent().newRadius = 100f; val16.AddComponent(); val16.GetComponent().rewardDisplayTier = (ItemTier)4; val16.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; simuExplicitStats = val16.AddComponent(); simuExplicitStats.damageBonusMulti = 0.4f; simuExplicitStats.OneExtraSpawnStartingWave = 55; val16.GetComponent().overlayEntries[1].prefab = val17; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_GHOST"; ((Component)val17.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_GHOST"; ((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGhostBoss.png"); ((Graphic)((Component)val17.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.8f, 0.85f, 1f); ((Graphic)((Component)val17.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.8f, 0.85f, 1f); ((Graphic)((Component)val17.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.8f, 0.8f, 0.85f, 1f); WeightedWave val18 = new WeightedWave { wavePrefab = val16, weight = 15f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave20Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val18); GameObject val19 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "InfiniteTowerWaveBrotherHaunt", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "InfiniteTowerWaveBrotherHauntUI", false); val19.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicBonusLunar; val19.AddComponent().newRadius = 80f; simuExplicitStats = val19.AddComponent(); simuExplicitStats.spawnAsVoidTeam = true; simuExplicitStats.OneExtraSpawnStartingWave = 35; CharacterSpawnCard val21 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscBrother")); ((Object)val21).name = "cscBrotherHauntIT"; ((SpawnCard)val21).prefab = LegacyResourcesAPI.Load("Prefabs/CharacterMasters/BrotherHauntMaster"); val21.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[4] { new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 2 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 55 }, new ItemCountPair { itemDef = itemDef, count = 1 } }; ((SpawnCard)val21).nodeGraphType = (GraphType)1; val19.GetComponent().spawnList[0].spawnCard = val21; val19.GetComponent().spawnList[0].spawnDistance = (MonsterSpawnDistance)1; val19.GetComponent().overlayEntries[1].prefab = val20; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_BROTHERHAUNT"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_BROTHERHAUNT"; ((Graphic)((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.6f, 1f, 1f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.7f, 0.9f, 1f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.4f, 0.6f, 0.8f); WeightedWave val22 = new WeightedWave { wavePrefab = val19, weight = 5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val22); GameObject val23 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_Characters", true); GameObject val24 = PrefabAPI.InstantiateClone(Constant.LunarWaveUI, "WaveBoss_CharactersUI", false); val23.AddComponent().code = SimuWaveUnsortedExtras.Case.AcridWave; MultiCharacterSpawnCard val25 = ScriptableObject.CreateInstance(); val25.masterPrefabs = (GameObject[])(object)new GameObject[3] { LegacyResourcesAPI.Load("Prefabs/CharacterMasters/MageMonsterMaster"), LegacyResourcesAPI.Load("Prefabs/CharacterMasters/CrocoMonsterMaster"), Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidSurvivor/VoidSurvivorMonsterMaster.prefab").WaitForCompletion() }; ((Object)val25).name = "cscITCharacter"; ((CharacterSpawnCard)val25).itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[11] { new ItemCountPair { itemDef = itemDef8, count = 0 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 70 }, new ItemCountPair { itemDef = ItemHelpers.ITHealthUpMult, count = 820 }, new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/CloverVoid"), count = 1 }, new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/ElementalRingVoid"), count = 1 }, new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/EquipmentMagazineVoid"), count = 1 }, new ItemCountPair { itemDef = itemDef7, count = 1 }, new ItemCountPair { itemDef = itemDef6, count = 15 }, new ItemCountPair { itemDef = itemDef3, count = 1 }, new ItemCountPair { itemDef = Addressables.LoadAssetAsync((object)"RoR2/DLC4/BoostCharacterScale/BoostCharacterScale.asset").WaitForCompletion(), count = 100 }, new ItemCountPair { itemDef = itemDef5, count = 1 } }; CharacterSpawnCard val26 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscNullifier")); ((Object)val26).name = "cscNullifierIT"; val26.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[2] { new ItemCountPair { itemDef = itemDef2, count = 2 }, new ItemCountPair { itemDef = itemDef4, count = 2 } }; val23.GetComponent().spawnList = (SpawnInfo[])(object)new SpawnInfo[2] { new SpawnInfo { spawnCard = (CharacterSpawnCard)(object)val25, count = 0, spawnDistance = (MonsterSpawnDistance)2 }, new SpawnInfo { spawnCard = val26, count = 2 } }; ((InfiniteTowerWaveController)val23.GetComponent()).immediateCreditsFraction = 0f; ((InfiniteTowerWaveController)val23.GetComponent()).baseCredits = 450f; ((InfiniteTowerWaveController)val23.GetComponent()).secondsBeforeSuddenDeath = 120f; val23.AddComponent().newRadius = 90f; ((InfiniteTowerWaveController)val23.GetComponent()).wavePeriodSeconds = 50f; val23.GetComponent().rewardDisplayTier = (ItemTier)1; val23.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBossGreenVoid; val23.GetComponent().overlayEntries[1].prefab = val24; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_ACRID"; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_ACRID"; ((Graphic)((Component)val24.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 1f, 1f); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.8f, 0.6f, 1f, 1f); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.6f, 0.4f, 0.8f, 1f); WeightedWave val27 = new WeightedWave { wavePrefab = val23, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.AfterWave5Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val27); GameObject val28 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "InfiniteTowerWaveInvisibleDude", true); GameObject val29 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveInvisibleDudeUI", false); val28.AddComponent().newRadius = 80f; CharacterSpawnCard val30 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGipBody")); ((Object)val30).name = "cscITInvisibleGip"; val30.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[5] { new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 56 }, new ItemCountPair { itemDef = itemDef, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 99 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 5 } }; val30.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { LegacyResourcesAPI.Load("EquipmentDefs/AffixHaunted") }; val28.GetComponent().spawnList[0].spawnCard = val30; simuExplicitStats = val28.AddComponent(); simuExplicitStats.hpBonusMulti = -1f; simuExplicitStats.OneExtraSpawnStartingWave = 30; val28.GetComponent().overlayEntries[1].prefab = val29; ((Component)val29.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_CELESTIAL"; ((Component)val29.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_CELESTIAL"; ((Component)val29.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Addressables.LoadAssetAsync((object)"da81138a468d2724fb9f518b0acac5c7").WaitForCompletion(); ((Graphic)((Component)val29.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.5f, 0.95f, 0.7f); ((Graphic)((Component)val29.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.5f, 0.95f, 0.7f); ((Graphic)((Component)val29.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.5f, 0.95f, 0.7f); WeightedWave val31 = new WeightedWave { wavePrefab = val28, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val31); GameObject val32 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "InfiniteTowerWaveVagrantNovaDude", true); GameObject val33 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveVagrantNovaDudeUI", false); val32.AddComponent(); CharacterSpawnCard val34 = Object.Instantiate(LegacyResourcesAPI.Load("SpawnCards/CharacterSpawnCards/cscGipBody")); ((Object)val34).name = "cscITSuperNovaGip"; val34.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[8] { new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 78 }, new ItemCountPair { itemDef = itemDef, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITHorrorName, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 80 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 25 }, new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/NovaOnLowHealth"), count = 2 }, new ItemCountPair { itemDef = LegacyResourcesAPI.Load("ItemDefs/PersonalShield"), count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDisableAllSkills, count = 1 } }; val32.GetComponent().spawnList[0] = new SpawnInfo { count = 1, spawnCard = val34, spawnDistance = (MonsterSpawnDistance)1 }; ((InfiniteTowerWaveController)val32.GetComponent()).isBossWave = false; simuExplicitStats = val32.AddComponent(); simuExplicitStats.spawnAsVoidTeam = true; simuExplicitStats.OneExtraSpawnStartingWave = 30; val32.GetComponent().overlayEntries[1].prefab = val33; ((Component)val33.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_VAGRANTNOVA"; ((Component)val33.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_VAGRANTNOVA"; ((Graphic)((Component)val33.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.5f, 0.8f, 0.95f); ((Graphic)((Component)val33.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.5f, 0.8f, 0.95f); ((Graphic)((Component)val33.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.5f, 0.8f, 0.95f); WeightedWave val35 = new WeightedWave { wavePrefab = val32, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; Constant.ITBasicWaves.wavePrefabs = Constant.ITBasicWaves.wavePrefabs.Add(val35); GameObject val36 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Basic, "InfiniteTowerWaveArtifactReliquary", true); GameObject val37 = PrefabAPI.InstantiateClone(Constant.BasicWaveUI, "InfiniteTowerWaveArtifactReliquaryUI", false); val36.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITCategoryDamage; val36.GetComponent().teamIndex = (TeamIndex)4; CharacterSpawnCard val38 = ScriptableObject.CreateInstance(); ((SpawnCard)val38).prefab = Addressables.LoadAssetAsync((object)"RoR2/Base/ArtifactShell/ArtifactShellMaster.prefab").WaitForCompletion(); ((Object)val38).name = "cscITArtifactBall"; val38.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[3] { new ItemCountPair { itemDef = ItemHelpers.ITKillOnCompletion, count = 54 }, new ItemCountPair { itemDef = ItemHelpers.ITAttackSpeedDownMult, count = 1 }, new ItemCountPair { itemDef = ItemHelpers.ITDamageDownMult, count = 45 } }; ((SpawnCard)val38).nodeGraphType = (GraphType)1; val36.GetComponent().spawnList[0] = new SpawnInfo { count = 1, spawnCard = val38, spawnDistance = (MonsterSpawnDistance)1 }; simuExplicitStats = val36.AddComponent(); simuExplicitStats.hpBonusMulti = -1f; val36.GetComponent().overlayEntries[1].prefab = val37; ((Component)val37.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BASIC_ARTIFACTBALL"; ((Component)val37.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_ARTIFACTBALL"; ((Graphic)((Component)val37.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.7f, 0.8f); ((Graphic)((Component)val37.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.7f, 0.8f); ((Graphic)((Component)val37.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.7f, 0.8f); WeightedWave val39 = new WeightedWave { wavePrefab = val36, weight = 1f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave15Prerequisite }; object obj = <>c.<>9__6_0; if (obj == null) { hook_OnEnter val40 = delegate(orig_OnEnter orig, ReadyState self) { orig.Invoke(self); if (((BaseBodyAttachmentState)self).attachedBody.inventory.GetItemCountPermanent(ItemHelpers.ITHorrorName) > 0) { self.attachedHealthComponent.Networkhealth = 10f; } }; <>c.<>9__6_0 = val40; obj = (object)val40; } ReadyState.OnEnter += (hook_OnEnter)obj; GameObject val41 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "InfiniteTowerWaveHalcyoniteBoss", true); GameObject val42 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerWaveHalcyoniteBossUI", false); val41.GetComponent().rewardOptionCount = 4; val41.AddComponent().newRadius = 80f; val41.AddComponent().halfOnNonFinal = false; val41.GetComponent().hpBonusMulti = 2.2f; val41.GetComponent().damageBonusMulti = 0.8f; CharacterSpawnCard val43 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC2/Halcyonite/cscHalcyonite.asset").WaitForCompletion()); ((Object)val43).name = "cscHalcyoniteIT"; val43.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[0]; val43.equipmentToGrant = (EquipmentDef[])(object)new EquipmentDef[1] { Addressables.LoadAssetAsync((object)"RoR2/DLC2/Elites/EliteAurelionite/EliteAurelioniteEquipment.asset").WaitForCompletion() }; val41.GetComponent().spawnList[0].spawnCard = val43; ((InfiniteTowerWaveController)val41.GetComponent()).isBossWave = true; ((InfiniteTowerWaveController)val41.GetComponent()).rewardPickupPrefab = Addressables.LoadAssetAsync((object)"RoR2/DLC2/FragmentPotentialPickup.prefab").WaitForCompletion(); val41.GetComponent().overlayEntries[1].prefab = val42; ((Component)val42.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_HALCYONITE"; ((Component)val42.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_HALCYONITE"; ((Graphic)((Component)val42.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 0.3f, 1f); ((Graphic)((Component)val42.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.9f, 0.55f, 1f); ((Graphic)((Component)val42.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.8f, 0.4f, 1f); WeightedWave val44 = new WeightedWave { wavePrefab = val41, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC2_StartWave15Prerequisite }; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val44); } private static void LeaveNoEquipmentDroneIT(orig_OnImpactServer orig, DeathState self, Vector3 contactPoint) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)Run.instance) && Object.op_Implicit((Object)(object)((Component)Run.instance).GetComponent())) { if (((Object)((EntityState)self).characterBody).name.StartsWith("Equipment")) { orig.Invoke(self, contactPoint); } } else { orig.Invoke(self, contactPoint); } } } public class Waves_SuperBoss { public static GameObject WaveBoss_ScavLunar; public static GameObject WaveBoss_VultureHunter; internal static void MakeWaves() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0071: 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_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_02e1: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Unknown result type (might be due to invalid IL or missing references) //IL_03c3: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Unknown result type (might be due to invalid IL or missing references) //IL_03ee: Unknown result type (might be due to invalid IL or missing references) //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_040f: Unknown result type (might be due to invalid IL or missing references) //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_042a: Unknown result type (might be due to invalid IL or missing references) //IL_042f: 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_0457: Unknown result type (might be due to invalid IL or missing references) //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_0496: Unknown result type (might be due to invalid IL or missing references) //IL_0498: Unknown result type (might be due to invalid IL or missing references) //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Unknown result type (might be due to invalid IL or missing references) //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_0610: Unknown result type (might be due to invalid IL or missing references) //IL_064d: Unknown result type (might be due to invalid IL or missing references) //IL_065a: Unknown result type (might be due to invalid IL or missing references) //IL_0683: Unknown result type (might be due to invalid IL or missing references) //IL_0685: Unknown result type (might be due to invalid IL or missing references) //IL_069e: Unknown result type (might be due to invalid IL or missing references) //IL_06a3: Unknown result type (might be due to invalid IL or missing references) //IL_06c6: Unknown result type (might be due to invalid IL or missing references) //IL_06cb: Unknown result type (might be due to invalid IL or missing references) //IL_06ef: Unknown result type (might be due to invalid IL or missing references) //IL_06f4: Unknown result type (might be due to invalid IL or missing references) //IL_070e: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_0726: Unknown result type (might be due to invalid IL or missing references) //IL_074b: Unknown result type (might be due to invalid IL or missing references) //IL_077f: Unknown result type (might be due to invalid IL or missing references) //IL_0784: Unknown result type (might be due to invalid IL or missing references) //IL_07c5: Unknown result type (might be due to invalid IL or missing references) //IL_07ca: Unknown result type (might be due to invalid IL or missing references) //IL_08ce: Unknown result type (might be due to invalid IL or missing references) //IL_090b: Unknown result type (might be due to invalid IL or missing references) //IL_0918: Unknown result type (might be due to invalid IL or missing references) //IL_093b: Unknown result type (might be due to invalid IL or missing references) //IL_093d: Unknown result type (might be due to invalid IL or missing references) //IL_0941: Unknown result type (might be due to invalid IL or missing references) //IL_0964: Unknown result type (might be due to invalid IL or missing references) //IL_0966: Unknown result type (might be due to invalid IL or missing references) //IL_0999: Unknown result type (might be due to invalid IL or missing references) //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_09c7: Unknown result type (might be due to invalid IL or missing references) //IL_09dd: Unknown result type (might be due to invalid IL or missing references) //IL_09df: Unknown result type (might be due to invalid IL or missing references) //IL_0a2a: Unknown result type (might be due to invalid IL or missing references) //IL_0a57: Unknown result type (might be due to invalid IL or missing references) //IL_0a5c: Unknown result type (might be due to invalid IL or missing references) //IL_0b5d: Unknown result type (might be due to invalid IL or missing references) //IL_0b9a: Unknown result type (might be due to invalid IL or missing references) //IL_0bd1: Unknown result type (might be due to invalid IL or missing references) //IL_0bde: Unknown result type (might be due to invalid IL or missing references) //IL_0c07: Unknown result type (might be due to invalid IL or missing references) //IL_0c09: Unknown result type (might be due to invalid IL or missing references) //IL_0c3c: Unknown result type (might be due to invalid IL or missing references) //IL_0c41: Unknown result type (might be due to invalid IL or missing references) //IL_0c61: Unknown result type (might be due to invalid IL or missing references) //IL_0c7b: Unknown result type (might be due to invalid IL or missing references) //IL_0d9e: Unknown result type (might be due to invalid IL or missing references) //IL_0ddb: Unknown result type (might be due to invalid IL or missing references) //IL_0e12: Unknown result type (might be due to invalid IL or missing references) //IL_0e1c: 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_0e50: Unknown result type (might be due to invalid IL or missing references) //IL_0e52: Unknown result type (might be due to invalid IL or missing references) //IL_0e8b: Unknown result type (might be due to invalid IL or missing references) //IL_0e90: Unknown result type (might be due to invalid IL or missing references) //IL_0eb0: Unknown result type (might be due to invalid IL or missing references) //IL_0ee9: Unknown result type (might be due to invalid IL or missing references) //IL_0eee: Unknown result type (might be due to invalid IL or missing references) //IL_0eff: Unknown result type (might be due to invalid IL or missing references) //IL_1019: Unknown result type (might be due to invalid IL or missing references) //IL_1023: Unknown result type (might be due to invalid IL or missing references) //IL_1060: Unknown result type (might be due to invalid IL or missing references) //IL_106a: Unknown result type (might be due to invalid IL or missing references) //IL_10a1: Unknown result type (might be due to invalid IL or missing references) //IL_10ae: Unknown result type (might be due to invalid IL or missing references) //IL_10d8: Unknown result type (might be due to invalid IL or missing references) //IL_10da: Unknown result type (might be due to invalid IL or missing references) //IL_110d: Unknown result type (might be due to invalid IL or missing references) //IL_1112: Unknown result type (might be due to invalid IL or missing references) //IL_1132: Unknown result type (might be due to invalid IL or missing references) //IL_113a: Unknown result type (might be due to invalid IL or missing references) //IL_115d: Unknown result type (might be due to invalid IL or missing references) //IL_1162: Unknown result type (might be due to invalid IL or missing references) //IL_1173: Unknown result type (might be due to invalid IL or missing references) //IL_1199: Unknown result type (might be due to invalid IL or missing references) //IL_12b0: Unknown result type (might be due to invalid IL or missing references) //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_1324: Unknown result type (might be due to invalid IL or missing references) //IL_132e: Unknown result type (might be due to invalid IL or missing references) //IL_1350: Unknown result type (might be due to invalid IL or missing references) //IL_1352: Unknown result type (might be due to invalid IL or missing references) //IL_1359: Unknown result type (might be due to invalid IL or missing references) //IL_135b: Unknown result type (might be due to invalid IL or missing references) //IL_1362: Unknown result type (might be due to invalid IL or missing references) //IL_1364: Unknown result type (might be due to invalid IL or missing references) //IL_136b: Unknown result type (might be due to invalid IL or missing references) //IL_136d: Unknown result type (might be due to invalid IL or missing references) //IL_1374: Unknown result type (might be due to invalid IL or missing references) //IL_1376: Unknown result type (might be due to invalid IL or missing references) //IL_137d: Unknown result type (might be due to invalid IL or missing references) //IL_137f: Unknown result type (might be due to invalid IL or missing references) //IL_1386: Unknown result type (might be due to invalid IL or missing references) //IL_1388: Unknown result type (might be due to invalid IL or missing references) //IL_13ae: Unknown result type (might be due to invalid IL or missing references) //IL_13b0: Unknown result type (might be due to invalid IL or missing references) //IL_13b7: Unknown result type (might be due to invalid IL or missing references) //IL_13b9: Unknown result type (might be due to invalid IL or missing references) //IL_13c0: Unknown result type (might be due to invalid IL or missing references) //IL_13c2: Unknown result type (might be due to invalid IL or missing references) InfiniteTowerExplicitSpawnWaveController val = null; ItemDef itemDef = Addressables.LoadAssetAsync((object)"RoR2/Base/AdaptiveArmor/AdaptiveArmor.asset").WaitForCompletion(); float num = 2.5f; WaveBoss_ScavLunar = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_ScavLunar", true); GameObject val2 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "InfiniteTowerCurrentBossScavLunarWaveUI", false); val = WaveBoss_ScavLunar.GetComponent(); ((InfiniteTowerWaveController)val).baseCredits = 50f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 4f; ((InfiniteTowerWaveController)val).secondsBeforeSuddenDeath = 120f; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; InfiniteTowerExplicitSpawnWaveController obj = val; ((InfiniteTowerWaveController)obj).secondsAfterWave = ((InfiniteTowerWaveController)obj).secondsAfterWave + 7; WaveBoss_ScavLunar.AddComponent().rewardDisplayTier = (ItemTier)3; WaveBoss_ScavLunar.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITLunar; WaveBoss_ScavLunar.GetComponent().newRadius = 110f; WaveBoss_ScavLunar.AddComponent().eliteCase = SimulacrumEliteWaves.EliteCase.Lunar; SimuExplicitStats simuExplicitStats = WaveBoss_ScavLunar.AddComponent(); simuExplicitStats.damageBonusMulti = 0.5f; simuExplicitStats.hpBonusMulti = 0.5f; simuExplicitStats.halfOnNonFinal = false; ((InfiniteTowerWaveController)val).overlayEntries[1].prefab = val2; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_SCAVLUNAR"; ((Component)val2.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_SCAVLUNAR"; ((Component)val2.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveScavLunar.png"); ((Graphic)((Component)val2.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.6f, 0.8f, 1f, 1f); WeightedWave val3 = new WeightedWave { wavePrefab = WaveBoss_ScavLunar, weight = num * 3f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave35Prerequisite }; WeightedWave val4 = new WeightedWave { wavePrefab = WaveBoss_ScavLunar, weight = num, prerequisites = null }; GameObject val5 = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_VoidRaidCrab", true); GameObject val6 = PrefabAPI.InstantiateClone(Constant.VoidWaveUI, "InfiniteTowerCurrentBossVoidRaidWaveUI", false); val = val5.GetComponent(); CharacterSpawnCard val7 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/DLC1/VoidRaidCrab/cscMiniVoidRaidCrabPhase3.asset").WaitForCompletion()); ((Object)val7).name = "cscMiniVoidRaidCrabPhase3IT"; ((SpawnCard)val7).hullSize = (HullClassification)0; val.spawnList[0].spawnCard = val7; ((InfiniteTowerWaveController)val).secondsBeforeSuddenDeath = 120f; ((InfiniteTowerWaveController)val).baseCredits = 0f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 0f; ((InfiniteTowerWaveController)val).immediateCreditsFraction = 0.75f; val5.GetComponent().monsterCards = (DirectorCardCategorySelection)(object)SuperMegaCrab.dccsVoidFamilyNoBarnacle; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; InfiniteTowerExplicitSpawnWaveController obj2 = val; ((InfiniteTowerWaveController)obj2).secondsAfterWave = ((InfiniteTowerWaveController)obj2).secondsAfterWave + 2; val5.AddComponent().rewardDisplayTier = (ItemTier)7; val5.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITVoid; val5.GetComponent().newRadius = 159f; simuExplicitStats = val5.AddComponent(); simuExplicitStats.damageBonusMulti = 0.5f; simuExplicitStats.hpBonusMulti = 2f; simuExplicitStats.halfOnNonFinal = true; val5.GetComponent().overlayEntries[1].prefab = val6; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_VOIDLING"; ((Component)val6.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_VOIDLING"; WeightedWave val8 = new WeightedWave { wavePrefab = val5, weight = num + 0.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave50Prerequisite }; WeightedWave val9 = new WeightedWave { wavePrefab = val5, weight = num + 0.5f }; GameObject val10 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_TitanGold", true); GameObject val11 = PrefabAPI.InstantiateClone(Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossBrotherUI.prefab").WaitForCompletion(), "InfiniteTowerCurrentBossTitanGoldWaveUI", false); val = val10.GetComponent(); CharacterSpawnCard val12 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/Titan/cscTitanGold.asset").WaitForCompletion()); ((Object)val12).name = "cscTitanGoldIT"; val12.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[1] { new ItemCountPair { itemDef = itemDef, count = 1 } }; val.spawnList[0].spawnCard = val12; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; val10.AddComponent().newRadius = 110f; val10.GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"RoR2/Base/goldshores/dccsGoldshoresMonsters.asset").WaitForCompletion(); ((InfiniteTowerWaveController)val).immediateCreditsFraction = 0.15f; ((InfiniteTowerWaveController)val).baseCredits = 100f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 2f; ((InfiniteTowerWaveController)val).secondsBeforeSuddenDeath = 120f; simuExplicitStats = val10.AddComponent(); simuExplicitStats.hpBonusMulti = 1.2f; simuExplicitStats.damageBonusMulti = 0.7f; simuExplicitStats.halfOnNonFinal = true; ((InfiniteTowerWaveController)val).overlayEntries[1].prefab = val11; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_TITANGOLD"; ((Component)val11.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_TITANGOLD"; ((Component)val11.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveGoldTitan.png"); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.95f, 0.55f, 1f); ((Graphic)((Component)val11.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 0.4f, 1f); WeightedWave val13 = new WeightedWave { wavePrefab = val10, weight = num + 0.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave25Prerequisite }; GameObject val14 = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_FalseSon", true); GameObject val15 = PrefabAPI.InstantiateClone(Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentBossBrotherUI.prefab").WaitForCompletion(), "InfiniteTowerCurrentBossFalseSonWaveUI", false); val = val14.GetComponent(); CharacterSpawnCard val16 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/Titan/cscTitanGold.asset").WaitForCompletion()); ((Object)val16).name = "cscFalseSonIT"; ((SpawnCard)val16).prefab = Addressables.LoadAssetAsync((object)"RoR2/DLC2/FalseSonBoss/FalseSonBossMaster.prefab").WaitForCompletion(); val16.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[1] { new ItemCountPair { itemDef = itemDef, count = 0 } }; val14.GetComponent().spawnList[0].spawnCard = val16; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITBossBonusRed; ((InfiniteTowerWaveController)val).rewardOptionCount = 5; val14.AddComponent().newRadius = 110f; val14.GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"RoR2/DLC2/dccsShrineHalcyoniteActivationMonsterWave.asset").WaitForCompletion(); ((InfiniteTowerWaveController)val).immediateCreditsFraction = 0.5f; ((InfiniteTowerWaveController)val).baseCredits = 40f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 1.2f; ((InfiniteTowerWaveController)val).secondsBeforeSuddenDeath = 120f; ((InfiniteTowerWaveController)val).rewardPickupPrefab = Addressables.LoadAssetAsync((object)"RoR2/DLC2/FragmentPotentialPickup.prefab").WaitForCompletion(); simuExplicitStats = val14.AddComponent(); simuExplicitStats.halfOnNonFinal = true; ((Component)simuExplicitStats).GetComponent().hpBonusMulti = 3f; ((Component)simuExplicitStats).GetComponent().damageBonusMulti = 0.8f; ((InfiniteTowerWaveController)val).overlayEntries[1].prefab = val15; ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_FALSESON"; ((Component)val15.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_FALSESON"; ((Component)val15.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveFalseSon.png"); ((Graphic)((Component)val15.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.95f, 0.55f, 1f); ((Graphic)((Component)val15.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 1f, 0.4f, 1f); WeightedWave val17 = new WeightedWave { wavePrefab = val14, weight = num, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC2_StartWave30Prerequisite }; WeightedWave val18 = new WeightedWave { wavePrefab = val14, weight = num, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC2_Prerequisite }; GameObject val19 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_SuperRoboBallBoss", true); GameObject val20 = PrefabAPI.InstantiateClone(Constant.BossWaveUI, "InfiniteTowerCurrentBossSuperRoboBallBossWaveUI", false); val = val19.GetComponent(); CharacterSpawnCard val21 = Object.Instantiate(Addressables.LoadAssetAsync((object)"RoR2/Base/RoboBallBoss/cscSuperRoboBallBoss.asset").WaitForCompletion()); ((Object)val21).name = "cscSuperRoboBallBossIT"; val21.itemsToGrant = (ItemCountPair[])(object)new ItemCountPair[1] { new ItemCountPair { itemDef = itemDef, count = 1 } }; val.spawnList[0].spawnCard = val21; ((InfiniteTowerWaveController)val).immediateCreditsFraction = 0.15f; ((InfiniteTowerWaveController)val).baseCredits = 100f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 2f; ((InfiniteTowerWaveController)val).secondsBeforeSuddenDeath = 120f; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; val19.AddComponent().newRadius = 110f; val19.GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"RoR2/Base/shipgraveyard/dccsShipgraveyardMonstersDLC1.asset").WaitForCompletion(); simuExplicitStats = val19.AddComponent(); simuExplicitStats.hpBonusMulti = 0.9f; simuExplicitStats.damageBonusMulti = 0.7f; simuExplicitStats.halfOnNonFinal = true; ((InfiniteTowerWaveController)val).overlayEntries[1].prefab = val20; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_SUPERBALL"; ((Component)val20.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_SUPERBALL"; ((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveLunarWhite.png"); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0f, 1f, 0.76f, 1f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0f, 0.9f, 0.6f, 1f); ((Graphic)((Component)val20.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0f, 0.6f, 0.6f, 1f); WeightedWave val22 = new WeightedWave { wavePrefab = val19, weight = num + 0.5f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave25Prerequisite }; GameObject val23 = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_SolusAmalgam", true); GameObject val24 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "WaveBoss_SolusAmalgamUI", false); val = val23.GetComponent(); CharacterSpawnCard val25 = Object.Instantiate(Addressables.LoadAssetAsync((object)"14bf22df446f37549aa65eb724c1ddda").WaitForCompletion()); ((Object)val25).name = "cscSolusAmalgamatorIT"; ((SpawnCard)val25).hullSize = (HullClassification)0; val.spawnList[0].spawnCard = val25; ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)4; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; val23.AddComponent().newRadius = 90f; simuExplicitStats = val23.AddComponent(); simuExplicitStats.damageBonusMulti = -1f; simuExplicitStats.hpBonusMulti = -1f; simuExplicitStats.OneExtraSpawnStartingWave = 24; simuExplicitStats.ExtraSpawnPerWaves = 15; val23.GetComponent().overlayEntries[1].prefab = val24; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_DLC3_SOLUSAMALGAM"; ((Component)val24.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_DLC3_SOLUSAMALGAM"; ((Component)val24.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveAC.png"); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(1f, 0.97f, 0.45f, 1f); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(1f, 0.97f, 0.45f, 1f); ((Graphic)((Component)val24.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(1f, 0.97f, 0.45f, 2f) * 0.8f; WeightedWave val26 = new WeightedWave { wavePrefab = val23, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC3_StartWave10Prerequisite }; WaveBoss_VultureHunter = PrefabAPI.InstantiateClone(Constant.BaseExplicit_Boss, "WaveBoss_VultureHunter", true); GameObject val27 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "WaveBoss_VultureHunterUI", false); val = WaveBoss_VultureHunter.GetComponent(); CharacterSpawnCard val28 = Object.Instantiate(Addressables.LoadAssetAsync((object)"c4db4ac813bcc2e41a4dd19401c36eb3").WaitForCompletion()); ((Object)val28).name = "cscVultureHunterIT"; ((SpawnCard)val28).hullSize = (HullClassification)0; val.spawnList[0].spawnCard = val28; ((InfiniteTowerWaveController)val).baseCredits = 100f; ((InfiniteTowerWaveController)val).linearCreditsPerWave = 2f; ((Component)val).GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"17ceb46d5861cef4cb1a106de50812b4").WaitForCompletion(); ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)4; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialBossYellow; WaveBoss_VultureHunter.AddComponent().newRadius = 90f; simuExplicitStats = WaveBoss_VultureHunter.AddComponent(); simuExplicitStats.damageBonusMulti = 1f; simuExplicitStats.hpBonusMulti = 1.6f; WaveBoss_VultureHunter.GetComponent().overlayEntries[1].prefab = val27; ((Component)val27.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_DLC3_VULTUREHUNTER"; ((Component)val27.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_DLC3_VULTUREHUNTER"; ((Component)val27.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveAC.png"); ((Graphic)((Component)val27.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.366f, 0.7f, 0.5f, 1f) * 1.2f; ((Graphic)((Component)val27.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.366f, 0.7f, 0.5f, 1f) * 1.2f; ((Graphic)((Component)val27.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.366f, 0.7f, 0.5f, 2f); WeightedWave val29 = new WeightedWave { wavePrefab = WaveBoss_VultureHunter, weight = 4f, prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.DLC3_StartWave25Prerequisite }; GameObject val30 = PrefabAPI.InstantiateClone(Constant.ScavWave, "WaveBoss_SolusWing", true); GameObject val31 = PrefabAPI.InstantiateClone(Constant.ScavWaveUI, "WaveBoss_SolusWingUI", false); val = val30.GetComponent(); CharacterSpawnCard val32 = Object.Instantiate(Addressables.LoadAssetAsync((object)"a80a3fe518fea1a4b8b09791483f486d").WaitForCompletion()); ((Object)val32).name = "cscSolusWingIT"; ((SpawnCard)val32).hullSize = (HullClassification)2; ((SpawnCard)val32).nodeGraphType = (GraphType)1; val.spawnList[0].spawnCard = val32; ((Component)val).GetComponent().monsterCards = Addressables.LoadAssetAsync((object)"c1ed67f5f16b8ad499d4b2976054eda8").WaitForCompletion(); ((InfiniteTowerWaveController)val).rewardDisplayTier = (ItemTier)2; ((InfiniteTowerWaveController)val).rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier3; InfiniteTowerExplicitSpawnWaveController obj3 = val; ((InfiniteTowerWaveController)obj3).secondsAfterWave = ((InfiniteTowerWaveController)obj3).secondsAfterWave + 2; val30.AddComponent().rewardDisplayTier = (ItemTier)0; val30.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITTechnology; val30.GetComponent().newRadius = 110f; simuExplicitStats = val30.AddComponent(); simuExplicitStats.damageBonusMulti = 0.5f; simuExplicitStats.hpBonusMulti = 0.5f; val30.GetComponent().overlayEntries[1].prefab = val31; ((Component)val31.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent().token = "ITWAVE_NAME_BOSS_DLC3_SOLUSWING"; ((Component)val31.transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BOSS_DLC3_SOLUSWING"; ((Component)val31.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent().sprite = Assets.Bundle.LoadAsset("Assets/Simulacrum/Wave/waveAC.png"); ((Graphic)((Component)val31.transform.GetChild(0).GetChild(0).GetChild(0)).GetComponent()).color = new Color(0.1f, 0.77f, 0.9f, 1f); ((Graphic)((Component)val31.transform.GetChild(0).GetChild(1).GetChild(0)).GetComponent()).color = new Color(0.1f, 0.77f, 0.9f, 1f); ((Graphic)((Component)val31.transform.GetChild(0).GetChild(2)).GetComponent()).color = new Color(0.1f, 0.77f, 0.9f, 1f) * 0.8f; Constant.ITBossWaves.wavePrefabs = Constant.ITBossWaves.wavePrefabs.Add(val26, val29, val3, val8, val22, val13, val17); Constant.ITSuperBossWaves.wavePrefabs = Constant.ITSuperBossWaves.wavePrefabs.Add(val4, val9, val18); } } public class Waves_Vanilla { internal static void MakeChanges() { //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_0061: 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_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) //IL_02c9: Unknown result type (might be due to invalid IL or missing references) //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_0346: 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_034d: Unknown result type (might be due to invalid IL or missing references) //IL_0388: 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_0215: 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_03b4: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: 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_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_0409: Unknown result type (might be due to invalid IL or missing references) //IL_040e: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_0431: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_0491: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Unknown result type (might be due to invalid IL or missing references) //IL_04cc: Unknown result type (might be due to invalid IL or missing references) GameObject val = Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerWaveArtifactEnigma.prefab").WaitForCompletion(); WavesMain.orangeWaves.Add(val); val.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITSpecialEquipment; val.GetComponent().rewardOptionCount = 2; val.AddComponent().code = SimuWaveUnsortedExtras.Case.Enigma; float weight = 2.5f; for (int i = 0; i < Constant.ITBasicWaves.wavePrefabs.Length; i++) { WeightedWave val2 = Constant.ITBasicWaves.wavePrefabs[i]; switch (((Object)val2.wavePrefab).name) { case "InfiniteTowerWaveArtifactCommand": val2.weight = 1.5f; break; case "InfiniteTowerWaveArtifactMixEnemy": val2.weight = 3.5f; val2.wavePrefab.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITRainbow; val2.wavePrefab.GetComponent().baseCredits = 184f; break; case "InfiniteTowerWaveArtifactBomb": case "InfiniteTowerWaveArtifactWispOnDeath": val2.weight = 2.5f; val2.wavePrefab.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITBasicWaveOnKill; break; case "InfiniteTowerWaveArtifactStatsOnLowHealth": case "InfiniteTowerWaveArtifactSingleMonsterType": val2.weight = 2.5f; break; case "InfiniteTowerWaveArtifactRandomLoadout": val2.weight = 2f; val2.wavePrefab.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITRainbow; break; case "InfiniteTowerWaveArtifactSingleEliteType": val2.weight = 4f; break; } } ((Component)Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentArtifactEnigmaWaveUI.prefab").WaitForCompletion().transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_ENIGMA"; ((Component)Addressables.LoadAssetAsync((object)"RoR2/DLC1/GameModes/InfiniteTowerRun/ITAssets/InfiniteTowerCurrentArtifactSingleMonsterTypeWaveUI.prefab").WaitForCompletion().transform.GetChild(0).GetChild(1).GetChild(1)).GetComponent().token = "ITWAVE_DESC_BASIC_KIN"; Constant.ITBasicWaves.wavePrefabs[0].weight = Constant.BasicWaveWeight; Constant.ITBossWaves.wavePrefabs[0].weight = Constant.BasicBossWaveWight; for (int j = 0; j < Constant.ITBossWaves.wavePrefabs.Length; j++) { WeightedWave val3 = Constant.ITBossWaves.wavePrefabs[j]; if (((Object)val3.wavePrefab).name.Equals("InfiniteTowerWaveBossVoid")) { val3.weight = 6f; val3.prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave11Prerequisite; } else if (((Object)val3.wavePrefab).name.Equals("InfiniteTowerWaveBossLunar")) { val3.weight = 5f; CombatDirector component = val3.wavePrefab.GetComponent(); component.monsterCards = (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync((object)"RoR2/Base/Common/DirectorCardCategorySelections/dccsLunarFamily.asset").WaitForCompletion(); component.skipSpawnIfTooCheap = false; val3.wavePrefab.GetComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITWaveTier2; val3.wavePrefab.GetComponent().rewardDisplayTier = (ItemTier)1; val3.wavePrefab.AddComponent().rewardDropTable = (PickupDropTable)(object)Constant.dtITLunar; val3.wavePrefab.GetComponent().rewardDisplayTier = (ItemTier)3; } else if (((Object)val3.wavePrefab).name.Equals("InfiniteTowerWaveBossScav")) { val3.weight = 6f; val3.prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave25Prerequisite; } else if (((Object)val3.wavePrefab).name.Equals("InfiniteTowerWaveBossBrother")) { val3.wavePrefab.AddComponent().phase = 3; val3.weight = weight; val3.prerequisites = (InfiniteTowerWavePrerequisites)(object)Constant.StartWave35Prerequisite; ref WeightedWave[] wavePrefabs = ref Constant.ITSuperBossWaves.wavePrefabs; WeightedWave val4 = new WeightedWave { wavePrefab = val3.wavePrefab, weight = weight }; ArrayUtils.ArrayAppend(ref wavePrefabs, ref val4); } } } } }