Decompiled source of EnemiesReturns v0.7.23
plugins/Risky_Sleeps-EnemiesReturns/EnemiesReturns.dll
Decompiled a week ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using AdvancedPrediction.Prediction; using AncientScepter; using Assets.RoR2.Scripts.Platform; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using EliteReworks2.Elites.Malachite; using EnemiesReturns.Achievements; using EnemiesReturns.Behaviors; using EnemiesReturns.Behaviors.JitterBonesStuff; using EnemiesReturns.Behaviors.Judgement.MithrixWeaponDrop; using EnemiesReturns.Behaviors.Judgement.Newt; using EnemiesReturns.Behaviors.Judgement.WaveInteractable; using EnemiesReturns.Components; using EnemiesReturns.Components.BodyComponents; using EnemiesReturns.Components.BodyComponents.CharacterMotor; using EnemiesReturns.Components.BodyComponents.NetworkedEntityStateMachine; using EnemiesReturns.Components.BodyComponents.Skills; using EnemiesReturns.Components.GeneralComponents; using EnemiesReturns.Components.MasterComponents; using EnemiesReturns.Components.ModelComponents; using EnemiesReturns.Components.ModelComponents.Hitboxes; using EnemiesReturns.Components.ModelComponents.Hurtboxes; using EnemiesReturns.Components.ModelComponents.Skins; using EnemiesReturns.Configuration; using EnemiesReturns.Configuration.Judgement; using EnemiesReturns.Configuration.LynxTribe; using EnemiesReturns.EditorHelpers; using EnemiesReturns.Enemies.ArcherBug; using EnemiesReturns.Enemies.Colossus; using EnemiesReturns.Enemies.Ifrit; using EnemiesReturns.Enemies.Ifrit.Pillar; using EnemiesReturns.Enemies.Judgement; using EnemiesReturns.Enemies.Judgement.Arraign; using EnemiesReturns.Enemies.LynxTribe; using EnemiesReturns.Enemies.LynxTribe.Archer; using EnemiesReturns.Enemies.LynxTribe.Hunter; using EnemiesReturns.Enemies.LynxTribe.Scout; using EnemiesReturns.Enemies.LynxTribe.Shaman; using EnemiesReturns.Enemies.LynxTribe.Storm; using EnemiesReturns.Enemies.LynxTribe.Totem; using EnemiesReturns.Enemies.MechanicalSpider; using EnemiesReturns.Enemies.MechanicalSpider.Drone; using EnemiesReturns.Enemies.MechanicalSpider.Enemy; using EnemiesReturns.Enemies.MechanicalSpider.Turret; using EnemiesReturns.Enemies.SandCrab; using EnemiesReturns.Enemies.Spitter; using EnemiesReturns.Enemies.Swift; using EnemiesReturns.Equipment.MithrixHammer; using EnemiesReturns.Equipment.VoidlingWeapon; using EnemiesReturns.Items.ColossalKnurl; using EnemiesReturns.Items.LunarFlower; using EnemiesReturns.Items.LynxFetish; using EnemiesReturns.Items.PartyHat; using EnemiesReturns.Items.SpawnPillarOnChampionKill; using EnemiesReturns.Junk.ModdedEntityStates.Colossus.HeadLaser; using EnemiesReturns.Junk.ModdedEntityStates.Ifrit; using EnemiesReturns.Junk.ModdedEntityStates.LynxTribe.Hunter; using EnemiesReturns.Junk.ModdedEntityStates.LynxTribe.Shaman; using EnemiesReturns.Junk.ModdedEntityStates.LynxTribe.Shaman.Teleport; using EnemiesReturns.Junk.ModdedEntityStates.LynxTribe.Totem; using EnemiesReturns.Junk.ModdedEntityStates.Spitter; using EnemiesReturns.ModCompats; using EnemiesReturns.ModdedEntityStates.ArcherBugs; using EnemiesReturns.ModdedEntityStates.Colossus; using EnemiesReturns.ModdedEntityStates.Colossus.Death; using EnemiesReturns.ModdedEntityStates.Colossus.HeadLaserBarrage; using EnemiesReturns.ModdedEntityStates.Colossus.RockClap; using EnemiesReturns.ModdedEntityStates.Colossus.Stomp; using EnemiesReturns.ModdedEntityStates.Engi; using EnemiesReturns.ModdedEntityStates.Ifrit; using EnemiesReturns.ModdedEntityStates.Ifrit.FlameCharge; using EnemiesReturns.ModdedEntityStates.Ifrit.Hellzone; using EnemiesReturns.ModdedEntityStates.Ifrit.Pillar; using EnemiesReturns.ModdedEntityStates.Ifrit.Pillar.Enemy; using EnemiesReturns.ModdedEntityStates.Ifrit.Pillar.Player; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.BaseSkyLeap; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Beam; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase1; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase1.SkyLeap; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase1.ThreeHitCombo; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase2; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase2.LeapingDash; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Phase2.ThreeHitCombo; using EnemiesReturns.ModdedEntityStates.Judgement.Arraign.Slide; using EnemiesReturns.ModdedEntityStates.Judgement.Mission; using EnemiesReturns.ModdedEntityStates.Judgement.MithrixHammer; using EnemiesReturns.ModdedEntityStates.Judgement.SkyLaser; using EnemiesReturns.ModdedEntityStates.Judgement.VoidlingWeapon; using EnemiesReturns.ModdedEntityStates.LynxTribe; using EnemiesReturns.ModdedEntityStates.LynxTribe.Archer; using EnemiesReturns.ModdedEntityStates.LynxTribe.Hunter; using EnemiesReturns.ModdedEntityStates.LynxTribe.Hunter.Lunge; using EnemiesReturns.ModdedEntityStates.LynxTribe.Scout; using EnemiesReturns.ModdedEntityStates.LynxTribe.Shaman; using EnemiesReturns.ModdedEntityStates.LynxTribe.Storm; using EnemiesReturns.ModdedEntityStates.LynxTribe.Totem; using EnemiesReturns.ModdedEntityStates.LynxTribe.Totem.Burrow; using EnemiesReturns.ModdedEntityStates.MechanicalSpider; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.Dash; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.Death; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.DoubleShot; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.DoubleShot.Drone; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.DoubleShot.Enemy; using EnemiesReturns.ModdedEntityStates.MechanicalSpider.DoubleShot.Turret; using EnemiesReturns.ModdedEntityStates.SandCrab; using EnemiesReturns.ModdedEntityStates.SandCrab.Bubbles; using EnemiesReturns.ModdedEntityStates.SandCrab.Snip; using EnemiesReturns.ModdedEntityStates.Spitter; using EnemiesReturns.ModdedEntityStates.Swift; using EnemiesReturns.ModdedEntityStates.Swift.Dive; using EnemiesReturns.PrefabSetupComponents.BodyComponents; using EnemiesReturns.PrefabSetupComponents.MasterComponents; using EnemiesReturns.PrefabSetupComponents.ModelComponents; using EnemiesReturns.Projectiles; using EnemiesReturns.Reflection; using EnemiesReturns.Skills.Engi.MechanicalSpiderTurret; using EnemiesReturns.zJunk.ModdedEntityStates.Judgement.Arraign; using EntityStates; using EntityStates.AI.Walker; using EntityStates.BrotherMonster; using EntityStates.Commando.CommandoWeapon; using EntityStates.Engi.EngiWeapon; using EntityStates.FlyingVermin.Mode; using EntityStates.GameOver; using EntityStates.MeridianEvent; using EntityStates.Missions.BrotherEncounter; using EntityStates.Vulture; using Grumpy; using HG; using HG.Reflection; using IL.RoR2; using IL.RoR2.UI; using JetBrains.Annotations; using KinematicCharacterController; using Microsoft.CodeAnalysis; using Mono.Cecil.Cil; using MonoMod.Cil; using MoreStats; using On.EntityStates; using On.EntityStates.BrotherMonster; using On.EntityStates.MeridianEvent; using On.EntityStates.Missions.BrotherEncounter; using On.RoR2; using On.RoR2.SurvivorMannequins; using On.RoR2.UI; using R2API; using R2API.Networking; using Rewired.Utils; using Rewired.Utils.Classes.Utility; using Risky_Artifacts.Artifacts; using RoR2; using RoR2.Achievements; using RoR2.AddressableAssets; using RoR2.Audio; using RoR2.CharacterAI; using RoR2.CharacterSpeech; using RoR2.ContentManagement; using RoR2.EntityLogic; using RoR2.ExpansionManagement; using RoR2.Hologram; using RoR2.Mecanim; using RoR2.Navigation; using RoR2.Networking; using RoR2.Orbs; using RoR2.Projectile; using RoR2.Skills; using RoR2.SurvivorMannequins; using RoR2.UI; using RoR2BepInExPack.GameAssetPaths.Version_1_39_0; using RoR2BepInExPack.GameAssetPathsBetter; using RoR2BepInExPack.Utilities; using TMPro; using ThreeEyedGames; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Bindings; using UnityEngine.Events; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.Rendering.PostProcessing; using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.Serialization; using UnityEngine.UI; [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: OptIn] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EnemiesReturns")] [assembly: AssemblyTitle("EnemiesReturns")] [assembly: AssemblyCompany("EnemiesReturns")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] [Microsoft.CodeAnalysis.Embedded] [CompilerGenerated] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] [Microsoft.CodeAnalysis.Embedded] [CompilerGenerated] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace EnemiesReturns { public static class ConsoleCommands { [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnTitans(ConCommandArgs args) { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_0042: 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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: 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_00ca: Unknown result type (might be due to invalid IL or missing references) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/Titan/cscTitanBlackBeach.asset").WaitForCompletion(), cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/Titan/cscTitanDampCave.asset").WaitForCompletion(), cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/Titan/cscTitanGolemPlains.asset").WaitForCompletion(), cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/Titan/cscTitanGooLake.asset").WaitForCompletion(), cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)"RoR2/Base/Titan/cscTitanGold.asset").WaitForCompletion(), cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnSpitters(ConCommandArgs args) { //IL_0021: 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_006f: Unknown result type (might be due to invalid IL or missing references) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(SpitterBody.SpawnCards.cscSpitterDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SpitterBody.SpawnCards.cscSpitterLakes, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SpitterBody.SpawnCards.cscSpitterDepths, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SpitterBody.SpawnCards.cscSpitterSulfur, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnColossi(ConCommandArgs args) { //IL_0021: 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_006f: 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_00a3: Unknown result type (might be due to invalid IL or missing references) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(ColossusBody.SpawnCards.cscColossusDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ColossusBody.SpawnCards.cscColossusGrassy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ColossusBody.SpawnCards.cscColossusSnowy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ColossusBody.SpawnCards.cscColossusSandy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ColossusBody.SpawnCards.cscColossusSkyMeadow, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ColossusBody.SpawnCards.cscColossusCastle, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCPocketSpiders(ConCommandArgs args) { //IL_0021: 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) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(MechanicalSpiderEnemyBody.SpawnCards.cscMechanicalSpiderSnowy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(MechanicalSpiderEnemyBody.SpawnCards.cscMechanicalSpiderDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(MechanicalSpiderEnemyBody.SpawnCards.cscMechanicalSpiderGrassy, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnLynx(ConCommandArgs args) { //IL_0021: 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_006f: 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_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_00d7: 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) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(ArcherBody.SpawnCards.cscLynxArcherDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ArcherBodyAlly.SpawnCards.cscLynxArcherAlly, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ScoutBody.SpawnCards.cscLynxScoutDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ScoutBodyAlly.SpawnCards.cscLynxScoutAlly, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(HunterBody.SpawnCards.cscLynxHunterDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(HunterBodyAlly.SpawnCards.cscLynxHunterAlly, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ShamanBody.SpawnCards.cscLynxShamanDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ShamanBodyAlly.SpawnCards.cscLynxShamanAlly, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(TotemBody.SpawnCards.cscLynxTotemDefault, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnArcherBugs(ConCommandArgs args) { //IL_0021: 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) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(ArcherBugBody.SpawnCards.cscArcherBugDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(ArcherBugBody.SpawnCards.cscArcherBugJungle, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnSwifts(ConCommandArgs args) { //IL_0021: 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) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(SwiftBody.SpawnCards.cscSwiftDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SwiftBody.SpawnCards.cscSwiftRallypoint, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnCrabs(ConCommandArgs args) { //IL_0021: 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_006f: Unknown result type (might be due to invalid IL or missing references) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(SandCrabBody.SpawnCards.cscSandCrabDefault, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SandCrabBody.SpawnCards.cscSandCrabSandy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SandCrabBody.SpawnCards.cscSandCrabGrassy, cachedBody.modelLocator.modelBaseTransform.position); SpawnMonster(SandCrabBody.SpawnCards.cscSandCrabSulfur, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCSpawnTempleGuardian(ConCommandArgs args) { //IL_0021: Unknown result type (might be due to invalid IL or missing references) CharacterBody cachedBody = LocalUserManager.readOnlyLocalUsersList[0].cachedBody; SpawnMonster(ContentProvider.cscTempleGuardian, cachedBody.modelLocator.modelBaseTransform.position); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCOutOfTimeTest(ConCommandArgs args) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) NetworkUser sender = args.sender; InvokeCMD(sender, "fixed_time", Random.Range(4200, 5100).ToString()); InvokeCMD(sender, "run_set_stages_cleared", "11"); InvokeCMD(sender, "team_set_level", "1", Random.Range(27, 31).ToString()); InvokeCMD(sender, "random_items", Random.Range(78, 119).ToString(), "Tier1:100"); InvokeCMD(sender, "random_items", Random.Range(43, 58).ToString(), "Tier2:100"); InvokeCMD(sender, "random_items", Random.Range(8, 18).ToString(), "Tier3:100"); InvokeCMD(sender, "random_items", Random.Range(3, 4).ToString(), "Boss:100"); InvokeCMD(sender, "give_equip", "MithrixHammer"); InvokeCMD(sender, "set_scene", "enemiesreturns_outoftime"); } [ConCommand(/*Could not decode attribute arguments.*/)] private static void CCContactLightTest(ConCommandArgs args) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) NetworkUser sender = args.sender; InvokeCMD(sender, "fixed_time", Random.Range(1500, 1800).ToString()); InvokeCMD(sender, "run_set_stages_cleared", "5"); InvokeCMD(sender, "team_set_level", "1", Random.Range(15, 20).ToString()); InvokeCMD(sender, "random_items", Random.Range(20, 30).ToString(), "Tier1:100"); InvokeCMD(sender, "random_items", Random.Range(10, 15).ToString(), "Tier2:100"); InvokeCMD(sender, "random_items", Random.Range(1, 4).ToString(), "Tier3:100"); InvokeCMD(sender, "random_items", Random.Range(1, 3).ToString(), "Boss:100"); InvokeCMD(sender, "set_scene", "enemiesreturns_contactlight"); } public static void InvokeCMD(NetworkUser user, string commandName, params string[] arguments) { //IL_0020: Unknown result type (might be due to invalid IL or missing references) List<string> list = arguments.ToList(); CmdSender val = default(CmdSender); ((CmdSender)(ref val))..ctor(user); if (Object.op_Implicit((Object)(object)Console.instance)) { Console.instance.RunCmd(val, commandName, list); } else { Log.Message("InvokeCMD called whilst no console instance exists"); } } private static void SpawnMonster(CharacterSpawnCard card, Vector3 position) { //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_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_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: 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_0034: Expected O, but got Unknown //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Expected O, but got Unknown DirectorSpawnRequest val = new DirectorSpawnRequest((SpawnCard)(object)card, new DirectorPlacementRule { placementMode = (PlacementMode)1, position = position, minDistance = 0f, maxDistance = 30f }, RoR2Application.rng); val.teamIndexOverride = (TeamIndex)2; val.ignoreTeamMemberLimit = true; DirectorCore.instance.TrySpawnObject(val); } } public static class Content { public static class Stages { public static SceneDef OutOfTime; public static SceneDef JudgementOutro; public static SceneDef ContactLight; } public static class MusicTracks { public static MusicTrackDef Unknown; public static MusicTrackDef UnknownBoss; public static MusicTrackDef TheOrigin; } public static class GameEndings { public static GameEndingDef SurviveJudgement; } public static class ItemTiers { public static ItemTierDef HiddenInLogbook; } public static class Items { public static ItemDef ColossalCurl; public static ItemDef SpawnPillarOnChampionKill; public static ItemDef LynxFetish; public static ItemDef TradableRock; public static ItemDef LunarFlower; public static ItemDef VoidFlower; public static ItemDef HiddenAnointed; public static ItemDef PartyHat; public static ItemDef MechanicalSpiderTurretScepterHelper; } public static class ItemRelationshipProviders { public static ItemRelationshipProvider ModdedContagiousItemProvider; } public static class Equipment { public static EquipmentDef MithrixHammer; public static EquipmentDef EliteAeonian; public static EquipmentDef VoidlingWeapon; } public static class Buffs { public static BuffDef LynxArcherDamage; public static BuffDef LynxHunterArmor; public static BuffDef LynxScoutSpeed; public static BuffDef LynxShamanSpecialDamage; public static BuffDef ReduceHealing; public static BuffDef LynxStormImmunity; public static BuffDef AffixAeoninan; public static BuffDef ImmuneToAllDamageExceptHammer; public static BuffDef ImmuneToHammer; } public static class Elites { public static EliteDef Aeonian; } public static class DamageTypes { public static ModdedDamageType EndGameBossWeapon; public static ModdedDamageType CanStunArraign; } public static class ProcChainTypes { public static ModdedProcType ColossalFist; } public static class Deployables { public static DeployableSlot PylonDeployable; public static DeployableSlot SummonLynxTribeDeployable; public static DeployableSlot LynxFetishDeployable; } } public class ContentProvider : IContentPackProvider { [StructLayout(LayoutKind.Sequential, Size = 1)] public struct MonsterCategories { public const string Champions = "Champions"; public const string Minibosses = "Minibosses"; public const string BasicMonsters = "Basic Monsters"; public const string Special = "Special"; } [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static Func<GameObject, bool> <>9__0_0; public static Func<GameObject, bool> <>9__0_1; public static Func<GameObject, bool> <>9__0_2; public static Func<GameObject, bool> <>9__1_0; public static Func<GameObject, bool> <>9__1_1; public static Func<GameObject, bool> <>9__1_2; public static Func<GameObject, bool> <>9__2_0; public static Func<GameObject, bool> <>9__2_1; public static Func<GameObject, bool> <>9__2_2; public static Func<SceneDef, bool> <>9__6_6; public static Func<ModdedSkinDefParams, bool> <>9__6_7; public static Action<ModdedSkinDefParams[]> <>9__6_3; public static Func<GameObject, bool> <>9__6_8; public static Func<GameObject, bool> <>9__6_9; public static Func<GameObject, bool> <>9__6_10; public static Func<GameObject, bool> <>9__6_11; public static Converter<GameObject, EffectDef> <>9__6_12; public static Func<Texture2D, bool> <>9__36_8; public static Func<Texture2D, bool> <>9__36_9; public static Func<Texture2D, string> <>9__36_10; public static Func<Texture2D, Texture2D> <>9__36_11; public static Func<AnimationCurveDef, string> <>9__36_12; public static Func<Type, bool> <>9__36_7; public static Func<GameObject, bool> <>9__45_0; public static Func<GameObject, bool> <>9__45_1; public static Func<GameObject, bool> <>9__45_2; public static Func<GameObject, bool> <>9__45_3; public static Func<GameObject, bool> <>9__45_4; public static Func<GameObject, bool> <>9__45_5; public static Func<GameObject, bool> <>9__45_6; public static Func<GameObject, bool> <>9__46_0; public static Func<GameObject, bool> <>9__47_0; public static Func<GameObject, bool> <>9__47_1; public static Func<Texture2D, bool> <>9__50_17; public static Func<Texture2D, string> <>9__50_18; public static Func<Texture2D, Texture2D> <>9__50_19; public static Func<AnimationCurveDef, bool> <>9__50_20; public static Func<AnimationCurveDef, bool> <>9__50_21; public static Func<AnimationCurveDef, bool> <>9__50_22; public static Func<AnimationCurveDef, bool> <>9__50_23; public static Func<AnimationCurveDef, bool> <>9__50_24; public static Func<AnimationCurveDef, bool> <>9__50_25; public static Func<AnimationCurveDef, bool> <>9__50_26; public static Func<AnimationCurveDef, bool> <>9__50_27; public static Func<AnimationCurveDef, bool> <>9__50_28; public static Func<EliteDef, bool> <>9__50_29; public static Func<SceneDef, bool> <>9__50_30; public static Func<SceneDef, bool> <>9__50_31; public static Func<SkillDef, bool> <>9__50_32; public static Func<SkillDef, bool> <>9__50_33; public static Func<SkillDef, bool> <>9__50_34; public static Func<SkillDef, bool> <>9__50_35; public static Func<SkillDef, bool> <>9__50_36; public static Func<SkillDef, bool> <>9__50_37; public static Func<SkillDef, bool> <>9__50_38; public static Func<SkillDef, bool> <>9__50_39; public static Func<SkillDef, bool> <>9__50_40; public static Func<SkillDef, bool> <>9__50_41; public static Func<SkillDef, bool> <>9__50_42; public static Func<SkillDef, bool> <>9__50_43; public static Action<SkillDef[]> <>9__50_6; public static Func<BuffDef, bool> <>9__50_44; public static Func<BuffDef, bool> <>9__50_45; public static Func<BuffDef, bool> <>9__50_46; public static Func<GameObject, bool> <>9__50_47; public static Func<GameObject, bool> <>9__50_48; public static Func<GameObject, bool> <>9__50_49; public static Func<GameObject, bool> <>9__50_50; public static Converter<GameObject, EffectDef> <>9__50_51; public static Func<GameObject, bool> <>9__50_52; public static Func<GameObject, bool> <>9__50_53; public static Func<GameObject, bool> <>9__50_54; public static Func<GameObject, bool> <>9__50_55; public static Func<GameObject, bool> <>9__50_56; public static Func<GameObject, bool> <>9__50_57; public static Func<GameObject, bool> <>9__50_58; public static Func<GameObject, bool> <>9__50_59; public static Func<GameObject, bool> <>9__50_60; public static Func<GameObject, bool> <>9__50_61; public static Func<GameObject, bool> <>9__50_62; public static Func<GameObject, bool> <>9__50_63; public static Func<GameObject, bool> <>9__50_64; public static Func<GameObject, bool> <>9__50_65; public static Func<GameObject, bool> <>9__50_66; public static Func<GameObject, bool> <>9__50_67; public static Func<GameObject, bool> <>9__50_68; public static Func<GameObject, bool> <>9__50_69; public static Func<GameObject, bool> <>9__50_70; public static Func<GameObject, bool> <>9__50_71; public static Func<GameObject, bool> <>9__50_72; public static Func<GameObject, bool> <>9__50_73; public static Func<GameObject, bool> <>9__50_74; public static Func<GameObject, bool> <>9__50_75; public static Func<GameObject, bool> <>9__50_76; public static Func<GameObject, bool> <>9__50_77; public static Func<GameObject, bool> <>9__50_78; public static Func<GameObject, bool> <>9__50_79; public static Func<GameObject, bool> <>9__50_80; public static Func<GameObject, bool> <>9__50_81; public static Func<ItemDef, bool> <>9__50_82; public static Func<ItemDef, bool> <>9__50_83; public static Func<ItemDef, bool> <>9__50_84; public static Func<ItemDef, bool> <>9__50_85; public static Func<GameEndingDef, bool> <>9__50_86; public static Func<ItemTierDef, bool> <>9__50_87; public static Func<EquipmentDef, bool> <>9__50_88; public static Func<EquipmentDef, bool> <>9__50_89; public static Func<EquipmentDef, bool> <>9__50_90; public static Func<CharacterSpawnCard, bool> <>9__50_91; public static Func<CharacterSpawnCard, bool> <>9__50_92; public static Func<CharacterSpawnCard, bool> <>9__50_93; public static Func<CharacterSpawnCard, bool> <>9__50_94; public static Action<CharacterSpawnCard[]> <>9__50_14; public static Func<ModdedSkinDefParams, bool> <>9__50_95; public static Action<ModdedSkinDefParams[]> <>9__50_15; public static Func<GameObject, bool> <>9__56_0; public static Func<GameObject, bool> <>9__57_0; public static Func<GameObject, bool> <>9__57_1; public static Func<GameObject, bool> <>9__57_2; public static Func<GameObject, bool> <>9__57_3; public static Func<GameObject, bool> <>9__59_0; public static Func<GameObject, bool> <>9__59_1; public static Func<GameObject, bool> <>9__59_2; public static Func<GameObject, bool> <>9__59_3; public static Func<GameObject, bool> <>9__59_4; public static Func<GameObject, bool> <>9__59_5; public static Func<GameObject, bool> <>9__59_6; public static Func<GameObject, bool> <>9__60_0; public static Func<GameObject, bool> <>9__60_1; public static Func<GameObject, bool> <>9__60_2; public static Func<GameObject, bool> <>9__60_3; public static Func<GameObject, bool> <>9__60_4; public static Func<GameObject, bool> <>9__60_5; public static Func<GameObject, bool> <>9__61_0; public static Func<GameObject, bool> <>9__61_1; public static Func<GameObject, bool> <>9__61_2; public static Func<GameObject, bool> <>9__61_3; public static Func<GameObject, bool> <>9__61_4; public static Func<GameObject, bool> <>9__61_5; public static Func<GameObject, bool> <>9__62_0; public static Func<GameObject, bool> <>9__62_1; public static Func<GameObject, bool> <>9__62_2; public static Func<GameObject, bool> <>9__62_3; public static Func<GameObject, bool> <>9__62_4; public static Func<GameObject, bool> <>9__62_5; public static Func<GameObject, bool> <>9__62_6; public static Func<GameObject, bool> <>9__62_7; public static Func<GameObject, bool> <>9__62_8; public static Func<GameObject, bool> <>9__62_9; public static Func<GameObject, bool> <>9__62_10; public static Func<GameObject, bool> <>9__62_11; public static Func<GameObject, bool> <>9__63_0; public static Func<GameObject, bool> <>9__64_0; public static Func<GameObject, bool> <>9__64_1; public static Func<GameObject, bool> <>9__64_2; public static Func<GameObject, bool> <>9__64_3; public static Func<GameObject, bool> <>9__64_4; public static Func<GameObject, bool> <>9__64_5; public static EffectCondition <>9__64_6; public static Func<GameObject, bool> <>9__64_7; public static Func<GameObject, bool> <>9__64_8; public static Func<GameObject, bool> <>9__64_9; public static Func<GameObject, bool> <>9__64_10; public static Func<GameObject, bool> <>9__64_11; public static Func<GameObject, bool> <>9__64_12; public static Func<GameObject, bool> <>9__65_0; public static Func<GameObject, bool> <>9__65_1; public static Func<GameObject, bool> <>9__67_0; public static Func<GameObject, bool> <>9__67_1; public static Func<GameObject, bool> <>9__67_2; public static Func<GameObject, bool> <>9__68_0; public static Func<GameObject, bool> <>9__68_1; public static Func<GameObject, bool> <>9__69_0; public static Func<GameObject, bool> <>9__69_1; public static Func<GameObject, bool> <>9__69_2; public static Func<GameObject, bool> <>9__70_0; public static Func<GameObject, bool> <>9__71_0; public static Func<GameObject, bool> <>9__71_1; public static Func<GameObject, bool> <>9__71_2; public static Func<GameObject, bool> <>9__71_3; public static Func<GameObject, bool> <>9__71_4; public static Func<GameObject, bool> <>9__72_0; public static Func<GameObject, bool> <>9__72_1; public static Func<GameObject, bool> <>9__73_0; public static Func<GameObject, bool> <>9__73_1; public static Func<GameObject, bool> <>9__73_2; internal bool <CreateArcherBug>b__0_0(GameObject asset) { return ((Object)asset).name == "ArcherBug_stadiajungle"; } internal bool <CreateArcherBug>b__0_1(GameObject body) { return ((Object)body).name == "ArcherBugBody"; } internal bool <CreateArcherBug>b__0_2(GameObject master) { return ((Object)master).name == "ArcherBugMaster"; } internal bool <CreateColossus>b__1_0(GameObject item) { return ((Object)item).name == "ColossusEyeSpawnEffect"; } internal bool <CreateColossus>b__1_1(GameObject body) { return ((Object)body).name == "ColossusBody"; } internal bool <CreateColossus>b__1_2(GameObject master) { return ((Object)master).name == "ColossusMaster"; } internal bool <CreateColossusItem>b__2_0(GameObject item) { return ((Object)item).name == "PickupColossalCurl"; } internal bool <CreateColossusItem>b__2_1(GameObject item) { return ((Object)item).name == "ColossalKnurlFistProjectileGhost"; } internal bool <CreateColossusItem>b__2_2(GameObject item) { return ((Object)item).name == "ColossalKnurlFistProjectile"; } internal bool <CreateContactLightAsync>b__6_6(SceneDef sd) { return sd.cachedName == "enemiesreturns_contactlight"; } internal void <CreateContactLightAsync>b__6_3(ModdedSkinDefParams[] assets) { //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown //IL_00b7: 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_00e0: Unknown result type (might be due to invalid IL or missing references) ModdedSkinDefParams moddedSkinDefParams = assets.Where((ModdedSkinDefParams item) => ((Object)item).name == "skinLunarGolemTempleGuardian").First(); SkinDef val = moddedSkinDefParams.CreateSkinDef(); if (Object.op_Implicit((Object)(object)val)) { GameObject val2 = AssetAsyncReferenceManager<GameObject>.LoadAsset(moddedSkinDefParams.bodyPrefab, (AsyncReferenceHandleUnloadType)2).WaitForCompletion(); ArrayUtils.ArrayAppend<SkinDef>(ref ((Component)val2.GetComponent<ModelLocator>().modelTransform).gameObject.GetComponent<ModelSkinController>().skins, ref val); ContentProvider.cscTempleGuardian = Object.Instantiate<CharacterSpawnCard>(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)RoR2_Base_LunarGolem.cscLunarGolem_asset).WaitForCompletion()); ((Object)ContentProvider.cscTempleGuardian).name = "cscTempleGuardian"; CharacterSpawnCard cscTempleGuardian = ContentProvider.cscTempleGuardian; SerializableLoadout val3 = new SerializableLoadout(); val3.bodyLoadouts = (BodyLoadout[])(object)new BodyLoadout[1] { new BodyLoadout { body = val2.GetComponent<CharacterBody>(), skinChoice = val, skillChoices = Array.Empty<SkillChoice>() } }; cscTempleGuardian.loadout = val3; } } internal bool <CreateContactLightAsync>b__6_7(ModdedSkinDefParams item) { return ((Object)item).name == "skinLunarGolemTempleGuardian"; } internal bool <CreateContactLightAsync>b__6_8(GameObject asset) { CharacterBody val = default(CharacterBody); return asset.TryGetComponent<CharacterBody>(ref val); } internal bool <CreateContactLightAsync>b__6_9(GameObject asset) { CharacterMaster val = default(CharacterMaster); return asset.TryGetComponent<CharacterMaster>(ref val); } internal bool <CreateContactLightAsync>b__6_10(GameObject asset) { ProjectileController val = default(ProjectileController); return asset.TryGetComponent<ProjectileController>(ref val); } internal bool <CreateContactLightAsync>b__6_11(GameObject asset) { EffectComponent val = default(EffectComponent); return asset.TryGetComponent<EffectComponent>(ref val); } internal EffectDef <CreateContactLightAsync>b__6_12(GameObject item) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown return new EffectDef(item); } internal bool <LoadStaticContentAsync>b__36_8(Texture2D texture) { return ((Object)texture).name == "texLavaCrackRound"; } internal bool <LoadStaticContentAsync>b__36_9(Texture2D texture) { return ((Object)texture).name.StartsWith("texRamp"); } internal string <LoadStaticContentAsync>b__36_10(Texture2D texture) { return ((Object)texture).name; } internal Texture2D <LoadStaticContentAsync>b__36_11(Texture2D texture) { return texture; } internal string <LoadStaticContentAsync>b__36_12(AnimationCurveDef item) { return ((Object)item).name; } internal bool <LoadStaticContentAsync>b__36_7(Type type) { if (!type.IsAbstract && !type.IsInterface) { return type.GetCustomAttribute<RegisterEntityState>(inherit: false) != null; } return false; } internal bool <CreateIfrit>b__45_0(GameObject effect) { return ((Object)effect).name == "IfritSpawnPortal"; } internal bool <CreateIfrit>b__45_1(GameObject projectile) { return ((Object)projectile).name == "IfritHellzonePillarProjectile"; } internal bool <CreateIfrit>b__45_2(GameObject projectile) { return ((Object)projectile).name == "IfritHellzonePillarProjectileGhost"; } internal bool <CreateIfrit>b__45_3(GameObject projectile) { return ((Object)projectile).name == "IfritHellzoneVolcanoEffect"; } internal bool <CreateIfrit>b__45_4(GameObject body) { return ((Object)body).name == "IfritBody"; } internal bool <CreateIfrit>b__45_5(GameObject mane) { return ((Object)mane).name == "IfritManeFireParticle"; } internal bool <CreateIfrit>b__45_6(GameObject master) { return ((Object)master).name == "IfritMaster"; } internal bool <CreateIfritItem>b__46_0(GameObject item) { return ((Object)item).name == "IfritItem"; } internal bool <CreateIfritPillar>b__47_0(GameObject body) { return ((Object)body).name == "IfritPylonBody"; } internal bool <CreateIfritPillar>b__47_1(GameObject master) { return ((Object)master).name == "IfritPylonMaster"; } internal bool <CreateJudgementAsync>b__50_17(Texture2D texture) { return ((Object)texture).name.StartsWith("texRamp"); } internal string <CreateJudgementAsync>b__50_18(Texture2D texture) { return ((Object)texture).name; } internal Texture2D <CreateJudgementAsync>b__50_19(Texture2D texture) { return texture; } internal bool <CreateJudgementAsync>b__50_20(AnimationCurveDef acd) { return ((Object)acd).name == "acdMoveSpeed"; } internal bool <CreateJudgementAsync>b__50_21(AnimationCurveDef acd) { return ((Object)acd).name == "acdPreSlashMaterialAlpha"; } internal bool <CreateJudgementAsync>b__50_22(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash1"; } internal bool <CreateJudgementAsync>b__50_23(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash2"; } internal bool <CreateJudgementAsync>b__50_24(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash3"; } internal bool <CreateJudgementAsync>b__50_25(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash1P2"; } internal bool <CreateJudgementAsync>b__50_26(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash2P2"; } internal bool <CreateJudgementAsync>b__50_27(AnimationCurveDef acd) { return ((Object)acd).name == "acdSlash3P2"; } internal bool <CreateJudgementAsync>b__50_28(AnimationCurveDef acd) { return ((Object)acd).name == "acdMithrixDash"; } internal bool <CreateJudgementAsync>b__50_29(EliteDef elitedef) { return ((Object)elitedef).name == "EliteAeonian"; } internal bool <CreateJudgementAsync>b__50_30(SceneDef sd) { return sd.cachedName == "enemiesreturns_outoftime"; } internal bool <CreateJudgementAsync>b__50_31(SceneDef sd) { return sd.cachedName == "enemiesreturns_judgementoutro"; } internal void <CreateJudgementAsync>b__50_6(SkillDef[] assets) { ArraignBody.P1Skills.ThreeHitCombo = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraign3HitCombo"); ArraignBody.P1Skills.ThreeHitCombo.baseRechargeInterval = ArraignP1.ThreeHitComboCooldown.Value; ArraignBody.P1Skills.LeftRightSwing = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignRightLeftSwing"); ArraignBody.P1Skills.LeftRightSwing.baseRechargeInterval = ArraignP1.LeftRightSwingCooldown.Value; ArraignBody.P1Skills.SwordBeam = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignSwordBeam"); ArraignBody.P1Skills.SwordBeam.baseRechargeInterval = ArraignP1.SwordBeamCooldown.Value; ArraignBody.P1Skills.SkyDrop = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignSkyDrop"); ArraignBody.P1Skills.SkyDrop.baseRechargeInterval = ArraignP1.SkyDropCooldown.Value; ArraignBody.P1Skills.SwordThrow = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignSwordThrow"); ArraignBody.P1Skills.SwordThrow.baseRechargeInterval = ArraignP1.SwordBeamCooldown.Value; ArraignBody.P1Skills.LightningStrikes = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignLightningStrikes"); ArraignBody.P1Skills.LightningStrikes.baseRechargeInterval = ArraignP1.LightningStrikesCooldown.Value; ArraignBody.P2Skills.ThreeHitCombo = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraign3HitComboP2"); ArraignBody.P2Skills.ThreeHitCombo.baseRechargeInterval = ArraignP2.ThreeHitComboCooldown.Value; ArraignBody.P2Skills.LeftRightSwing = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignRightLeftSwingP2"); ArraignBody.P2Skills.LeftRightSwing.baseRechargeInterval = ArraignP2.LeftRightSwingCooldown.Value; ArraignBody.P2Skills.DashLeap = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignDashAttackP2"); ArraignBody.P2Skills.DashLeap.baseRechargeInterval = ArraignP2.DashLeapCooldown.Value; ArraignBody.P2Skills.SpearThrow = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignSpearThrow"); ArraignBody.P2Skills.SpearThrow.baseRechargeInterval = ArraignP2.SpearThrowCooldown.Value; ArraignBody.HauntSkills.ClockAttack = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignaHauntClockAttack"); ArraignBody.HauntSkills.ClockAttack.baseRechargeInterval = ArraignP2.ClockAttackCooldown.Value; ArraignBody.HauntSkills.SummonSkyLaser = assets.First((SkillDef asset) => ((Object)asset).name == "sdArraignHauntSkyLaser"); ArraignBody.HauntSkills.SummonSkyLaser.baseRechargeInterval = ArraignP2.SkyLaserCooldown.Value; } internal bool <CreateJudgementAsync>b__50_32(SkillDef asset) { return ((Object)asset).name == "sdArraign3HitCombo"; } internal bool <CreateJudgementAsync>b__50_33(SkillDef asset) { return ((Object)asset).name == "sdArraignRightLeftSwing"; } internal bool <CreateJudgementAsync>b__50_34(SkillDef asset) { return ((Object)asset).name == "sdArraignSwordBeam"; } internal bool <CreateJudgementAsync>b__50_35(SkillDef asset) { return ((Object)asset).name == "sdArraignSkyDrop"; } internal bool <CreateJudgementAsync>b__50_36(SkillDef asset) { return ((Object)asset).name == "sdArraignSwordThrow"; } internal bool <CreateJudgementAsync>b__50_37(SkillDef asset) { return ((Object)asset).name == "sdArraignLightningStrikes"; } internal bool <CreateJudgementAsync>b__50_38(SkillDef asset) { return ((Object)asset).name == "sdArraign3HitComboP2"; } internal bool <CreateJudgementAsync>b__50_39(SkillDef asset) { return ((Object)asset).name == "sdArraignRightLeftSwingP2"; } internal bool <CreateJudgementAsync>b__50_40(SkillDef asset) { return ((Object)asset).name == "sdArraignDashAttackP2"; } internal bool <CreateJudgementAsync>b__50_41(SkillDef asset) { return ((Object)asset).name == "sdArraignSpearThrow"; } internal bool <CreateJudgementAsync>b__50_42(SkillDef asset) { return ((Object)asset).name == "sdArraignaHauntClockAttack"; } internal bool <CreateJudgementAsync>b__50_43(SkillDef asset) { return ((Object)asset).name == "sdArraignHauntSkyLaser"; } internal bool <CreateJudgementAsync>b__50_44(BuffDef buff) { return ((Object)buff).name == "bdAeonian"; } internal bool <CreateJudgementAsync>b__50_45(BuffDef buff) { return ((Object)buff).name == "bdImmuneToHammer"; } internal bool <CreateJudgementAsync>b__50_46(BuffDef buff) { return ((Object)buff).name == "bdImmuneToAllDamageExceptHammer"; } internal bool <CreateJudgementAsync>b__50_47(GameObject asset) { CharacterBody val = default(CharacterBody); return asset.TryGetComponent<CharacterBody>(ref val); } internal bool <CreateJudgementAsync>b__50_48(GameObject asset) { CharacterMaster val = default(CharacterMaster); return asset.TryGetComponent<CharacterMaster>(ref val); } internal bool <CreateJudgementAsync>b__50_49(GameObject asset) { ProjectileController val = default(ProjectileController); return asset.TryGetComponent<ProjectileController>(ref val); } internal bool <CreateJudgementAsync>b__50_50(GameObject asset) { EffectComponent val = default(EffectComponent); return asset.TryGetComponent<EffectComponent>(ref val); } internal EffectDef <CreateJudgementAsync>b__50_51(GameObject item) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown return new EffectDef(item); } internal bool <CreateJudgementAsync>b__50_52(GameObject asset) { return ((Object)asset).name == "ArraignP1Body"; } internal bool <CreateJudgementAsync>b__50_53(GameObject asset) { return ((Object)asset).name == "ArraignP2Body"; } internal bool <CreateJudgementAsync>b__50_54(GameObject asset) { return ((Object)asset).name == "JudgementInteractable"; } internal bool <CreateJudgementAsync>b__50_55(GameObject asset) { return ((Object)asset).name == "PileOfDirtInteractable"; } internal bool <CreateJudgementAsync>b__50_56(GameObject asset) { return ((Object)asset).name == "BrokenTeleporterInteractable"; } internal bool <CreateJudgementAsync>b__50_57(GameObject asset) { return ((Object)asset).name == "VoidMegaTeleporter"; } internal bool <CreateJudgementAsync>b__50_58(GameObject asset) { return ((Object)asset).name == "VoidlingWeaponController"; } internal bool <CreateJudgementAsync>b__50_59(GameObject asset) { return ((Object)asset).name == "VoidWeaponPrefab"; } internal bool <CreateJudgementAsync>b__50_60(GameObject asset) { return ((Object)asset).name == "PortalJudgement"; } internal bool <CreateJudgementAsync>b__50_61(GameObject asset) { return ((Object)asset).name == "MithrixHammerController"; } internal bool <CreateJudgementAsync>b__50_62(GameObject asset) { return ((Object)asset).name == "ArraignP1SpeechController"; } internal bool <CreateJudgementAsync>b__50_63(GameObject asset) { return ((Object)asset).name == "ArraignP2SpeechController"; } internal bool <CreateJudgementAsync>b__50_64(GameObject asset) { return ((Object)asset).name == "MithrixHammerSwingEffect"; } internal bool <CreateJudgementAsync>b__50_65(GameObject asset) { return ((Object)asset).name == "ArraignRemoveSwordEffect"; } internal bool <CreateJudgementAsync>b__50_66(GameObject asset) { return ((Object)asset).name == "ArraignSlash3Wave"; } internal bool <CreateJudgementAsync>b__50_67(GameObject asset) { return ((Object)asset).name == "ArraignPreLightningProjectile"; } internal bool <CreateJudgementAsync>b__50_68(GameObject asset) { return ((Object)asset).name == "ArraignPreClockAttackProjectile"; } internal bool <CreateJudgementAsync>b__50_69(GameObject asset) { return ((Object)asset).name == "ArraignSwordProjectile"; } internal bool <CreateJudgementAsync>b__50_70(GameObject asset) { return ((Object)asset).name == "ArraignSpearProjectile"; } internal bool <CreateJudgementAsync>b__50_71(GameObject asset) { return ((Object)asset).name == "ClockZoneEffect"; } internal bool <CreateJudgementAsync>b__50_72(GameObject asset) { return ((Object)asset).name == "DropPositionEffect"; } internal bool <CreateJudgementAsync>b__50_73(GameObject asset) { return ((Object)asset).name == "ArraignPreBeamGroundIndicator"; } internal bool <CreateJudgementAsync>b__50_74(GameObject asset) { return ((Object)asset).name == "LanceStapEffect"; } internal bool <CreateJudgementAsync>b__50_75(GameObject asset) { return ((Object)asset).name == "ArraignArmorBreakEffect"; } internal bool <CreateJudgementAsync>b__50_76(GameObject asset) { return ((Object)asset).name == "SkyLaserBodySpawnEffect"; } internal bool <CreateJudgementAsync>b__50_77(GameObject asset) { return ((Object)asset).name == "BeamPostProccess"; } internal bool <CreateJudgementAsync>b__50_78(GameObject asset) { return ((Object)asset).name == "ArraignBeamPushbackEffect"; } internal bool <CreateJudgementAsync>b__50_79(GameObject asset) { return ((Object)asset).name == "ArraignBeamPushbackEffectNoMuzzleParticles"; } internal bool <CreateJudgementAsync>b__50_80(GameObject asset) { return ((Object)asset).name == "DisplayAeonian"; } internal bool <CreateJudgementAsync>b__50_81(GameObject asset) { return ((Object)asset).name == "EnemiesReturnsCreditsAdditions"; } internal bool <CreateJudgementAsync>b__50_82(ItemDef item) { return ((Object)item).name == "TradableRock"; } internal bool <CreateJudgementAsync>b__50_83(ItemDef item) { return ((Object)item).name == "LunarFlower"; } internal bool <CreateJudgementAsync>b__50_84(ItemDef item) { return ((Object)item).name == "VoidFlower"; } internal bool <CreateJudgementAsync>b__50_85(ItemDef item) { return ((Object)item).name == "HiddenAnointed"; } internal bool <CreateJudgementAsync>b__50_86(GameEndingDef item) { return item.cachedName == "SurviveJudgement"; } internal bool <CreateJudgementAsync>b__50_87(ItemTierDef item) { return ((Object)item).name == "HiddenInLogbook"; } internal bool <CreateJudgementAsync>b__50_88(EquipmentDef equipment) { return ((Object)equipment).name == "MithrixHammer"; } internal bool <CreateJudgementAsync>b__50_89(EquipmentDef equipment) { return ((Object)equipment).name == "EliteAeonianEquipment"; } internal bool <CreateJudgementAsync>b__50_90(EquipmentDef equipment) { return ((Object)equipment).name == "VoidlingWeapon"; } internal void <CreateJudgementAsync>b__50_14(CharacterSpawnCard[] assets) { ArraignBody.cscArraignP1 = assets.First((CharacterSpawnCard asset) => ((Object)asset).name == "cscArraignP1"); ArraignBody.cscArraignP2 = assets.First((CharacterSpawnCard asset) => ((Object)asset).name == "cscArraignP2"); SummonSkyLasers.cscSkyLaser = assets.First((CharacterSpawnCard asset) => ((Object)asset).name == "cscSkyLaser"); Phase3.cscArraignHaunt = assets.First((CharacterSpawnCard asset) => ((Object)asset).name == "cscArraignHaunt"); } internal bool <CreateJudgementAsync>b__50_91(CharacterSpawnCard asset) { return ((Object)asset).name == "cscArraignP1"; } internal bool <CreateJudgementAsync>b__50_92(CharacterSpawnCard asset) { return ((Object)asset).name == "cscArraignP2"; } internal bool <CreateJudgementAsync>b__50_93(CharacterSpawnCard asset) { return ((Object)asset).name == "cscSkyLaser"; } internal bool <CreateJudgementAsync>b__50_94(CharacterSpawnCard asset) { return ((Object)asset).name == "cscArraignHaunt"; } internal void <CreateJudgementAsync>b__50_15(ModdedSkinDefParams[] assets) { //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) ModdedSkinDefParams[] array = assets.Where((ModdedSkinDefParams item) => ((Object)item).name.Contains("Judgement")).ToArray(); foreach (ModdedSkinDefParams moddedSkinDefParams in array) { if (Object.op_Implicit((Object)(object)moddedSkinDefParams.CreateSkinDef())) { GameObject obj = AssetAsyncReferenceManager<GameObject>.LoadAsset(moddedSkinDefParams.bodyPrefab, (AsyncReferenceHandleUnloadType)2).WaitForCompletion(); SkinDef val = AnointedSkins.CreateAnointedSkin(((Object)obj).name, moddedSkinDefParams.CreateSkinDef(), addEliteRamp: false); ArrayUtils.ArrayAppend<SkinDef>(ref ((Component)obj.GetComponent<ModelLocator>().modelTransform).gameObject.GetComponent<ModelSkinController>().skins, ref val); } } } internal bool <CreateJudgementAsync>b__50_95(ModdedSkinDefParams item) { return ((Object)item).name.Contains("Judgement"); } internal bool <CreateLynxTrap>b__56_0(GameObject prefab) { return ((Object)prefab).name == "LynxTrapPrefab"; } internal bool <CreateLynxShrine>b__57_0(GameObject prefab) { return ((Object)prefab).name == "LynxTribeRetreatEffect"; } internal bool <CreateLynxShrine>b__57_1(GameObject prefab) { return ((Object)prefab).name == "LynxShrinePrefab"; } internal bool <CreateLynxShrine>b__57_2(GameObject prefab) { return ((Object)prefab).name == "LynxShrinePrefab2"; } internal bool <CreateLynxShrine>b__57_3(GameObject prefab) { return ((Object)prefab).name == "LynxShrinePrefab3"; } internal bool <CreateLynxArcher>b__59_0(GameObject prefab) { return ((Object)prefab).name == "ArrowProjectile"; } internal bool <CreateLynxArcher>b__59_1(GameObject prefab) { return ((Object)prefab).name == "ArrowProjectileGhost"; } internal bool <CreateLynxArcher>b__59_2(GameObject prefab) { return ((Object)prefab).name == "ArrowProjectileGhost"; } internal bool <CreateLynxArcher>b__59_3(GameObject prefab) { return ((Object)prefab).name == "LynxArcherBody"; } internal bool <CreateLynxArcher>b__59_4(GameObject prefab) { return ((Object)prefab).name == "LynxArcherMaster"; } internal bool <CreateLynxArcher>b__59_5(GameObject prefab) { return ((Object)prefab).name == "LynxArcherAllyBody"; } internal bool <CreateLynxArcher>b__59_6(GameObject prefab) { return ((Object)prefab).name == "LynxArcherAllyMaster"; } internal bool <CreateLynxHunter>b__60_0(GameObject prefab) { return ((Object)prefab).name == "LynxHunterAttackEffect"; } internal bool <CreateLynxHunter>b__60_1(GameObject prefab) { return ((Object)prefab).name == "LynxHunterSpearTipEffect"; } internal bool <CreateLynxHunter>b__60_2(GameObject prefab) { return ((Object)prefab).name == "LynxHunterBody"; } internal bool <CreateLynxHunter>b__60_3(GameObject prefab) { return ((Object)prefab).name == "LynxHunterMaster"; } internal bool <CreateLynxHunter>b__60_4(GameObject prefab) { return ((Object)prefab).name == "LynxHunterAllyBody"; } internal bool <CreateLynxHunter>b__60_5(GameObject prefab) { return ((Object)prefab).name == "LynxHunterAllyMaster"; } internal bool <CreateLynxScout>b__61_0(GameObject prefab) { return ((Object)prefab).name == "LynxScoutClawEffectLeft"; } internal bool <CreateLynxScout>b__61_1(GameObject prefab) { return ((Object)prefab).name == "LynxScoutClawEffectRight"; } internal bool <CreateLynxScout>b__61_2(GameObject prefab) { return ((Object)prefab).name == "LynxScoutBody"; } internal bool <CreateLynxScout>b__61_3(GameObject prefab) { return ((Object)prefab).name == "LynxScoutMaster"; } internal bool <CreateLynxScout>b__61_4(GameObject prefab) { return ((Object)prefab).name == "LynxScoutAllyBody"; } internal bool <CreateLynxScout>b__61_5(GameObject prefab) { return ((Object)prefab).name == "LynxScoutAllyMaster"; } internal bool <CreateLynxTotem>b__62_0(GameObject prefab) { return ((Object)prefab).name == "LynxSpawnParticles"; } internal bool <CreateLynxTotem>b__62_1(GameObject prefab) { return ((Object)prefab).name == "LynxSpawnParticles"; } internal bool <CreateLynxTotem>b__62_2(GameObject prefab) { return ((Object)prefab).name == "LynxTotemFireWallProjectile"; } internal bool <CreateLynxTotem>b__62_3(GameObject prefab) { return ((Object)prefab).name == "TotemShakeParticles"; } internal bool <CreateLynxTotem>b__62_4(GameObject prefab) { return ((Object)prefab).name == "TotemSingleStoneParticle"; } internal bool <CreateLynxTotem>b__62_5(GameObject prefab) { return ((Object)prefab).name == "TotemEyeGlowSummonTribe"; } internal bool <CreateLynxTotem>b__62_6(GameObject prefab) { return ((Object)prefab).name == "TotemEyeGlowSummonStorm"; } internal bool <CreateLynxTotem>b__62_7(GameObject prefab) { return ((Object)prefab).name == "TotemEyeGlowGroundpound"; } internal bool <CreateLynxTotem>b__62_8(GameObject prefab) { return ((Object)prefab).name == "LynxTotemGroundpoundProjectile"; } internal bool <CreateLynxTotem>b__62_9(GameObject prefab) { return ((Object)prefab).name == "TotemSummonStormOrb"; } internal bool <CreateLynxTotem>b__62_10(GameObject prefab) { return ((Object)prefab).name == "LynxTotemBody"; } internal bool <CreateLynxTotem>b__62_11(GameObject prefab) { return ((Object)prefab).name == "LynxTotemMaster"; } internal bool <CreateLynxTotemItem>b__63_0(GameObject item) { return ((Object)item).name == "PickupLynxFetish"; } internal bool <CreateLynxShaman>b__64_0(GameObject prefab) { return ((Object)prefab).name == "LynxSpawnParticles"; } internal bool <CreateLynxShaman>b__64_1(GameObject prefab) { return ((Object)prefab).name == "ShamanSummonStormParticle"; } internal bool <CreateLynxShaman>b__64_2(GameObject prefab) { return ((Object)prefab).name == "ShamanMask"; } internal bool <CreateLynxShaman>b__64_3(GameObject prefab) { return ((Object)prefab).name == "ShamanTeleportEffectOut"; } internal bool <CreateLynxShaman>b__64_4(GameObject prefab) { return ((Object)prefab).name == "LynxShamanPushBackSummon"; } internal bool <CreateLynxShaman>b__64_5(GameObject prefab) { return ((Object)prefab).name == "LynxShamanPushBackExplosion"; } internal bool <CreateLynxShaman>b__64_6(CharacterBody body) { return body.HasBuff(Content.Buffs.ReduceHealing); } internal bool <CreateLynxShaman>b__64_7(GameObject prefab) { return ((Object)prefab).name == "LynxShamanProjectileImpactEffect"; } internal bool <CreateLynxShaman>b__64_8(GameObject prefab) { return ((Object)prefab).name == "ShamanTrackingProjectile"; } internal bool <CreateLynxShaman>b__64_9(GameObject body) { return ((Object)body).name == "LynxShamanBody"; } internal bool <CreateLynxShaman>b__64_10(GameObject master) { return ((Object)master).name == "LynxShamanMaster"; } internal bool <CreateLynxShaman>b__64_11(GameObject prefab) { return ((Object)prefab).name == "LynxShamanAllyBody"; } internal bool <CreateLynxShaman>b__64_12(GameObject prefab) { return ((Object)prefab).name == "LynxShamanAllyMaster"; } internal bool <CreateLynxStorm>b__65_0(GameObject body) { return ((Object)body).name == "StormBody"; } internal bool <CreateLynxStorm>b__65_1(GameObject master) { return ((Object)master).name == "StormMaster"; } internal bool <CreateMechanichalSpiderDrone>b__67_0(GameObject body) { return ((Object)body).name == "MechanicalSpiderDroneBody"; } internal bool <CreateMechanichalSpiderDrone>b__67_1(GameObject master) { return ((Object)master).name == "MechanicalSpiderDroneMaster"; } internal bool <CreateMechanichalSpiderDrone>b__67_2(GameObject interactable) { return ((Object)interactable).name == "MechanicalSpiderBroken"; } internal bool <CreateMechanicalSpiderEnemy>b__68_0(GameObject body) { return ((Object)body).name == "MechanicalSpiderBody"; } internal bool <CreateMechanicalSpiderEnemy>b__68_1(GameObject master) { return ((Object)master).name == "MechanicalSpiderMaster"; } internal bool <SetupMechanicalSpiderEngiSkill>b__69_0(GameObject body) { return ((Object)body).name == "MechanicalSpiderTurretBody"; } internal bool <SetupMechanicalSpiderEngiSkill>b__69_1(GameObject master) { return ((Object)master).name == "MechanicalSpiderTurretMaster"; } internal bool <SetupMechanicalSpiderEngiSkill>b__69_2(GameObject asset) { return ((Object)asset).name == "MechanicalSpiderTurretBlueprints"; } internal bool <CreatePartyHat>b__70_0(GameObject assets) { return ((Object)assets).name == "ReturnsPartyHat"; } internal bool <CreateSandCrab>b__71_0(GameObject effect) { return ((Object)effect).name == "SandCrabBubbleImpactEffect"; } internal bool <CreateSandCrab>b__71_1(GameObject projectile) { return ((Object)projectile).name == "SandCrabBubbleProjectile"; } internal bool <CreateSandCrab>b__71_2(GameObject ghost) { return ((Object)ghost).name == "SandCrabBubbleGhost"; } internal bool <CreateSandCrab>b__71_3(GameObject body) { return ((Object)body).name == "SandCrabBody"; } internal bool <CreateSandCrab>b__71_4(GameObject master) { return ((Object)master).name == "SandCrabMaster"; } internal bool <CreateSpitter>b__72_0(GameObject body) { return ((Object)body).name == "SpitterBody"; } internal bool <CreateSpitter>b__72_1(GameObject master) { return ((Object)master).name == "SpitterMaster"; } internal bool <CreateSwift>b__73_0(GameObject effect) { return ((Object)effect).name == "SwiftChargeDiveEffect"; } internal bool <CreateSwift>b__73_1(GameObject body) { return ((Object)body).name == "SwiftBody"; } internal bool <CreateSwift>b__73_2(GameObject master) { return ((Object)master).name == "SwiftMaster"; } } public const string AssetBundleContactLightStagesAssetsName = "enemiesreturns_contactlight_stages_assets"; public const string AssetBundleContactLightStagesName = "enemiesreturns_contactlight_stages_scenes"; public static CharacterSpawnCard cscTempleGuardian; private readonly ContentPack _contentPack = new ContentPack(); public const string AssetBundleName = "enemiesreturns"; public const string ThunderkitStubbedShadersBundleName = "enemiesreturns_thunderkit_stubbedshaders"; public const string AssetBundleFolder = "AssetBundles"; public const string SoundbankFolder = "Soundbanks"; public const string SoundsSoundBankFileName = "EnemiesReturnsSounds"; public const string MusicSoundBankFileName = "EnemiesReturnsMusic"; public const string InitSoundBankFileName = "EnemiesReturnsInit"; private readonly List<GameObject> bodyList = new List<GameObject>(); private readonly List<GameObject> masterList = new List<GameObject>(); private readonly List<Type> stateList = new List<Type>(); private readonly List<SkillFamily> sfList = new List<SkillFamily>(); private readonly List<SkillDef> sdList = new List<SkillDef>(); private readonly List<EffectDef> effectsList = new List<EffectDef>(); private readonly List<GameObject> projectilesList = new List<GameObject>(); private readonly List<UnlockableDef> unlockablesList = new List<UnlockableDef>(); private readonly List<ItemDef> itemList = new List<ItemDef>(); private readonly List<NetworkSoundEventDef> nseList = new List<NetworkSoundEventDef>(); private readonly List<GameObject> nopList = new List<GameObject>(); private readonly List<BuffDef> bdList = new List<BuffDef>(); private readonly List<CraftableDef> craftableList = new List<CraftableDef>(); public static readonly Dictionary<string, string> ShaderLookup = new Dictionary<string, string> { { "stubbedror2/base/shaders/hgstandard", "RoR2/Base/Shaders/HGStandard.shader" }, { "stubbedror2/base/shaders/hgsnowtopped", "RoR2/Base/Shaders/HGSnowTopped.shader" }, { "stubbedror2/base/shaders/hgtriplanarterrainblend", "RoR2/Base/Shaders/HGTriplanarTerrainBlend.shader" }, { "stubbedror2/base/shaders/hgintersectioncloudremap", "RoR2/Base/Shaders/HGIntersectionCloudRemap.shader" }, { "stubbedror2/base/shaders/hgcloudremap", "RoR2/Base/Shaders/HGCloudRemap.shader" }, { "stubbedror2/base/shaders/hgopaquecloudremap", "RoR2/Base/Shaders/HGOpaqueCloudRemap.shader" }, { "stubbedror2/base/shaders/hgdistortion", "RoR2/Base/Shaders/HGDistortion.shader" }, { "stubbedcalm water/calmwater - dx11 - doublesided", "Calm Water/CalmWater - DX11 - DoubleSided.shader" }, { "stubbedcalm water/calmwater - dx11", "Calm Water/CalmWater - DX11.shader" }, { "stubbednature/speedtree", "RoR2/Base/Shaders/SpeedTreeCustom.shader" }, { "stubbeddecalicious/decaliciousdeferreddecal", "Decalicious/DecaliciousDeferredDecal.shader" }, { "stubbedror2/base/shaders/hgdamagenumber", "RoR2/Base/Shaders/HGDamageNumber.shader" }, { "stubbedror2/base/shaders/hguianimatealpha", "RoR2/Base/Shaders/HGUIAnimateAlpha.shader" } }; public static Dictionary<string, Material> MaterialCache = new Dictionary<string, Material>(); public static ItemDef VoidMegaCrabItem = Addressables.LoadAssetAsync<ItemDef>((object)"RoR2/DLC1/VoidMegaCrabItem.asset").WaitForCompletion(); public const string AssetBundleJudgementStagesAssetsName = "enemiesreturns_judgement_stages_assets"; public const string AssetBundleJudgementStagesName = "enemiesreturns_judgement_stages_scenes"; public string identifier => "com.Viliger.EnemiesReturns.ContentProvider"; private void CreateArcherBug(GameObject[] assets, Dictionary<string, Sprite> iconLookup) { //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Expected O, but got Unknown //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //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_01c2: 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_01eb: Expected O, but got Unknown //IL_01eb: 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_01f8: 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_0201: Expected O, but got Unknown //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_0241: 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_026a: Expected O, but got Unknown //IL_026a: 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_0277: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown if (ArcherBug.Enabled.Value) { ArcherBugBody.StadiaJungleMeshPrefab = assets.First((GameObject asset) => ((Object)asset).name == "ArcherBug_stadiajungle"); ArcherBugStuff archerBugStuff = new ArcherBugStuff(); GameObject item = (FireCausticSpit.projectilePrefab = archerBugStuff.CreateCausticSpitProjectile()); projectilesList.Add(item); UnlockableDef val = Utils.CreateUnlockableDef("Logs.ArcherBugBody.0", "ENEMIES_RETURNS_UNLOCKABLE_LOG_ARCHERBUG"); unlockablesList.Add(val); GameObject val2 = archerBugStuff.CreateDeathEffect(); effectsList.Add(new EffectDef(val2)); EnemiesReturns.ModdedEntityStates.ArcherBugs.DeathState.deathEffectPrefab = val2; FireCausticSpit.chargeEffect = archerBugStuff.CreateCausticSpitChargeEffect(); effectsList.Add(new EffectDef(FireCausticSpit.chargeEffect)); ArcherBugBody archerBugBody = new ArcherBugBody(); ArcherBugBody.Skills.CausticSpit = archerBugBody.CreateCausticSpitSkill(); sdList.Add(ArcherBugBody.Skills.CausticSpit); ArcherBugBody.SkillFamilies.Primary = Utils.CreateSkillFamily("ArcherBugPrimaryFamily", ArcherBugBody.Skills.CausticSpit); sfList.Add(ArcherBugBody.SkillFamilies.Primary); ArcherBugBody.BodyPrefab = archerBugBody.AddBodyComponents(assets.First((GameObject body) => ((Object)body).name == "ArcherBugBody"), iconLookup["texArcherBugIcon"], val); bodyList.Add(ArcherBugBody.BodyPrefab); ArcherBugMaster.MasterPrefab = new ArcherBugMaster().AddMasterComponents(assets.First((GameObject master) => ((Object)master).name == "ArcherBugMaster"), ArcherBugBody.BodyPrefab); masterList.Add(ArcherBugMaster.MasterPrefab); ArcherBugBody.SpawnCards.cscArcherBugDefault = archerBugBody.CreateCard("cscArcherBugDefault", ArcherBugMaster.MasterPrefab, ArcherBugBody.SkinDefs.Default, ArcherBugBody.BodyPrefab); DirectorCard card = new DirectorCard { spawnCard = (SpawnCard)(object)ArcherBugBody.SpawnCards.cscArcherBugDefault, selectionWeight = ArcherBug.SelectionWeight.Value, preventOverhead = true, minimumStageCompletions = ArcherBug.MinimumStageCompletion.Value }; DirectorCardHolder directorCard = new DirectorCardHolder { Card = card, MonsterCategory = (MonsterCategory)2 }; Utils.AddMonsterToStages(ArcherBug.DefaultStageList.Value, directorCard); ArcherBugBody.SpawnCards.cscArcherBugJungle = archerBugBody.CreateCard("cscArhcerBugJungle", ArcherBugMaster.MasterPrefab, ArcherBugBody.SkinDefs.Jungle, ArcherBugBody.BodyPrefab); DirectorCard card2 = new DirectorCard { spawnCard = (SpawnCard)(object)ArcherBugBody.SpawnCards.cscArcherBugJungle, selectionWeight = ArcherBug.SelectionWeight.Value, preventOverhead = true, minimumStageCompletions = ArcherBug.MinimumStageCompletion.Value }; DirectorCardHolder directorCard2 = new DirectorCardHolder { Card = card2, MonsterCategory = (MonsterCategory)2 }; Utils.AddMonsterToStages(ArcherBug.JungleStageList.Value, directorCard2); } } private void CreateColossus(GameObject[] assets, Dictionary<string, Sprite> iconLookup, Dictionary<string, AnimationCurveDef> acdLookup) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_003b: 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_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Expected O, but got Unknown //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Expected O, but got Unknown //IL_0384: 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_0394: 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_03a6: 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_03b2: Unknown result type (might be due to invalid IL or missing references) //IL_03c4: Expected O, but got Unknown //IL_03c4: 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_03d1: Unknown result type (might be due to invalid IL or missing references) //IL_03d3: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Expected O, but got Unknown //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_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_043a: Unknown result type (might be due to invalid IL or missing references) //IL_044a: Unknown result type (might be due to invalid IL or missing references) //IL_044c: Unknown result type (might be due to invalid IL or missing references) //IL_0451: Unknown result type (might be due to invalid IL or missing references) //IL_0458: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Expected O, but got Unknown //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_0477: 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_0480: Expected O, but got Unknown //IL_04b1: 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_04c1: Unknown result type (might be due to invalid IL or missing references) //IL_04d1: 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_04d8: Unknown result type (might be due to invalid IL or missing references) //IL_04df: Unknown result type (might be due to invalid IL or missing references) //IL_04f1: Expected O, but got Unknown //IL_04f1: 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_04fe: Unknown result type (might be due to invalid IL or missing references) //IL_0500: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Expected O, but got Unknown //IL_0513: 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_0557: 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_0567: 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_0579: 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: Unknown result type (might be due to invalid IL or missing references) //IL_0597: Expected O, but got Unknown //IL_0597: Unknown result type (might be due to invalid IL or missing references) //IL_059c: Unknown result type (might be due to invalid IL or missing references) //IL_05a4: Unknown result type (might be due to invalid IL or missing references) //IL_05a6: Unknown result type (might be due to invalid IL or missing references) //IL_05ad: Expected O, but got Unknown //IL_05de: Unknown result type (might be due to invalid IL or missing references) //IL_05e3: 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_05fe: 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_0605: Unknown result type (might be due to invalid IL or missing references) //IL_060c: Unknown result type (might be due to invalid IL or missing references) //IL_061e: Expected O, but got Unknown //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Unknown result type (might be due to invalid IL or missing references) //IL_062b: Unknown result type (might be due to invalid IL or missing references) //IL_062d: Unknown result type (might be due to invalid IL or missing references) //IL_0634: Expected O, but got Unknown //IL_0640: Unknown result type (might be due to invalid IL or missing references) //IL_0645: Unknown result type (might be due to invalid IL or missing references) //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_0694: Unknown result type (might be due to invalid IL or missing references) //IL_06a4: Unknown result type (might be due to invalid IL or missing references) //IL_06a6: Unknown result type (might be due to invalid IL or missing references) //IL_06ab: 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_06c4: Expected O, but got Unknown //IL_06c4: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: Unknown result type (might be due to invalid IL or missing references) //IL_06d1: 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_06da: Expected O, but got Unknown //IL_06e6: 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) ExplicitPickupDropTable droptable = CreateColossusItem(assets, iconLookup); if (Colossus.Enabled.Value) { ColossusStuff colossusStuff = new ColossusStuff(); GameObject val = (StompBase.stompEffectPrefab = colossusStuff.CreateStompEffect()); effectsList.Add(new EffectDef(val)); GameObject item2 = (StompBase.projectilePrefab = colossusStuff.CreateStompProjectile()); projectilesList.Add(item2); GameObject val2 = colossusStuff.CreateDeathFallEffect(); effectsList.Add(new EffectDef(val2)); BaseDeath.fallEffect = val2; GameObject val3 = colossusStuff.CreateDeath2Effect(); effectsList.Add(new EffectDef(val3)); Death2.deathEffect = val3; RockClapEnd.clapEffect = colossusStuff.CreateClapEffect(); GameObject val4 = colossusStuff.CreateFlyingRocksGhost(); GameObject obj = PrefabAPI.InstantiateClone(val4, "ColossusFlyingRockRotating", false); Object.DestroyImmediate((Object)(object)obj.GetComponent<ProjectileGhostController>()); FloatingRocksController.flyingRockPrefab = obj; GameObject item3 = (RockClapEnd.projectilePrefab = colossusStuff.CreateFlyingRockProjectile(val4)); projectilesList.Add(item3); GameObject item4 = (HeadLaserBarrageAttack.projectilePrefab = colossusStuff.CreateLaserBarrageProjectile()); projectilesList.Add(item4); GameObject val5 = (EnemiesReturns.ModdedEntityStates.Colossus.SpawnState.burrowPrefab = colossusStuff.CreateSpawnEffect()); effectsList.Add(new EffectDef(val5)); HeadLaserBarrageAttack.intencityGraph = acdLookup["LaserBarrageLightIntencity"].curve; UnlockableDef val6 = Utils.CreateUnlockableDef("Logs.ColossusBody.0", "ENEMIES_RETURNS_UNLOCKABLE_LOG_COLOSSUS"); unlockablesList.Add(val6); HeadLaserAttack.beamPrefab = colossusStuff.CreateLaserEffect(); EnemiesReturns.ModdedEntityStates.Colossus.SpawnState.eyeEffectPrefab = colossusStuff.CreateEyeSpawnEffect(assets.First((GameObject item) => ((Object)item).name == "ColossusEyeSpawnEffect")); effectsList.Add(new EffectDef(EnemiesReturns.ModdedEntityStates.Colossus.SpawnState.eyeEffectPrefab)); ColossusBody colossusBody = new ColossusBody(); ColossusBody.Skills.Stomp = colossusBody.CreateStompSkill(); ColossusBody.Skills.StoneClap = colossusBody.CreateStoneClapSkill(); ColossusBody.Skills.LaserBarrage = colossusBody.CreateLaserBarrageSkill(); ColossusBody.Skills.HeadLaser = colossusBody.CreateHeadLaserSkill(); sdList.Add(ColossusBody.Skills.Stomp); sdList.Add(ColossusBody.Skills.StoneClap); sdList.Add(ColossusBody.Skills.LaserBarrage); sdList.Add(ColossusBody.Skills.HeadLaser); ColossusBody.SkillFamilies.Primary = Utils.CreateSkillFamily("ColossusPrimaryFamily", ColossusBody.Skills.Stomp); ColossusBody.SkillFamilies.Secondary = Utils.CreateSkillFamily("ColossusSecondaryFamily", ColossusBody.Skills.StoneClap); ColossusBody.SkillFamilies.Utility = Utils.CreateSkillFamily("ColossusUtilityFamily", ColossusBody.Skills.LaserBarrage); ColossusBody.SkillFamilies.Special = Utils.CreateSkillFamily("ColossusSpecialFamily", ColossusBody.Skills.HeadLaser); sfList.Add(ColossusBody.SkillFamilies.Primary); sfList.Add(ColossusBody.SkillFamilies.Secondary); sfList.Add(ColossusBody.SkillFamilies.Utility); sfList.Add(ColossusBody.SkillFamilies.Special); ColossusBody.BodyPrefab = colossusBody.AddBodyComponents(assets.First((GameObject body) => ((Object)body).name == "ColossusBody"), iconLookup["texColossusIcon"], val6, droptable, acdLookup); bodyList.Add(ColossusBody.BodyPrefab); ColossusMaster.MasterPrefab = new ColossusMaster().AddMasterComponents(assets.First((GameObject master) => ((Object)master).name == "ColossusMaster"), ColossusBody.BodyPrefab); masterList.Add(ColossusMaster.MasterPrefab); ColossusBody.SpawnCards.cscColossusDefault = colossusBody.CreateCard("cscColossusDefault", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.Default, ColossusBody.BodyPrefab); DirectorCard card = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusDefault, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard = new DirectorCardHolder { Card = card, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToCardCategory(card, "Champions", (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync<FamilyDirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsGolemFamily.asset").WaitForCompletion()); Utils.AddMonsterToStages(Colossus.DefaultStageList.Value, directorCard); ColossusBody.SpawnCards.cscColossusSkyMeadow = colossusBody.CreateCard("cscColossusSkyMeadow", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.SkyMeadow, ColossusBody.BodyPrefab); DirectorCard card2 = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusSkyMeadow, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard2 = new DirectorCardHolder { Card = card2, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToStages(Colossus.SkyMeadowStageList.Value, directorCard2); ColossusBody.SpawnCards.cscColossusGrassy = colossusBody.CreateCard("cscColossusGrassy", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.Grassy, ColossusBody.BodyPrefab); DirectorCard card3 = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusGrassy, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard3 = new DirectorCardHolder { Card = card3, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToCardCategory(card3, "Champions", (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync<FamilyDirectorCardCategorySelection>((object)RoR2_Base_Common.dccsGolemFamilyNature_asset).WaitForCompletion()); Utils.AddMonsterToStages(Colossus.GrassyStageList.Value, directorCard3); ColossusBody.SpawnCards.cscColossusCastle = colossusBody.CreateCard("cscColossusCastle", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.Castle, ColossusBody.BodyPrefab); DirectorCard card4 = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusCastle, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard4 = new DirectorCardHolder { Card = card4, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToStages(Colossus.CastleStageList.Value, directorCard4); ColossusBody.SpawnCards.cscColossusSandy = colossusBody.CreateCard("cscColossusSandy", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.Sandy, ColossusBody.BodyPrefab); DirectorCard card5 = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusSandy, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard5 = new DirectorCardHolder { Card = card5, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToCardCategory(card5, "Champions", (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync<FamilyDirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsGolemFamilySandy.asset").WaitForCompletion()); Utils.AddMonsterToStages(Colossus.SandyStageList.Value, directorCard5); ColossusBody.SpawnCards.cscColossusSnowy = colossusBody.CreateCard("cscColossusSnowy", ColossusMaster.MasterPrefab, ColossusBody.SkinDefs.Snowy, ColossusBody.BodyPrefab); DirectorCard card6 = new DirectorCard { spawnCard = (SpawnCard)(object)ColossusBody.SpawnCards.cscColossusSnowy, selectionWeight = Colossus.SelectionWeight.Value, spawnDistance = (MonsterSpawnDistance)0, preventOverhead = true, minimumStageCompletions = Colossus.MinimumStageCompletion.Value }; DirectorCardHolder directorCard6 = new DirectorCardHolder { Card = card6, MonsterCategory = (MonsterCategory)4 }; Utils.AddMonsterToCardCategory(card6, "Champions", (DirectorCardCategorySelection)(object)Addressables.LoadAssetAsync<FamilyDirectorCardCategorySelection>((object)"RoR2/Base/Common/dccsGolemFamilySnowy.asset").WaitForCompletion()); Utils.AddMonsterToStages(Colossus.SnowyStageList.Value, directorCard6); if (Colossus.AddToArtifactOfOrigin.Value && RiskyArtifafactsCompat.enabled) { RiskyArtifafactsCompat.AddMonsterToArtifactOfOrigin((SpawnCard)(object)ColossusBody.SpawnCards.cscColossusGrassy, 3); } } } private ExplicitPickupDropTable CreateColossusItem(GameObject[] assets, Dictionary<string, Sprite> iconLookup) { //IL_0085: 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_00a5: 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) ExplicitPickupDropTable val = null; if (Colossus.ItemEnabled.Value) { ColossalKnurlFactory colossalKnurlFactory = new ColossalKnurlFactory(); Content.Items.ColossalCurl = colossalKnurlFactory.CreateItem(assets.First((GameObject item) => ((Object)item).name == "PickupColossalCurl"), iconLookup["texColossalKnurlIcon"]); itemList.Add(Content.Items.ColossalCurl); val = ScriptableObject.CreateInstance<ExplicitPickupDropTable>(); ((Object)val).name = "epdtColossus"; ((PickupDropTable)val).canDropBeReplaced = true; val.pickupEntries = (PickupDefEntry[])(object)new PickupDefEntry[1] { new PickupDefEntry { pickupWeight = 1f, pickupDef = (Object)(object)Content.Items.ColossalCurl } }; GameObject prefab = assets.First((GameObject item) => ((Object)item).name == "ColossalKnurlFistProjectileGhost"); prefab = colossalKnurlFactory.CreateFistGhostPrefab(prefab); GameObject fistPrefab = assets.First((GameObject item) => ((Object)item).name == "ColossalKnurlFistProjectile"); ColossalKnurlFactory.projectilePrefab = colossalKnurlFactory.CreateFistProjectile(fistPrefab, prefab); projectilesList.Add(ColossalKnurlFactory.projectilePrefab); ref Pair[] relationships = ref Content.ItemRelationshipProviders.ModdedContagiousItemProvider.relationships; Pair val2 = new Pair { itemDef1 = Content.Items.ColossalCurl, itemDef2 = VoidMegaCrabItem }; ArrayUtils.ArrayAppend<Pair>(ref relationships, ref val2); } return val; } public IEnumerator CreateContactLightAsync(LoadStaticContentAsyncArgs args, Dictionary<string, Sprite> iconLookup, Dictionary<string, Texture2D> rampLookups, Dictionary<string, AnimationCurveDef> acdLookup, string assetBundleFolderPath) { AssetBundle assetBundleStagesAssets = null; yield return LoadAssetBundle(Path.Combine(assetBundleFolderPath, "enemiesreturns_contactlight_stages_assets"), args.progressReceiver, delegate(AssetBundle resultAssetBundle) { assetBundleStagesAssets = resultAssetBundle; }); yield return LoadAllAssetsAsync<Material>(assetBundleStagesAssets, args.progressReceiver, (Action<Material[]>)delegate(Material[] assets) { SwapMaterials(assets); }); yield return LoadAllAssetsAsync<SceneDef>(assetBundleStagesAssets, args.progressReceiver, (Action<SceneDef[]>)delegate(SceneDef[] assets) { Content.Stages.ContactLight = assets.First((SceneDef sd) => sd.cachedName == "enemiesreturns_contactlight"); _contentPack.sceneDefs.Add(assets); }); yield return LoadAllAssetsAsync<ModdedSkinDefParams>(assetBundleStagesAssets, args.progressReceiver, (Action<ModdedSkinDefParams[]>)delegate(ModdedSkinDefParams[] assets) { //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown //IL_00b7: 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_00e0: Unknown result type (might be due to invalid IL or missing references) ModdedSkinDefParams moddedSkinDefParams = assets.Where((ModdedSkinDefParams item) => ((Object)item).name == "skinLunarGolemTempleGuardian").First(); SkinDef val5 = moddedSkinDefParams.CreateSkinDef(); if (Object.op_Implicit((Object)(object)val5)) { GameObject val6 = AssetAsyncReferenceManager<GameObject>.LoadAsset(moddedSkinDefParams.bodyPrefab, (AsyncReferenceHandleUnloadType)2).WaitForCompletion(); ArrayUtils.ArrayAppend<SkinDef>(ref ((Component)val6.GetComponent<ModelLocator>().modelTransform).gameObject.GetComponent<ModelSkinController>().skins, ref val5); cscTempleGuardian = Object.Instantiate<CharacterSpawnCard>(Addressables.LoadAssetAsync<CharacterSpawnCard>((object)RoR2_Base_LunarGolem.cscLunarGolem_asset).WaitForCompletion()); ((Object)cscTempleGuardian).name = "cscTempleGuardian"; CharacterSpawnCard obj = cscTempleGuardian; SerializableLoadout val7 = new SerializableLoadout(); val7.bodyLoadouts = (BodyLoadout[])(object)new BodyLoadout[1] { new BodyLoadout { body = val6.GetComponent<CharacterBody>(), skinChoice = val5, skillChoices = Array.Empty<SkillChoice>() } }; obj.loadout = val7; } }); yield return LoadAllAssetsAsync<GameObject>(assetBundleStagesAssets, args.progressReceiver, (Action<GameObject[]>)delegate(GameObject[] assets) { CharacterBody val4 = default(CharacterBody); _contentPack.bodyPrefabs.Add(assets.Where((GameObject asset) => asset.TryGetComponent<CharacterBody>(ref val4)).ToArray()); CharacterMaster val3 = default(CharacterMaster); _contentPack.masterPrefabs.Add(assets.Where((GameObject asset) => asset.TryGetComponent<CharacterMaster>(ref val3)).ToArray()); ProjectileController val2 = default(ProjectileController); _contentPack.projectilePrefabs.Add(assets.Where((GameObject asset) => asset.TryGetComponent<ProjectileController>(ref val2)).ToArray()); EffectComponent val = default(EffectComponent); _contentPack.effectDefs.Add(Array.ConvertAll(assets.Where((GameObject asset) => asset.TryGetComponent<EffectComponent>(ref val)).ToArray(), (Converter<GameObject, EffectDef>)((GameObject item) => new EffectDef(item)))); }); AssetBundle assetBundleStages = null; yield return LoadAssetBundle(Path.Combine(assetBundleFolderPath, "enemiesreturns_contactlight_stages_scenes"), args.progressReceiver, delegate(AssetBundle resultAssetBundle) { assetBundleStages = resultAssetBundle; }); } public IEnumerator FinalizeAsync(FinalizeAsyncArgs args) { args.ReportProgress(1f); yield break; } public IEnumerator GenerateContentPackAsync(GetContentPackAsyncArgs args) { ContentPack.Copy(_contentPack, args.output); args.ReportProgress(1f); yield break; } public IEnumerator LoadStaticContentAsync(LoadStaticContentAsyncArgs args) { Stopwatch totalStopwatch = new Stopwatch(); ((StopwatchBase)totalStopwatch).Start(); _contentPack.identifier = identifier; Content.ItemRelationshipProviders.ModdedContagiousItemProvider = ScriptableObject.CreateInstance<ItemRelationshipProvider>(); ((Object)Content.ItemRelationshipProviders.ModdedContagiousItemProvider).name = "EnemiesReturnsContagiousItemProvider"; Content.ItemRelationshipProviders.ModdedContagiousItemProvider.relationshipType = Addressables.LoadAssetAsync<ItemRelationshipType>((object)"RoR2/DLC1/Common/ContagiousItem.asset").WaitForCompletion(); Content.ItemRelationshipProviders.ModdedContagiousItemProvider.relationships = Array.Empty<Pair>(); Stopwatch val = new Stopwatch(); ((StopwatchBase)val).Start(); string soundbanksFolderPath = Path.Combine(Path.GetDirectoryName(typeof(ContentProvider).Assembly.Location), "Soundbanks"); LoadSoundBanks(soundbanksFolderPath); ((StopwatchBase)val).Stop(); Log.Info("Soundbanks loaded in " + ((StopwatchBase)val).elapsedSeconds); string assetBundleFolderPath = Path.Combine(Path.GetDirectoryName(typeof(ContentProvider).Assembly.Location), "AssetBundles"); AssetBundle stubbedShaders = null; yield return LoadAssetBundle(Path.Combine(assetBundleFolderPath, "enemiesreturns_thunderkit_stubbedshaders"), args.progressReceiver, delegate(AssetBundle resultAssetBundle) { stubbedShaders = resultAssetBundle; }); AssetBundle assetbundle = null; yield return LoadAssetBundle(Path.Combine(assetBundleFolderPath, "enemiesreturns"), args.progressReceiver, dele