using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using BepInEx; using Dungeonator; using Gungeon; using HarmonyLib; using HutongGames.PlayMaker; using HutongGames.PlayMaker.Actions; using InControl; using Microsoft.CodeAnalysis; using Mono.Cecil.Cil; using MonoMod.Cil; using MonoMod.RuntimeDetour; using Pathfinding; using ReturnUnusedCharacters.API.ItemAPI; using ReturnUnusedCharacters.API.SoundAPI; using ReturnUnusedCharacters.Characters.Lamey; using ReturnUnusedCharacters.Characters.Lamey.Items; using ReturnUnusedCharacters.Components; using ReturnUnusedCharacters.EnumExtension; using ReturnUnusedCharacters.Tools; using SGUI; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("ReturnUnusedCharacters")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ReturnUnusedCharacters")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("381c1f30-47ea-46a5-9c65-63ff5c13b1df")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace ReturnUnusedCharacters { public static class Synergies { public static void Init() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_0250: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_0348: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_047d: Unknown result type (might be due to invalid IL or missing references) //IL_04cb: Unknown result type (might be due to invalid IL or missing references) //IL_053d: 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) SynergyBuilder.CreateSynergy("Rad Poisoning", CustomSynergyTypeE.RAD_POISONING, new List { ItemBuilder.ItemIds["vegas_smg"] }, new List { GlobalItemDatabase.RadGunId, GlobalItemDatabase.PlungerId, GlobalItemDatabase.MonsterBloodId, GlobalItemDatabase.BigBoyId }); SynergyBuilder.CreateSynergy("Mysterious Stranger", CustomSynergyTypeE.MYSTERIOUS_STRANGER, new List { ItemBuilder.ItemIds["vegas_smg"] }, new List { GlobalItemDatabase.MagnumId, GlobalItemDatabase.ShadowCloneId, GlobalItemDatabase.FaceMelterId }); SynergyBuilder.CreateSynergy("Psychobuff", CustomSynergyTypeE.PSYCHOBUFF, new List { ItemBuilder.ItemIds["vegas_smg"] }, new List { GlobalItemDatabase.AntibodyId, GlobalItemDatabase.MuscleRelaxantId, GlobalItemDatabase.MagicSweetId }); SynergyBuilder.CreateSynergy("Pewpew-Boy", CustomSynergyTypeE.PEWPEW_BOY, new List { ItemBuilder.ItemIds["vegas_smg"], GlobalItemDatabase.IbombCompanionAppId }); SynergyBuilder.CreateSynergy("Cyberpunk", CustomSynergyTypeE.CYBERPUNK, new List { ItemBuilder.ItemIds["cyberpistol"], ItemBuilder.ItemIds["cybersmg"] }); SynergyBuilder.CreateSynergy("Lightning Fast", CustomSynergyTypeE.LIGHTNING_FAST, new List(), new List { GlobalItemDatabase.ShockRoundsId, ItemBuilder.ItemIds["cyberpistol"], ItemBuilder.ItemIds["cybersmg"] }, activeWhenGunsUnequipped: false, new List { StatModifier.Create((StatType)1, (ModifyMethod)1, 1.5f), StatModifier.Create((StatType)16, (ModifyMethod)1, 1.5f), StatModifier.Create((StatType)10, (ModifyMethod)1, 0.5f), StatModifier.Create((StatType)2, (ModifyMethod)1, 1.5f) }, ignoreLichsEyeBullets: false, 2, suppressVfx: false, requiresAtLeastOneGunAndOneItem: true); SynergyBuilder.CreateSynergy("New and Improved", CustomSynergyTypeE.NEW_AND_IMPROVED, new List(), new List { ItemBuilder.ItemIds["cyberpistol"], ItemBuilder.ItemIds["cybersmg"], GlobalItemDatabase.LaserSightId, GlobalItemDatabase.ScopeId }, activeWhenGunsUnequipped: false, new List { StatModifier.Create((StatType)11, (ModifyMethod)0, 1f) }, ignoreLichsEyeBullets: false, 2, suppressVfx: false, requiresAtLeastOneGunAndOneItem: true); SynergyBuilder.CreateSynergy("Redundant Systems", CustomSynergyTypeE.REDUNDANT_SYSTEMS, new List(), new List { ItemBuilder.ItemIds["cyberpistol"], ItemBuilder.ItemIds["cybersmg"], GlobalItemDatabase.HomingBulletsId, GlobalItemDatabase.CrutchId }, activeWhenGunsUnequipped: false, new List { StatModifier.Create((StatType)17, (ModifyMethod)0, 1f) }, ignoreLichsEyeBullets: false, 2, suppressVfx: false, requiresAtLeastOneGunAndOneItem: true); SynergyBuilder.CreateSynergy("Spray and Pray", CustomSynergyTypeE.SPRAY_AND_PRAY, new List(), new List { ItemBuilder.ItemIds["cyberpistol"], ItemBuilder.ItemIds["cybersmg"], GlobalItemDatabase.EyepatchId, GlobalItemDatabase.DoubleVisionId }, activeWhenGunsUnequipped: false, new List { StatModifier.Create((StatType)16, (ModifyMethod)1, 2f), StatModifier.Create((StatType)9, (ModifyMethod)1, 1.5f), StatModifier.Create((StatType)10, (ModifyMethod)1, 0.5f), StatModifier.Create((StatType)2, (ModifyMethod)1, 2f) }, ignoreLichsEyeBullets: false, 2, suppressVfx: false, requiresAtLeastOneGunAndOneItem: true); SynergyBuilder.CreateSynergy("Zip Bomb", CustomSynergyTypeE.ZIP_BOMB, new List { ItemBuilder.ItemIds["dot_zip_carbine"] }, new List { GlobalItemDatabase.BombId, GlobalItemDatabase.IceBombId, GlobalItemDatabase.LilBomberId, GlobalItemDatabase.IbombCompanionAppId, GlobalItemDatabase.SmokeBombId, GlobalItemDatabase.RollBombId }); SynergyBuilder.CreateSynergy("Knot a Typo", CustomSynergyTypeE.KNOT_A_TYPO, new List { ItemBuilder.ItemIds["dot_zip_carbine"] }, new List { GlobalItemDatabase.BracketKeyId, GlobalItemDatabase.EscapeRopeId }); SynergyBuilder.CreateSynergy("You win, rar", CustomSynergyTypeE.YOU_WIN_RAR, new List { ItemBuilder.ItemIds["dot_zip_carbine"] }, new List { GlobalItemDatabase.StuffedStarId, GlobalItemDatabase.GalacticMedalOfValorId, GlobalItemDatabase.CoinCrownId, GlobalItemDatabase.BadgeId, GlobalItemDatabase.CrownOfGunsId }); SynergyBuilder.CreateSynergy("File Compression", CustomSynergyTypeE.FILE_COMPRESSION, new List { ItemBuilder.ItemIds["dot_zip_carbine"] }, new List { GlobalItemDatabase.BigBoyId, GlobalItemDatabase.BigIronId, GlobalItemDatabase.BigShotgunId, GlobalItemDatabase.BsgId }, activeWhenGunsUnequipped: false, new List { StatModifier.Create((StatType)16, (ModifyMethod)1, 1.5f) }); AIActorDebuffEffect enemyDebuff = ((BraveBehaviour)GlobalEnemyDatabase.WolfEnemy).behaviorSpeculator.AttackBehaviors.OfType().First().EnemyDebuff; ((Component)(object)GlobalItemDatabase.RadGunObject).AddComponent().debuff = enemyDebuff; ((Component)(object)GlobalItemDatabase.PlungerObject).AddComponent().debuff = enemyDebuff; ((Component)(object)ItemBuilder.Guns["vegas_smg"]).AddComponent().debuff = enemyDebuff; SynergyBuilder.AddDualWieldSynergyProcessor(ItemBuilder.Guns["cyberpistol"], ItemBuilder.Guns["cybersmg"], CustomSynergyTypeE.CYBERPUNK); SynergyBuilder.AddSynergiesToDB(); } } public static class SynergyBuilder { public static List addedSynergies = new List(); public static AdvancedSynergyEntry CreateSynergy(string name, CustomSynergyType synergyType, List mandatoryIds, List optionalIds = null, bool activeWhenGunsUnequipped = true, List statModifiers = null, bool ignoreLichsEyeBullets = false, int numberObjectsRequired = 2, bool suppressVfx = false, bool requiresAtLeastOneGunAndOneItem = false) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) AdvancedSynergyEntry val = new AdvancedSynergyEntry(); string text = (val.NameKey = "#" + ETGMod.ToID(name).ToUpperInvariant()); Databases.Strings.Synergy.Set(text, name); if (mandatoryIds != null) { foreach (int mandatoryId in mandatoryIds) { PickupObject byId = PickupObjectDatabase.GetById(mandatoryId); if (byId is Gun) { val.MandatoryGunIDs.Add(mandatoryId); } else if ((byId is PassiveItem || byId is PlayerItem) ? true : false) { val.MandatoryItemIDs.Add(mandatoryId); } } } if (optionalIds != null) { foreach (int optionalId in optionalIds) { PickupObject byId2 = PickupObjectDatabase.GetById(optionalId); if (byId2 is Gun) { val.OptionalGunIDs.Add(optionalId); } else if ((byId2 is PassiveItem || byId2 is PlayerItem) ? true : false) { val.OptionalItemIDs.Add(optionalId); } } } val.ActiveWhenGunUnequipped = activeWhenGunsUnequipped; val.IgnoreLichEyeBullets = ignoreLichsEyeBullets; val.NumberObjectsRequired = numberObjectsRequired; val.RequiresAtLeastOneGunAndOneItem = requiresAtLeastOneGunAndOneItem; val.SuppressVFX = suppressVfx; val.statModifiers = statModifiers ?? new List(); val.bonusSynergies = new List { synergyType }; addedSynergies.Add(val); return val; } public static void AddDualWieldSynergyProcessor(Gun first, Gun second, CustomSynergyType requiredSynergy) { //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_002d: 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) DualWieldSynergyProcessor val = ((Component)first).gameObject.AddComponent(); val.SynergyToCheck = requiredSynergy; val.PartnerGunID = ((PickupObject)second).PickupObjectId; DualWieldSynergyProcessor val2 = ((Component)second).gameObject.AddComponent(); val2.SynergyToCheck = requiredSynergy; val2.PartnerGunID = ((PickupObject)first).PickupObjectId; } public static void AddSynergiesToDB() { AdvancedSynergyDatabase synergyManager = GameManager.Instance.SynergyManager; AdvancedSynergyDatabase val = synergyManager; AdvancedSynergyEntry[] synergies = synergyManager.synergies; List list = addedSynergies; int num = 0; AdvancedSynergyEntry[] array = (AdvancedSynergyEntry[])(object)new AdvancedSynergyEntry[synergies.Length + list.Count]; AdvancedSynergyEntry[] array2 = synergies; foreach (AdvancedSynergyEntry val2 in array2) { array[num] = val2; num++; } foreach (AdvancedSynergyEntry item in list) { array[num] = item; num++; } val.synergies = array; } } [BepInPlugin("spapi.etg.cutcharactersreborn", "Cut Characters Reborn", "1.1.3")] public class Plugin : BaseUnityPlugin { public const string GUID = "spapi.etg.cutcharactersreborn"; public const string NAME = "Cut Characters Reborn"; public const string VERSION = "1.1.3"; public static AssetBundle bundle; public static GameUIRoot UIRootPrefab; public void Awake() { //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Invalid comparison between Unknown and I4 //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Invalid comparison between Unknown and I4 //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Invalid comparison between Unknown and I4 //IL_0166: Unknown result type (might be due to invalid IL or missing references) Assembly executingAssembly = Assembly.GetExecutingAssembly(); Type[] types = executingAssembly.GetTypes(); foreach (Type type in types) { object[] customAttributes = type.GetCustomAttributes(inherit: false); if (customAttributes == null) { continue; } EnumExtensionAttribute enumExtensionAttribute = customAttributes.OfType().FirstOrDefault(); if (enumExtensionAttribute != null && (object)enumExtensionAttribute.type != null && enumExtensionAttribute.type.IsEnum) { FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public); foreach (FieldInfo fieldInfo in fields) { fieldInfo.SetValue(null, ETGModCompatibility.ExtendEnum("spapi.etg.cutcharactersreborn", fieldInfo.Name, enumExtensionAttribute.type)); } } } RuntimePlatform platform = Application.platform; if (1 == 0) { } string text = (((int)platform <= 1) ? "MacOS" : (((int)platform != 13 && (int)platform != 16) ? "Windows" : "Linux")); if (1 == 0) { } string text2 = text; using (Stream stream = executingAssembly.GetManifestResourceStream("ReturnUnusedCharacters.ReturnUnusedCharacters.Assets.AssetBundles." + text2 + ".unusedchar_bundle")) { bundle = AssetBundle.LoadFromStream(stream); } SoundManager.Init(); ETGModMainBehaviour.WaitForGameManagerStart((Action)GMStart); UIRootPrefab = LoadHelper.LoadAssetFromAnywhere("UI Root").GetComponent(); new Harmony("spapi.etg.cutcharactersreborn").PatchAll(); } public void GMStart(GameManager gm) { Toolbox.punchoutPlayer = ((Component)EnemyDatabase.GetOrLoadByGuid("4d164ba3f62648809a4a82c90fc22cae")).GetComponent().PunchoutMinigamePrefab.GetComponentInChildren(); Toolbox.punchoutAnim = ((Component)Toolbox.punchoutPlayer).GetComponent().Library; Toolbox.punchoutFacecardAtlas = Toolbox.punchoutPlayer.PlayerUiSprite.Atlas; Toolbox.punchoutColl = bundle.LoadAsset("RUCPunchoutCollection").GetComponent(); tk2dSpriteAnimation component = bundle.LoadAsset("RUCPunchoutAnimation").GetComponent(); Toolbox.punchoutAnim.clips = CollectionExtensions.AddRangeToArray(Toolbox.punchoutAnim.clips, component.clips); ItemBuilder.InitItemBuilder(); DisguiseHat.Init(); MagnifyingGlass.Init(); Bounty.Init(); CyberPistol.Init(); CyberSMG.Init(); VegasSMG.Init(); DotZipCarbine.Init(); AltLameyGun.Init(); LameyCharacter.Init(); Unlocks.Init(); Synergies.Init(); ConsoleCommands(); LoadMessage(); } public static void ConsoleCommands() { ETGModConsole.Commands.AddGroup("ccr"); ConsoleCommandGroup val = ETGModConsole.Commands.GetGroup("ccr"); val.AddUnit("unlock_everything", (Action)delegate { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) foreach (GungeonFlags unlockFlag in Unlocks.UnlockFlags) { GameStatsManager.Instance.SetFlag(unlockFlag, true); } ETGModConsole.Log((object)"All items in Cut Characters Reborn are now unlocked.", false); }); val.AddUnit("lock_everything", (Action)delegate { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) foreach (GungeonFlags unlockFlag2 in Unlocks.UnlockFlags) { GameStatsManager.Instance.SetFlag(unlockFlag2, false); } ETGModConsole.Log((object)"All items in Cut Characters Reborn are now locked.", false); }); Dictionary commandDescriptions = ETGModConsole.CommandDescriptions; commandDescriptions["ccr unlock_everything"] = "Unlocks every unlockable item in Cut Characters Reborn"; commandDescriptions["ccr lock_everything"] = "Locks every unlockable item in Cut Characters Reborn"; } public static void LoadMessage() { //IL_000a: 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_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Expected O, but got Unknown //IL_00a2: 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_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Expected O, but got Unknown //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Expected O, but got Unknown //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Expected O, but got Unknown //IL_0250: Unknown result type (might be due to invalid IL or missing references) //IL_0255: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0297: Expected O, but got Unknown //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02a3: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02b7: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Unknown result type (might be due to invalid IL or missing references) //IL_02c6: Expected O, but got Unknown string text = "Cut Characters Reborn successfully loaded."; int num = 48; SGroup val = new SGroup { Size = new Vector2(20000f, (float)num), AutoLayoutPadding = 0f, Background = Color.clear, AutoLayout = (SGroup x) => x.AutoLayoutHorizontal }; float num2 = 1.8f; Color32 val2 = default(Color32); ((Color32)(ref val2))..ctor((byte)124, (byte)200, (byte)74, byte.MaxValue); Color32 val3 = default(Color32); ((Color32)(ref val3))..ctor((byte)215, (byte)232, (byte)73, byte.MaxValue); Gradient val4 = new Gradient(); val4.colorKeys = (GradientColorKey[])(object)new GradientColorKey[3] { new GradientColorKey(Color32.op_Implicit(val2), 0f), new GradientColorKey(Color32.op_Implicit(val3), 0.5f), new GradientColorKey(Color32.op_Implicit(val2), 1f) }; Gradient gradient = val4; for (int num3 = 0; num3 < text.Length; num3++) { char c = text[num3]; if (c == ' ') { ((SElement)val).Children.Add((SElement)new SRect(Color.clear) { Size = Vector2.one * 10f }); } else { ((SElement)val).Children.Add((SElement)new SLabel(c.ToString()) { With = { (SModifier)(object)new GradientThingy(gradient, 2f, 0.1f * (float)num3) } }); } } ((SElement)val).Children.Add((SElement)new SRect(Color.clear) { Size = Vector2.one * 10f }); bool flag = false; bool flag2 = false; Texture2D val5 = bundle.LoadAsset("lamey"); Texture2D val6 = bundle.LoadAsset("cosmo" + (flag ? "" : "_hidden")); Texture2D val7 = bundle.LoadAsset("ninja" + (flag2 ? "" : "_hidden")); Texture2D[] array = (Texture2D[])(object)new Texture2D[3] { val5, val6, val7 }; for (int num4 = 0; num4 < array.Length; num4++) { Texture2D val8 = array[num4]; ((SElement)val).Children.Add((SElement)new SLabel { Icon = (Texture)(object)val8, IconScale = Vector2.one * num2, With = { (SModifier)(object)new MovementThingy(1f, 0.2f * (float)num4, 1.5f) } }); ((SElement)val).Children.Add((SElement)new SRect(Color.clear) { Size = new Vector2((float)(((Texture)val8).width + 4) * num2, (float)num) }); } ETGModConsole.Logger.LogMessage((object)text); ((SElement)((ETGModMenu)ETGModConsole.Instance).GUI)[0].Children.Add((SElement)(object)val); } } public class GradientThingy : SModifier { public Gradient gradient; public float offs; public float mult; public GradientThingy(Gradient gradient, float mult, float offs) { this.gradient = gradient; this.offs = offs; this.mult = mult; ((SModifier)this)..ctor(); } public override void Update() { //IL_0026: Unknown result type (might be due to invalid IL or missing references) base.Elem.Foreground = gradient.Evaluate((Time.realtimeSinceStartup * mult + offs) % 1f); } } public class MovementThingy : SModifier { public float offs; public float amplitude; public float mult; public MovementThingy(float mult, float offs, float amplitude) { this.offs = offs; this.amplitude = amplitude; this.mult = mult; ((SModifier)this)..ctor(); } public override void Update() { //IL_000d: 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) base.Elem.Position = Vector2Extensions.WithY(base.Elem.Position, Mathf.Sin((Time.realtimeSinceStartup * mult + offs) * (float)Math.PI * 2f) * amplitude); } } public static class Unlocks { public static List UnlockFlags = new List(); public static void Init() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) ((Component)(object)GlobalEnemyDatabase.DragunEnemy).AddComponent().unlockType = OnDeathCharacterUnlockHandler.UnlockableType.Dragun; ((Component)(object)GlobalEnemyDatabase.ResourcefulRatMechEnemy).AddComponent().unlockType = OnDeathCharacterUnlockHandler.UnlockableType.Rat; ((Component)(object)GlobalEnemyDatabase.InfinilichEnemy).AddComponent().unlockType = OnDeathCharacterUnlockHandler.UnlockableType.Lich; ItemBuilder.Item["magnifyingglass"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_DRAGUN_LAMEY); ItemBuilder.Item["disguisehat"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_DRAGUN_LAMEY); ItemBuilder.Item["cyberpistol"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_RAT_LAMEY); ItemBuilder.Item["cybersmg"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_RAT_LAMEY); ItemBuilder.Item["bounty"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_BOSSRUSH_LAMEY); ItemBuilder.Item["dot_zip_carbine"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_LICH_LAMEY); ItemBuilder.Item["vegas_smg"].SetupUnlockOnFlag(GungeonFlagsE.UNLOCKABLE_LICH_LAMEY); UnlockFlags = new HashSet(from x in ItemBuilder.Item.Values.Where((PickupObject x) => (Object)(object)x != (Object)null).SelectMany((PickupObject x) => ((BraveBehaviour)x).encounterTrackable.prerequisites) where x.IsFlag() && x.requireFlag select x.saveFlagToCheck).ToList(); } } public class OnDeathCharacterUnlockHandler : BraveBehaviour { public enum UnlockableType { None, Rat, Dragun, Lich, BossRush } public UnlockableType unlockType; public void Start() { if (Object.op_Implicit((Object)(object)((BraveBehaviour)this).healthHaver)) { ((BraveBehaviour)this).healthHaver.OnDeath += HandleUnlocks; } } public void HandleUnlocks(Vector2 dir) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Invalid comparison between Unknown and I4 //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Invalid comparison between Unknown and I4 //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Invalid comparison between Unknown and I4 //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) if (!GameManager.HasInstance || GameManager.Instance.AllPlayers == null) { return; } PlayerController[] allPlayers = GameManager.Instance.AllPlayers; foreach (PlayerController val in allPlayers) { if ((Object)(object)val == (Object)null) { continue; } PlayableCharacters characterIdentity = val.characterIdentity; GungeonFlags flagFromUnlockAndCharacter = GetFlagFromUnlockAndCharacter(unlockType, characterIdentity); if ((int)flagFromUnlockAndCharacter > 0) { GameStatsManager.Instance.SetFlag(flagFromUnlockAndCharacter, true); } if (unlockType != UnlockableType.Dragun) { continue; } if ((int)GameManager.Instance.CurrentGameMode == 2) { GungeonFlags flagFromUnlockAndCharacter2 = GetFlagFromUnlockAndCharacter(UnlockableType.BossRush, characterIdentity); if ((int)flagFromUnlockAndCharacter2 > 0) { GameStatsManager.Instance.SetFlag(flagFromUnlockAndCharacter2, true); } } if (characterIdentity == PlayableCharactersE.Lamey || characterIdentity == PlayableCharactersE.Cosmonaut || characterIdentity == PlayableCharactersE.Ninja) { GameStatsManager.Instance.SetCharacterSpecificFlag(characterIdentity, (CharacterSpecificGungeonFlags)1000, true); if (val.IsUsingAlternateCostume) { GameStatsManager.Instance.SetCharacterSpecificFlag(characterIdentity, (CharacterSpecificGungeonFlags)1001, true); } } } } public GungeonFlags GetFlagFromUnlockAndCharacter(UnlockableType unlock, PlayableCharacters ch) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) if (ch == PlayableCharactersE.Lamey) { if (1 == 0) { } GungeonFlags result = (GungeonFlags)(unlock switch { UnlockableType.Rat => GungeonFlagsE.UNLOCKABLE_RAT_LAMEY, UnlockableType.Dragun => GungeonFlagsE.UNLOCKABLE_DRAGUN_LAMEY, UnlockableType.BossRush => GungeonFlagsE.UNLOCKABLE_BOSSRUSH_LAMEY, UnlockableType.Lich => GungeonFlagsE.UNLOCKABLE_LICH_LAMEY, _ => 0, }); if (1 == 0) { } return result; } if (ch == PlayableCharactersE.Cosmonaut) { if (1 == 0) { } GungeonFlags result = (GungeonFlags)(unlock switch { UnlockableType.Rat => GungeonFlagsE.UNLOCKABLE_RAT_COSMONAUT, UnlockableType.Dragun => GungeonFlagsE.UNLOCKABLE_DRAGUN_COSMONAUT, UnlockableType.BossRush => GungeonFlagsE.UNLOCKABLE_BOSSRUSH_COSMONAUT, UnlockableType.Lich => GungeonFlagsE.UNLOCKABLE_LICH_COSMONAUT, _ => 0, }); if (1 == 0) { } return result; } if (ch == PlayableCharactersE.Ninja) { if (1 == 0) { } GungeonFlags result = (GungeonFlags)(unlock switch { UnlockableType.Rat => GungeonFlagsE.UNLOCKABLE_RAT_NINJA, UnlockableType.Dragun => GungeonFlagsE.UNLOCKABLE_DRAGUN_NINJA, UnlockableType.BossRush => GungeonFlagsE.UNLOCKABLE_BOSSRUSH_NINJA, UnlockableType.Lich => GungeonFlagsE.UNLOCKABLE_LICH_NINJA, _ => 0, }); if (1 == 0) { } return result; } return (GungeonFlags)0; } } public static class UnlockTools { public static DungeonPrerequisite SetupUnlockOnFlag(this PickupObject self, GungeonFlags flag, bool requiredFlagValue = true) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)((BraveBehaviour)self).encounterTrackable == (Object)null) { return null; } return ((BraveBehaviour)self).encounterTrackable.SetupUnlockOnFlag(flag, requiredFlagValue); } public static DungeonPrerequisite SetupUnlockOnFlag(this EncounterTrackable self, GungeonFlags flag, bool requiredFlagValue = true) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Expected O, but got Unknown return self.AddPrerequisite(new DungeonPrerequisite { prerequisiteType = (PrerequisiteType)4, saveFlagToCheck = flag, requireFlag = requiredFlagValue }); } public static DungeonPrerequisite AddPrerequisite(this PickupObject self, DungeonPrerequisite prereq) { return ((BraveBehaviour)self).encounterTrackable.AddPrerequisite(prereq); } public static DungeonPrerequisite AddPrerequisite(this EncounterTrackable self, DungeonPrerequisite prereq) { if (!string.IsNullOrEmpty(self.ProxyEncounterGuid)) { self.ProxyEncounterGuid = ""; } if (self.prerequisites == null) { self.prerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[1] { prereq }; } else { DungeonPrerequisite[] prerequisites = self.prerequisites; prerequisites = CollectionExtensions.AddToArray(prerequisites, prereq); self.prerequisites = prerequisites; } EncounterDatabaseEntry entry = EncounterDatabase.GetEntry(self.EncounterGuid); if (!string.IsNullOrEmpty(entry.ProxyEncounterGuid)) { entry.ProxyEncounterGuid = ""; } if (entry.prerequisites == null) { entry.prerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[1] { prereq }; } else { DungeonPrerequisite[] prerequisites2 = entry.prerequisites; prerequisites2 = CollectionExtensions.AddToArray(prerequisites2, prereq); entry.prerequisites = prerequisites2; } return prereq; } } } namespace ReturnUnusedCharacters.Tools { public static class GlobalEnemyDatabase { public static readonly string Ak47BulletKinGuid = "db35531e66ce41cbb81d507a34366dfe"; public static readonly string RubberKinGuid = "6b7ef9e5d05b4f96b04f05ef4a0d1b18"; public static readonly string RedShotgunKinGuid = "128db2f0781141bcb505d8f00f9e4d47"; public static readonly string GatlingGullGuid = "ec6b674e0acd4553b47ee94493d66422"; public static readonly string VeteranBulletKinGuid = "70216cae6c1346309d86d4a0b4603045"; public static readonly string PinheadGuid = "4d37ce3d666b4ddda8039929225b7ede"; public static readonly string BlobulinGuid = "42be66373a3d4d89b91a35c9ff8adfec"; public static readonly string BulletKinGuid = "01972dee89fc4404a5c408d50007dad5"; public static readonly string BandanaBulletKinGuid = "88b6b6a93d4b4234a67844ef4728382c"; public static readonly string ArrowkinGuid = "05891b158cd542b1a5f3df30fb67a7ff"; public static readonly string BlobulonGuid = "0239c0680f9f467dbe5c4aab7dd1eca6"; public static readonly string HollowpointGuid = "4db03291a12144d69fe940d5a01de376"; public static readonly string SkusketGuid = "af84951206324e349e1f13f9b7b60c1a"; public static readonly string BlobuloidGuid = "042edb1dfb614dc385d5ad1b010f2ee3"; public static readonly string BeholsterGuid = "4b992de5b4274168a8878ef9bf7ea36b"; public static readonly string BulletKinFakeryGuid = "b5503988e3684e8fa78274dd0dda0bf5"; public static readonly string VeteranBulletKinFakeryGuid = "06a82532447247f9ada1940d079a31a7"; public static readonly string UnusedMuzzleFlareGuid = "98e52539e1964749a8bbce0fe6a85d6b"; public static readonly string TreadnaughtGuid = "fa76c8cfdf1c4a88b55173666b4bc7fb"; public static readonly string TankerGuid = "df7fb62405dc4697b7721862c7b6b3cd"; public static readonly string BeadieGuid = "7b0b1b6d9ce7405b86b75ce648025dd6"; public static readonly string MuzzleWispGuid = "ffdc8680bdaa487f8f31995539f74265"; public static readonly string BlueShotgunKinGuid = "b54d89f9e802455cbb2b8a96a31e8259"; public static readonly string CubulonGuid = "864ea5a6a9324efc95a0dd2407f42810"; public static readonly string FriendlyBulletKinGuid = "c1757107b9a44f0c823a707adeb4ae7e"; public static readonly string GunjurerGuid = "c4fba8def15e47b297865b18e36cbef8"; public static readonly string PortableTurretGuid = "998807b57e454f00a63d67883fcf90d6"; public static readonly string TutorialTurretGuid = "e667fdd01f1e43349c03a18e5b79e579"; public static readonly string SerManuelGuid = "fc809bd43a4d41738a62d7565456622c"; public static readonly string TutorialBulletKinGuid = "b08ec82bef6940328c7ecd9ffc6bd16c"; public static readonly string BunkerGuid = "8817ab9de885424d9ba83455ead5ffef"; public static readonly string BulletKingGuid = "ffca09398635467da3b1f4a54bcfda80"; public static readonly string BulletKingsToadieGuid = "b5e699a0abb94666bda567ab23bd91c4"; public static readonly string VeteranShotgunKinGuid = "2752019b770f473193b08b4005dc781f"; public static readonly string HighGunjurerGuid = "9b2cf2949a894599917d4d391a0b7394"; public static readonly string SpentGuid = "249db525a9464e5282d02162c88e0357"; public static readonly string BlizzbulonGuid = "022d7c822bc146b58fe3b0287568aaa2"; public static readonly string MountainCubeGuid = "f155fd2759764f4a9217db29dd21b7eb"; public static readonly string SkulletGuid = "336190e29e8a4f75ab7486595b700d4a"; public static readonly string GummyGuid = "5288e86d20184fa69c91ceb642d31474"; public static readonly string SkullmetGuid = "95ec774b5a75467a9ab05fa230c0c143"; public static readonly string SmileyGuid = "ea40fcc863d34b0088f490f4e57f8913"; public static readonly string ShadesGuid = "c00390483f394a849c36143eb878998f"; public static readonly string OldKingGuid = "5729c8b5ffa7415bb3d01205663a33ef"; public static readonly string SuperSpaceTurtleGuid = "3a077fa5872d462196bb9a3cb1af02a3"; public static readonly string WallmongerGuid = "f3b04a067a65492f8b279130323b41f0"; public static readonly string DragunGuid = "465da2bb086a4a88a803f79fe3a27677"; public static readonly string BrownChestMimicGuid = "2ebf8ef6728648089babb507dec4edb7"; public static readonly string BullatGuid = "2feb50a6a40f4f50982e89fd276f6f15"; public static readonly string ShotgatGuid = "2d4f8b5404614e7d8b235006acde427a"; public static readonly string ShelletonGuid = "21dd14e5ca2a4a388adab5b11b69a1e1"; public static readonly string BooklletGuid = "c0ff3744760c4a2eb0bb52ac162056e6"; public static readonly string GrenatGuid = "b4666cb6ef4f4b038ba8924fd8adf38f"; public static readonly string HighPriestGuid = "6c43fddfd401456c916089fdd1c99b1c"; public static readonly string BlueChestMimicGuid = "d8d651e3484f471ba8a2daa4bf535ce6"; public static readonly string GreenChestMimicGuid = "abfb454340294a0992f4173d6e5898a8"; public static readonly string DoorLordGuid = "9189f46c47564ed588b9108965f975c9"; public static readonly string CannonbalrogGuid = "5e0af7f7d9de4755a68d2fd3bbc15df4"; public static readonly string BlueBooklletGuid = "6f22935656c54ccfb89fca30ad663a64"; public static readonly string GreenBooklletGuid = "a400523e535f41ac80a43ff6b06dc0bf"; public static readonly string SpiratGuid = "7ec3e8146f634c559a7d58b19191cd43"; public static readonly string DogGuid = "c07ef60ae32b404f99e294a6f9acba75"; public static readonly string SkusketHeadGuid = "c2f902b7cbe745efb3db4399927eab34"; public static readonly string GatlingGullAllyGuid = "538669d3b2cd4edca2e3699812bcf2b6"; public static readonly string TazieGuid = "98fdf153a4dd4d51bf0bafe43f3c77ff"; public static readonly string BlackSkusketGuid = "1cec0cdf383e42b19920787798353e46"; public static readonly string DetGuid = "ac986dabc5a24adab11d48a4bccf4cb1"; public static readonly string XDetGuid = "48d74b9c65f44b888a94f9e093554977"; public static readonly string MineletGuid = "3cadf10c489b461f9fb8814abc1a09c1"; public static readonly string BossTemplateGuid = "7ee0a3fbb3dc417db4c3073ba23e1be8"; public static readonly string GorgunGuid = "c367f00240a64d5d9f3c26484dc35833"; public static readonly string PoisbulonGuid = "e61cab252cfb435db9172adc96ded75f"; public static readonly string PoisbuloidGuid = "fe3fe59d867347839824d5d9ae87f244"; public static readonly string PoisbulinGuid = "b8103805af174924b578c98e95313074"; public static readonly string AmmocondaGuid = "da797878d215453abba824ff902e21b4"; public static readonly string GunNutGuid = "ec8ea75b557d4e7b8ceeaacdf6f8238c"; public static readonly string GigiGuid = "ed37fa13e0fa4fcf8239643957c51293"; public static readonly string GunzockieGuid = "6e972cd3b11e4b429b888b488e308551"; public static readonly string GunsingerGuid = "cf2b7021eac44e3f95af07db9a7c442c"; public static readonly string GunzookieGuid = "8a9e9bedac014a829a48735da6daf3da"; public static readonly string LeadbulonGuid = "ccf6d241dad64d989cbcaca2a8477f01"; public static readonly string AgedGunsingerGuid = "c50a862d19fc4d30baeba54795e8cb93"; public static readonly string CubuleadGuid = "0b547ac6b6fc4d68876a241a88f5ca6a"; public static readonly string CreechGuid = "37340393f97f41b2822bc02d14654172"; public static readonly string SniperShellGuid = "31a3ea0c54a745e182e22ea54844a82d"; public static readonly string ProfessionalGuid = "c5b11bfc065d417b9c4d03a5e385fe2c"; public static readonly string WizbangGuid = "43426a2e39584871b287ac31df04b544"; public static readonly string CoalerGuid = "9d50684ce2c044e880878e86dbada919"; public static readonly string GatGuid = "9b4fb8a2a60a457f90dcf285d34143ac"; public static readonly string FungunGuid = "f905765488874846b7ff257ff81d6d0c"; public static readonly string SpogreGuid = "eed5addcc15148179f300cc0d9ee7f94"; public static readonly string FallenBulletKinGuid = "5f3abc2d561b4b9c9e72b879c6f10c7e"; public static readonly string ShotgrubGuid = "044a9f39712f456597b9762893fbc19c"; public static readonly string LeadCubeGuid = "33b212b856b74ff09252bf4f2e8b8c57"; public static readonly string FleshCubeGuid = "3f2026dc3712490289c4658a2ba4a24b"; public static readonly string ShroomerGuid = "e5cffcfabfae489da61062ea20539887"; public static readonly string AmmomancerGuid = "b1540990a4f1480bbcb3bea70d67f60d"; public static readonly string SpectreGuid = "56f5a0f2c1fc4bc78875aea617ee31ac"; public static readonly string LoreGunjurerGuid = "56fb939a434140308b8f257f0f447829"; public static readonly string MuzzleFlareGuid = "d8a445ea4d944cc1b55a40f22821ae69"; public static readonly string DrWolfsMonsterGuid = "8d441ad4e9924d91b6070d5b3438d066"; public static readonly string DrWolfGuid = "ce2d2a0dced0444fb751b262ec6af08a"; public static readonly string LichGuid = "cd88c3ce60c442e9aa5b3904d31652bc"; public static readonly string PsychomanGuid = "575a37abca8d414d89c4e251dd606050"; public static readonly string BishopGuid = "5d045744405d4438b371eb5ed3e2cdb2"; public static readonly string BlobulordGuid = "1b5810fafbec445d89921a4efb4e42b7"; public static readonly string ShopkeeperBossGuid = "70058857b0a641a888ac4389bd10f455"; public static readonly string BlocknerGuid = "bb73eeeb9e584fbeaf35877ec176de28"; public static readonly string FuselierGuid = "39de9bd6a863451a97906d949c103538"; public static readonly string InterdimensionalHorrorGuid = "dc3cd41623d447aeba77c77c99598426"; public static readonly string MarinesPastImpGuid = "a9cc6a4e9b3d46ea871e70a03c9f77d4"; public static readonly string ConvictsPastSoldierGuid = "556e9f2a10f9411cb9dbfd61e0e0f1e1"; public static readonly string BlackStacheGuid = "8b913eea3d174184be1af362d441910d"; public static readonly string DiagonalXDetGuid = "c5a0fd2774b64287bf11127ca59dd8b4"; public static readonly string VerticalDetGuid = "b67ffe82c66742d1985e5888fd8e6a03"; public static readonly string DiagonalDetGuid = "d9632631a18849539333a92332895ebd"; public static readonly string HorizontalDetGuid = "1898f6fe1ee0408e886aaf05c23cc216"; public static readonly string VerticalXDetGuid = "abd816b0bcbf4035b95837ca931169df"; public static readonly string HorizontalXDetGuid = "07d06d2b23cc48fe9f95454c839cb361"; public static readonly string R2g2Guid = "1ccdace06ebd42dc984d46cb1f0db6cf"; public static readonly string CaterpillarGuid = "d375913a61d1465f8e4ffcf4894e4427"; public static readonly string HmAbsolutionGuid = "b98b10fca77d469e80fb45f3c5badec5"; public static readonly string DragunsKnifeGuid = "78eca975263d4482a4bfa4c07b32e252"; public static readonly string LordOfTheJammedGuid = "0d3f7c641557426fbac8596b61c9fb45"; public static readonly string TombstonerGuid = "cf27dd464a504a428d87a8b2560ad40a"; public static readonly string MegalichGuid = "68a238ed6a82467ea85474c595c49c6e"; public static readonly string RedCapedBulletKinGuid = "fa6a7ac20a0e4083a4c2ee0d86f8bbf7"; public static readonly string InfinilichGuid = "7c5d5f09911e49b78ae644d2b50ff3bf"; public static readonly string TinyBlobulordGuid = "d1c9781fdac54d9e8498ed89210a0238"; public static readonly string FasterTutorialTurretGuid = "41ba74c517534f02a62f2e2028395c58"; public static readonly string CopGuid = "705e9081261446039e1ed9ff16905d04"; public static readonly string ChickenGuid = "76bc43539fc24648bff4568c75c686d1"; public static readonly string AshenBulletKinGuid = "1a78cfb776f54641b832e92c44021cf2"; public static readonly string AshenShotgunKinGuid = "1bd8e49f93614e76b140077ff2e33f2b"; public static readonly string MutantBulletKinGuid = "d4a9836f8ab14f3fadd0f597438b1f1f"; public static readonly string PigGuid = "fe51c83b41ce4a46b42f54ab5f31e6d0"; public static readonly string PoopulonGuid = "116d09c26e624bca8cca09fc69c714b3"; public static readonly string PoopulonsCornGuid = "0ff278534abb4fbaaa65d3f638003648"; public static readonly string KingBullatGuid = "1a4872dafdb34fd29fe8ac90bd2cea67"; public static readonly string SpectralGunNutGuid = "383175a55879441d90933b5c4e60cf6f"; public static readonly string BulletSharkGuid = "72d2f44431da43b8a3bae7d8a114a46d"; public static readonly string AgonizerGuid = "3f6d6b0c4a7c4690807435c7b37c35a5"; public static readonly string LeadMaidenGuid = "cd4a4b7f612a4ba9a720b9f97c52f38c"; public static readonly string CardinalGuid = "8bb5578fba374e8aae8e10b754e61d62"; public static readonly string ShamblingRoundGuid = "98ea2fe181ab4323ab6e9981955a9bca"; public static readonly string WolfGuid = "ededff1deaf3430eaf8321d0c6b2bd80"; public static readonly string BloodbulonGuid = "062b9b64371e46e195de17b6f10e47c8"; public static readonly string BlackChestMimicGuid = "6450d20137994881aff0ddd13e3d40c8"; public static readonly string RedChestMimicGuid = "d8fd592b184b4ac9a3be217bc70912a2"; public static readonly string GunCultistGuid = "57255ed50ee24794b7aac1ac3cfb8a95"; public static readonly string RevolvenantGuid = "d5a7b95774cd41f080e517bea07bf495"; public static readonly string GunreaperGuid = "88f037c3f93b4362a040a87b30770407"; public static readonly string PotFairyGuid = "c182a5cb704d460d9d099a47af49c913"; public static readonly string BlankCompanionGuid = "5695e8ffa77c4d099b4d9bd9536ff35e"; public static readonly string GreatBulletSharkGuid = "b70cbd875fea498aa7fd14b970248920"; public static readonly string ApprenticeGunjurerGuid = "206405acad4d4c33aac6717d184dc8d4"; public static readonly string MutantShotgunKinGuid = "7f665bd7151347e298e4d366f8818284"; public static readonly string KillPillarsGuid = "3f11bbbc439c4086a180eb0fb9990cb4"; public static readonly string HarmlessSnakeGuid = "1386da0f42fb4bcabc5be8feb16a7c38"; public static readonly string LargeSpentGuid = "e21ac9492110493baef6df02a2682a0d"; public static readonly string OldKingsToadieGuid = "02a14dec58ab45fb8aacde7aacd25b01"; public static readonly string TreadnaughtsTankerGuid = "47bdfec22e8e4568a619130a267eab5b"; public static readonly string SerJunkanGuid = "c6c8e59d0f5d41969c74e802c9d67d07"; public static readonly string TestDummyGuid = "5fa8c86a65234b538cd022f726af2aea"; public static readonly string MineFlayerGuid = "8b0dd96e2fe74ec7bebc1bc689c0008a"; public static readonly string MineFlayersBellGuid = "78a8ee40dff2477e9c2134f6990ef297"; public static readonly string KeyBulletKinGuid = "699cd24270af4cd183d671090d8323a1"; public static readonly string MineFlayersClaymoreGuid = "566ecca5f3b04945ac6ce1f26dedbf4f"; public static readonly string RobotsPastHuman1Guid = "1398aaccb26d42f3b998c367b7800b85"; public static readonly string RobotsPastHuman2Guid = "9044d8e4431f490196ba697927a4e3d4"; public static readonly string RobotsPastHuman3Guid = "40bf8b0d97794a26b8c440425ec8cac1"; public static readonly string RobotsPastHuman4Guid = "3590db6c4eac474a93299a908cb77ab2"; public static readonly string JammomancerGuid = "8b4a938cdbc64e64822e841e482ba3d2"; public static readonly string ExecutionerGuid = "b1770e0f1c744d9d887cc16122882b4f"; public static readonly string NitraGuid = "c0260c286c8d4538a697c5bf24976ccf"; public static readonly string KillithidGuid = "3e98ccecf7334ff2800188c417e67c15"; public static readonly string JamerlengoGuid = "ba657723b2904aa79f9e51bce7d23872"; public static readonly string BombsheeGuid = "19b420dec96d4e9ea4aebc3398c0ba7a"; public static readonly string LastHumanGuid = "880bbe4ce1014740ba6b4e2ea521e49d"; public static readonly string RobotsPastTerminatorGuid = "12a054b8a6e549dcac58a82b89e319e5"; public static readonly string RobotsPastChickGuid = "95ea1a31fc9e4415a5f271b9aedf9b15"; public static readonly string RobotsPastRabbitGuid = "42432592685e47c9941e339879379d3a"; public static readonly string RobotsPastSquirrelGuid = "4254a93fc3c84c0dbe0a8f0dddf48a5a"; public static readonly string ChainGunnerGuid = "463d16121f884984abe759de38418e48"; public static readonly string ChickenCompanionGuid = "7bd9c670f35b4b8d84280f52a5cc47f6"; public static readonly string ConfirmedGuid = "844657ad68894a4facb1b8e1aef1abf9"; public static readonly string AgunimGuid = "2ccaa1b7ae10457396a1796decda9cf6"; public static readonly string CannonGuid = "39dca963ae2b4688b016089d926308ab"; public static readonly string ShadowMagicianGuid = "db97e486ef02425280129e1e27c33118"; public static readonly string AmmocondaBallGuid = "f38686671d524feda75261e469f30e0b"; public static readonly string ChanceKinGuid = "a446c626b56d4166915a4e29869737fd"; public static readonly string GripMasterGuid = "22fc2c2c45fb47cf9fb5f7b043a70122"; public static readonly string PhaserSpiderGuid = "98ca70157c364750a60f5e0084f9d3e2"; public static readonly string WallMimicGuid = "479556d05c7c44f3b6abb3b2067fc778"; public static readonly string ChancebulonGuid = "1bc2a07ef87741be90c37096910843ab"; public static readonly string TarnisherGuid = "475c20c1fd474dfbad54954e7cba29c1"; public static readonly string MisfireBeastGuid = "45192ff6d6cb43ed8f1a874ab6bef316"; public static readonly string YolkGuid = "8b43a5c59b854eb780f9ab669ec26b7a"; public static readonly string BlocknersGhostGuid = "edc61b105ddd4ce18302b82efdc47178"; public static readonly string RatCandleGuid = "14ea47ff46b54bb4a98f91ffcffb656d"; public static readonly string RatGuid = "6ad1cafc268f4214a101dca7af61bc91"; public static readonly string RatChestMimicGuid = "ac9d345575444c9a8d11b799e8719be0"; public static readonly string PedestalMimicGuid = "796a7ed4ad804984859088fc91672c7f"; public static readonly string MouserGuid = "be0683affb0e41bbb699cb7125fdded6"; public static readonly string CandleGuyGuid = "eeb33c3a5a8e4eaaaaf39a743e8767bc"; public static readonly string MetalCubeGuyGuid = "ba928393c8ed47819c2c5f593100a5bc"; public static readonly string FusebotGuid = "4538456236f64ea79f483784370bc62f"; public static readonly string BulletKingsToadieRevengeGuid = "d4dd2b2bbda64cc9bcec534b4e920518"; public static readonly string PhoenixGuid = "11a14dbd807e432985a89f69b5f9b31e"; public static readonly string PigSynergyGuid = "86237c6482754cd29819c239403a2de7"; public static readonly string BlankCompanionSynergyGuid = "ad35abc5a3bf451581c3530417d89f2c"; public static readonly string CopAndroidGuid = "640238ba85dd4e94b3d6f68888e6ecb8"; public static readonly string RaccoonGuid = "e9fa6544000942a79ad05b6e4afb62db"; public static readonly string DogSynergy1Guid = "ebf2314289ff4a4ead7ea7ef363a0a2e"; public static readonly string DogSynergy2Guid = "ab4a779d6e8f429baafa4bf9e5dca3a9"; public static readonly string SuperSpaceTurtleSynergyGuid = "9216803e9c894002a4b931d7ea9c6bdf"; public static readonly string TurtleGuid = "cc9c41aa8c194e17b44ac45f993dd212"; public static readonly string PaydayShooter01Guid = "45f5291a60724067bd3ccde50f65ac22"; public static readonly string PaydayShooter02Guid = "41ab10778daf4d3692e2bc4b370ab037"; public static readonly string PaydayShooter03Guid = "2976522ec560460c889d11bb54fbe758"; public static readonly string TurkeyGuid = "6f9c28403d3248c188c391f5e40774c5"; public static readonly string BabyGoodMimicGuid = "e456b66ed3664a4cb590eab3a8ff3814"; public static readonly string ResourcefulRatGuid = "6868795625bd46f3ae3e4377adce288b"; public static readonly string ResourcefulRatMechGuid = "4d164ba3f62648809a4a82c90fc22cae"; public static readonly string DragunAdvancedGuid = "05b8afe0b6cc4fffa9dc6036fa24c8ec"; public static readonly string DragunKnifeAdvancedGuid = "2e6223e42e574775b56c6349921f42cb"; public static readonly string MusketKinGuid = "226fd90be3a64958a5b13cb0a4f43e97"; public static readonly string BulletKinGalTitanBossGuid = "df4e9fedb8764b5a876517431ca67b86"; public static readonly string BulletKinTitanBossGuid = "1f290ea06a4c416cabc52d6b3cf47266"; public static readonly string BulletKinTitanGuid = "c4cf0620f71c4678bb8d77929fd4feff"; public static readonly string BulletKinPirateGuid = "6f818f482a5c47fd8f38cce101f6566c"; public static readonly string BulletKinFishGuid = "143be8c9bbb84e3fb3ab98bcd4cf5e5b"; public static readonly string BulletKinFishBlueGuid = "06f5623a351c4f28bc8c6cda56004b80"; public static readonly string BulletKinBroccoliGuid = "ff4f54ce606e4604bf8d467c1279be3e"; public static readonly string BulletKinKnightGuid = "39e6f47a16ab4c86bec4b12984aece4c"; public static readonly string BulletKinKaliberGuid = "f020570a42164e2699dcf57cac8a495c"; public static readonly string BulletKinCandleGuid = "37de0df92697431baa47894a075ba7e9"; public static readonly string BulletKinCowboyGuid = "5861e5a077244905a8c25c2b7b4d6ebb"; public static readonly string BulletKinOfficetieGuid = "906d71ccc1934c02a6f4ff2e9c07c9ec"; public static readonly string BulletKinOfficesuitGuid = "9eba44a0ea6c4ea386ff02286dd0e6bd"; public static readonly string BulletKinMechGuid = "2b6854c0849b4b8fb98eb15519d7db1c"; public static readonly string BulletKinVestGuid = "05cb719e0178478685dc610f8b3e8bfc"; public static readonly string NitraFirecrackerGuid = "5f15093e6f684f4fb09d3e7e697216b4"; public static readonly string CylinderGuid = "d4f4405e0ff34ab483966fd177f2ece3"; public static readonly string CylinderRedGuid = "534f1159e7cf4f6aa00aeea92459065e"; public static readonly string ChameleonGuid = "80ab6cd15bfc46668a8844b2975c6c26"; public static readonly string BullatGargoyleGuid = "981d358ffc69419bac918ca1bdf0c7f7"; public static readonly string SnakeGuid = "e861e59012954ab2b9b6977da85cb83c"; public static readonly string AgunimHelicopterGuid = "41ee1c8538e8474a82a74c4aff99c712"; public static readonly string CactusKinGuid = "3b0bd258b4c9432db3339665cc61c356"; public static readonly string ParrotGuid = "4b21a913e8c54056bc05cafecf9da880"; public static readonly string TabletBooklletGuid = "78e0951b097b46d89356f004dda27c42"; public static readonly string NecronomiconBooklletGuid = "216fd3dfb9da439d9bd7ba53e1c76462"; public static readonly string CowboyShotgunKinGuid = "ddf12a4881eb43cfba04f36dd6377abb"; public static readonly string PirateShotgunKinGuid = "86dfc13486ee4f559189de53cfb84107"; public static readonly string FridgeMaidenGuid = "9215d1a221904c7386b481a171e52859"; public static readonly string BabyGoodShelletonGuid = "3f40178e10dc4094a1565cd4fdc4af56"; public static AIActor Ak47BulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(Ak47BulletKinGuid); public static AIActor RubberKinEnemy = EnemyDatabase.GetOrLoadByGuid(RubberKinGuid); public static AIActor RedShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(RedShotgunKinGuid); public static AIActor GatlingGullEnemy = EnemyDatabase.GetOrLoadByGuid(GatlingGullGuid); public static AIActor VeteranBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(VeteranBulletKinGuid); public static AIActor PinheadEnemy = EnemyDatabase.GetOrLoadByGuid(PinheadGuid); public static AIActor BlobulinEnemy = EnemyDatabase.GetOrLoadByGuid(BlobulinGuid); public static AIActor BulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinGuid); public static AIActor BandanaBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(BandanaBulletKinGuid); public static AIActor ArrowkinEnemy = EnemyDatabase.GetOrLoadByGuid(ArrowkinGuid); public static AIActor BlobulonEnemy = EnemyDatabase.GetOrLoadByGuid(BlobulonGuid); public static AIActor HollowpointEnemy = EnemyDatabase.GetOrLoadByGuid(HollowpointGuid); public static AIActor SkusketEnemy = EnemyDatabase.GetOrLoadByGuid(SkusketGuid); public static AIActor BlobuloidEnemy = EnemyDatabase.GetOrLoadByGuid(BlobuloidGuid); public static AIActor BeholsterEnemy = EnemyDatabase.GetOrLoadByGuid(BeholsterGuid); public static AIActor BulletKinFakeryEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinFakeryGuid); public static AIActor VeteranBulletKinFakeryEnemy = EnemyDatabase.GetOrLoadByGuid(VeteranBulletKinFakeryGuid); public static AIActor UnusedMuzzleFlareEnemy = EnemyDatabase.GetOrLoadByGuid(UnusedMuzzleFlareGuid); public static AIActor TreadnaughtEnemy = EnemyDatabase.GetOrLoadByGuid(TreadnaughtGuid); public static AIActor TankerEnemy = EnemyDatabase.GetOrLoadByGuid(TankerGuid); public static AIActor BeadieEnemy = EnemyDatabase.GetOrLoadByGuid(BeadieGuid); public static AIActor MuzzleWispEnemy = EnemyDatabase.GetOrLoadByGuid(MuzzleWispGuid); public static AIActor BlueShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(BlueShotgunKinGuid); public static AIActor CubulonEnemy = EnemyDatabase.GetOrLoadByGuid(CubulonGuid); public static AIActor FriendlyBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(FriendlyBulletKinGuid); public static AIActor GunjurerEnemy = EnemyDatabase.GetOrLoadByGuid(GunjurerGuid); public static AIActor PortableTurretEnemy = EnemyDatabase.GetOrLoadByGuid(PortableTurretGuid); public static AIActor TutorialTurretEnemy = EnemyDatabase.GetOrLoadByGuid(TutorialTurretGuid); public static AIActor SerManuelEnemy = EnemyDatabase.GetOrLoadByGuid(SerManuelGuid); public static AIActor TutorialBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(TutorialBulletKinGuid); public static AIActor BunkerEnemy = EnemyDatabase.GetOrLoadByGuid(BunkerGuid); public static AIActor BulletKingEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKingGuid); public static AIActor BulletKingsToadieEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKingsToadieGuid); public static AIActor VeteranShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(VeteranShotgunKinGuid); public static AIActor HighGunjurerEnemy = EnemyDatabase.GetOrLoadByGuid(HighGunjurerGuid); public static AIActor SpentEnemy = EnemyDatabase.GetOrLoadByGuid(SpentGuid); public static AIActor BlizzbulonEnemy = EnemyDatabase.GetOrLoadByGuid(BlizzbulonGuid); public static AIActor MountainCubeEnemy = EnemyDatabase.GetOrLoadByGuid(MountainCubeGuid); public static AIActor SkulletEnemy = EnemyDatabase.GetOrLoadByGuid(SkulletGuid); public static AIActor GummyEnemy = EnemyDatabase.GetOrLoadByGuid(GummyGuid); public static AIActor SkullmetEnemy = EnemyDatabase.GetOrLoadByGuid(SkullmetGuid); public static AIActor SmileyEnemy = EnemyDatabase.GetOrLoadByGuid(SmileyGuid); public static AIActor ShadesEnemy = EnemyDatabase.GetOrLoadByGuid(ShadesGuid); public static AIActor OldKingEnemy = EnemyDatabase.GetOrLoadByGuid(OldKingGuid); public static AIActor SuperSpaceTurtleEnemy = EnemyDatabase.GetOrLoadByGuid(SuperSpaceTurtleGuid); public static AIActor WallmongerEnemy = EnemyDatabase.GetOrLoadByGuid(WallmongerGuid); public static AIActor DragunEnemy = EnemyDatabase.GetOrLoadByGuid(DragunGuid); public static AIActor BrownChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(BrownChestMimicGuid); public static AIActor BullatEnemy = EnemyDatabase.GetOrLoadByGuid(BullatGuid); public static AIActor ShotgatEnemy = EnemyDatabase.GetOrLoadByGuid(ShotgatGuid); public static AIActor ShelletonEnemy = EnemyDatabase.GetOrLoadByGuid(ShelletonGuid); public static AIActor BooklletEnemy = EnemyDatabase.GetOrLoadByGuid(BooklletGuid); public static AIActor GrenatEnemy = EnemyDatabase.GetOrLoadByGuid(GrenatGuid); public static AIActor HighPriestEnemy = EnemyDatabase.GetOrLoadByGuid(HighPriestGuid); public static AIActor BlueChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(BlueChestMimicGuid); public static AIActor GreenChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(GreenChestMimicGuid); public static AIActor DoorLordEnemy = EnemyDatabase.GetOrLoadByGuid(DoorLordGuid); public static AIActor CannonbalrogEnemy = EnemyDatabase.GetOrLoadByGuid(CannonbalrogGuid); public static AIActor BlueBooklletEnemy = EnemyDatabase.GetOrLoadByGuid(BlueBooklletGuid); public static AIActor GreenBooklletEnemy = EnemyDatabase.GetOrLoadByGuid(GreenBooklletGuid); public static AIActor SpiratEnemy = EnemyDatabase.GetOrLoadByGuid(SpiratGuid); public static AIActor DogEnemy = EnemyDatabase.GetOrLoadByGuid(DogGuid); public static AIActor SkusketHeadEnemy = EnemyDatabase.GetOrLoadByGuid(SkusketHeadGuid); public static AIActor GatlingGullAllyEnemy = EnemyDatabase.GetOrLoadByGuid(GatlingGullAllyGuid); public static AIActor TazieEnemy = EnemyDatabase.GetOrLoadByGuid(TazieGuid); public static AIActor BlackSkusketEnemy = EnemyDatabase.GetOrLoadByGuid(BlackSkusketGuid); public static AIActor DetEnemy = EnemyDatabase.GetOrLoadByGuid(DetGuid); public static AIActor XDetEnemy = EnemyDatabase.GetOrLoadByGuid(XDetGuid); public static AIActor MineletEnemy = EnemyDatabase.GetOrLoadByGuid(MineletGuid); public static AIActor BossTemplateEnemy = EnemyDatabase.GetOrLoadByGuid(BossTemplateGuid); public static AIActor GorgunEnemy = EnemyDatabase.GetOrLoadByGuid(GorgunGuid); public static AIActor PoisbulonEnemy = EnemyDatabase.GetOrLoadByGuid(PoisbulonGuid); public static AIActor PoisbuloidEnemy = EnemyDatabase.GetOrLoadByGuid(PoisbuloidGuid); public static AIActor PoisbulinEnemy = EnemyDatabase.GetOrLoadByGuid(PoisbulinGuid); public static AIActor AmmocondaEnemy = EnemyDatabase.GetOrLoadByGuid(AmmocondaGuid); public static AIActor GunNutEnemy = EnemyDatabase.GetOrLoadByGuid(GunNutGuid); public static AIActor GigiEnemy = EnemyDatabase.GetOrLoadByGuid(GigiGuid); public static AIActor GunzockieEnemy = EnemyDatabase.GetOrLoadByGuid(GunzockieGuid); public static AIActor GunsingerEnemy = EnemyDatabase.GetOrLoadByGuid(GunsingerGuid); public static AIActor GunzookieEnemy = EnemyDatabase.GetOrLoadByGuid(GunzookieGuid); public static AIActor LeadbulonEnemy = EnemyDatabase.GetOrLoadByGuid(LeadbulonGuid); public static AIActor AgedGunsingerEnemy = EnemyDatabase.GetOrLoadByGuid(AgedGunsingerGuid); public static AIActor CubuleadEnemy = EnemyDatabase.GetOrLoadByGuid(CubuleadGuid); public static AIActor CreechEnemy = EnemyDatabase.GetOrLoadByGuid(CreechGuid); public static AIActor SniperShellEnemy = EnemyDatabase.GetOrLoadByGuid(SniperShellGuid); public static AIActor ProfessionalEnemy = EnemyDatabase.GetOrLoadByGuid(ProfessionalGuid); public static AIActor WizbangEnemy = EnemyDatabase.GetOrLoadByGuid(WizbangGuid); public static AIActor CoalerEnemy = EnemyDatabase.GetOrLoadByGuid(CoalerGuid); public static AIActor GatEnemy = EnemyDatabase.GetOrLoadByGuid(GatGuid); public static AIActor FungunEnemy = EnemyDatabase.GetOrLoadByGuid(FungunGuid); public static AIActor SpogreEnemy = EnemyDatabase.GetOrLoadByGuid(SpogreGuid); public static AIActor FallenBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(FallenBulletKinGuid); public static AIActor ShotgrubEnemy = EnemyDatabase.GetOrLoadByGuid(ShotgrubGuid); public static AIActor LeadCubeEnemy = EnemyDatabase.GetOrLoadByGuid(LeadCubeGuid); public static AIActor FleshCubeEnemy = EnemyDatabase.GetOrLoadByGuid(FleshCubeGuid); public static AIActor ShroomerEnemy = EnemyDatabase.GetOrLoadByGuid(ShroomerGuid); public static AIActor AmmomancerEnemy = EnemyDatabase.GetOrLoadByGuid(AmmomancerGuid); public static AIActor SpectreEnemy = EnemyDatabase.GetOrLoadByGuid(SpectreGuid); public static AIActor LoreGunjurerEnemy = EnemyDatabase.GetOrLoadByGuid(LoreGunjurerGuid); public static AIActor MuzzleFlareEnemy = EnemyDatabase.GetOrLoadByGuid(MuzzleFlareGuid); public static AIActor DrWolfsMonsterEnemy = EnemyDatabase.GetOrLoadByGuid(DrWolfsMonsterGuid); public static AIActor DrWolfEnemy = EnemyDatabase.GetOrLoadByGuid(DrWolfGuid); public static AIActor LichEnemy = EnemyDatabase.GetOrLoadByGuid(LichGuid); public static AIActor PsychomanEnemy = EnemyDatabase.GetOrLoadByGuid(PsychomanGuid); public static AIActor BishopEnemy = EnemyDatabase.GetOrLoadByGuid(BishopGuid); public static AIActor BlobulordEnemy = EnemyDatabase.GetOrLoadByGuid(BlobulordGuid); public static AIActor ShopkeeperBossEnemy = EnemyDatabase.GetOrLoadByGuid(ShopkeeperBossGuid); public static AIActor BlocknerEnemy = EnemyDatabase.GetOrLoadByGuid(BlocknerGuid); public static AIActor FuselierEnemy = EnemyDatabase.GetOrLoadByGuid(FuselierGuid); public static AIActor InterdimensionalHorrorEnemy = EnemyDatabase.GetOrLoadByGuid(InterdimensionalHorrorGuid); public static AIActor MarinesPastImpEnemy = EnemyDatabase.GetOrLoadByGuid(MarinesPastImpGuid); public static AIActor ConvictsPastSoldierEnemy = EnemyDatabase.GetOrLoadByGuid(ConvictsPastSoldierGuid); public static AIActor BlackStacheEnemy = EnemyDatabase.GetOrLoadByGuid(BlackStacheGuid); public static AIActor DiagonalXDetEnemy = EnemyDatabase.GetOrLoadByGuid(DiagonalXDetGuid); public static AIActor VerticalDetEnemy = EnemyDatabase.GetOrLoadByGuid(VerticalDetGuid); public static AIActor DiagonalDetEnemy = EnemyDatabase.GetOrLoadByGuid(DiagonalDetGuid); public static AIActor HorizontalDetEnemy = EnemyDatabase.GetOrLoadByGuid(HorizontalDetGuid); public static AIActor VerticalXDetEnemy = EnemyDatabase.GetOrLoadByGuid(VerticalXDetGuid); public static AIActor HorizontalXDetEnemy = EnemyDatabase.GetOrLoadByGuid(HorizontalXDetGuid); public static AIActor R2g2Enemy = EnemyDatabase.GetOrLoadByGuid(R2g2Guid); public static AIActor CaterpillarEnemy = EnemyDatabase.GetOrLoadByGuid(CaterpillarGuid); public static AIActor HmAbsolutionEnemy = EnemyDatabase.GetOrLoadByGuid(HmAbsolutionGuid); public static AIActor DragunsKnifeEnemy = EnemyDatabase.GetOrLoadByGuid(DragunsKnifeGuid); public static AIActor LordOfTheJammedEnemy = EnemyDatabase.GetOrLoadByGuid(LordOfTheJammedGuid); public static AIActor TombstonerEnemy = EnemyDatabase.GetOrLoadByGuid(TombstonerGuid); public static AIActor MegalichEnemy = EnemyDatabase.GetOrLoadByGuid(MegalichGuid); public static AIActor RedCapedBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(RedCapedBulletKinGuid); public static AIActor InfinilichEnemy = EnemyDatabase.GetOrLoadByGuid(InfinilichGuid); public static AIActor TinyBlobulordEnemy = EnemyDatabase.GetOrLoadByGuid(TinyBlobulordGuid); public static AIActor FasterTutorialTurretEnemy = EnemyDatabase.GetOrLoadByGuid(FasterTutorialTurretGuid); public static AIActor CopEnemy = EnemyDatabase.GetOrLoadByGuid(CopGuid); public static AIActor ChickenEnemy = EnemyDatabase.GetOrLoadByGuid(ChickenGuid); public static AIActor AshenBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(AshenBulletKinGuid); public static AIActor AshenShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(AshenShotgunKinGuid); public static AIActor MutantBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(MutantBulletKinGuid); public static AIActor PigEnemy = EnemyDatabase.GetOrLoadByGuid(PigGuid); public static AIActor PoopulonEnemy = EnemyDatabase.GetOrLoadByGuid(PoopulonGuid); public static AIActor PoopulonsCornEnemy = EnemyDatabase.GetOrLoadByGuid(PoopulonsCornGuid); public static AIActor KingBullatEnemy = EnemyDatabase.GetOrLoadByGuid(KingBullatGuid); public static AIActor SpectralGunNutEnemy = EnemyDatabase.GetOrLoadByGuid(SpectralGunNutGuid); public static AIActor BulletSharkEnemy = EnemyDatabase.GetOrLoadByGuid(BulletSharkGuid); public static AIActor AgonizerEnemy = EnemyDatabase.GetOrLoadByGuid(AgonizerGuid); public static AIActor LeadMaidenEnemy = EnemyDatabase.GetOrLoadByGuid(LeadMaidenGuid); public static AIActor CardinalEnemy = EnemyDatabase.GetOrLoadByGuid(CardinalGuid); public static AIActor ShamblingRoundEnemy = EnemyDatabase.GetOrLoadByGuid(ShamblingRoundGuid); public static AIActor WolfEnemy = EnemyDatabase.GetOrLoadByGuid(WolfGuid); public static AIActor BloodbulonEnemy = EnemyDatabase.GetOrLoadByGuid(BloodbulonGuid); public static AIActor BlackChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(BlackChestMimicGuid); public static AIActor RedChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(RedChestMimicGuid); public static AIActor GunCultistEnemy = EnemyDatabase.GetOrLoadByGuid(GunCultistGuid); public static AIActor RevolvenantEnemy = EnemyDatabase.GetOrLoadByGuid(RevolvenantGuid); public static AIActor GunreaperEnemy = EnemyDatabase.GetOrLoadByGuid(GunreaperGuid); public static AIActor PotFairyEnemy = EnemyDatabase.GetOrLoadByGuid(PotFairyGuid); public static AIActor BlankCompanionEnemy = EnemyDatabase.GetOrLoadByGuid(BlankCompanionGuid); public static AIActor GreatBulletSharkEnemy = EnemyDatabase.GetOrLoadByGuid(GreatBulletSharkGuid); public static AIActor ApprenticeGunjurerEnemy = EnemyDatabase.GetOrLoadByGuid(ApprenticeGunjurerGuid); public static AIActor MutantShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(MutantShotgunKinGuid); public static AIActor KillPillarsEnemy = EnemyDatabase.GetOrLoadByGuid(KillPillarsGuid); public static AIActor HarmlessSnakeEnemy = EnemyDatabase.GetOrLoadByGuid(HarmlessSnakeGuid); public static AIActor LargeSpentEnemy = EnemyDatabase.GetOrLoadByGuid(LargeSpentGuid); public static AIActor OldKingsToadieEnemy = EnemyDatabase.GetOrLoadByGuid(OldKingsToadieGuid); public static AIActor TreadnaughtsTankerEnemy = EnemyDatabase.GetOrLoadByGuid(TreadnaughtsTankerGuid); public static AIActor SerJunkanEnemy = EnemyDatabase.GetOrLoadByGuid(SerJunkanGuid); public static AIActor TestDummyEnemy = EnemyDatabase.GetOrLoadByGuid(TestDummyGuid); public static AIActor MineFlayerEnemy = EnemyDatabase.GetOrLoadByGuid(MineFlayerGuid); public static AIActor MineFlayersBellEnemy = EnemyDatabase.GetOrLoadByGuid(MineFlayersBellGuid); public static AIActor KeyBulletKinEnemy = EnemyDatabase.GetOrLoadByGuid(KeyBulletKinGuid); public static AIActor MineFlayersClaymoreEnemy = EnemyDatabase.GetOrLoadByGuid(MineFlayersClaymoreGuid); public static AIActor RobotsPastHuman1Enemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastHuman1Guid); public static AIActor RobotsPastHuman2Enemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastHuman2Guid); public static AIActor RobotsPastHuman3Enemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastHuman3Guid); public static AIActor RobotsPastHuman4Enemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastHuman4Guid); public static AIActor JammomancerEnemy = EnemyDatabase.GetOrLoadByGuid(JammomancerGuid); public static AIActor ExecutionerEnemy = EnemyDatabase.GetOrLoadByGuid(ExecutionerGuid); public static AIActor NitraEnemy = EnemyDatabase.GetOrLoadByGuid(NitraGuid); public static AIActor KillithidEnemy = EnemyDatabase.GetOrLoadByGuid(KillithidGuid); public static AIActor JamerlengoEnemy = EnemyDatabase.GetOrLoadByGuid(JamerlengoGuid); public static AIActor BombsheeEnemy = EnemyDatabase.GetOrLoadByGuid(BombsheeGuid); public static AIActor LastHumanEnemy = EnemyDatabase.GetOrLoadByGuid(LastHumanGuid); public static AIActor RobotsPastTerminatorEnemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastTerminatorGuid); public static AIActor RobotsPastChickEnemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastChickGuid); public static AIActor RobotsPastRabbitEnemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastRabbitGuid); public static AIActor RobotsPastSquirrelEnemy = EnemyDatabase.GetOrLoadByGuid(RobotsPastSquirrelGuid); public static AIActor ChainGunnerEnemy = EnemyDatabase.GetOrLoadByGuid(ChainGunnerGuid); public static AIActor ChickenCompanionEnemy = EnemyDatabase.GetOrLoadByGuid(ChickenCompanionGuid); public static AIActor ConfirmedEnemy = EnemyDatabase.GetOrLoadByGuid(ConfirmedGuid); public static AIActor AgunimEnemy = EnemyDatabase.GetOrLoadByGuid(AgunimGuid); public static AIActor CannonEnemy = EnemyDatabase.GetOrLoadByGuid(CannonGuid); public static AIActor ShadowMagicianEnemy = EnemyDatabase.GetOrLoadByGuid(ShadowMagicianGuid); public static AIActor AmmocondaBallEnemy = EnemyDatabase.GetOrLoadByGuid(AmmocondaBallGuid); public static AIActor ChanceKinEnemy = EnemyDatabase.GetOrLoadByGuid(ChanceKinGuid); public static AIActor GripMasterEnemy = EnemyDatabase.GetOrLoadByGuid(GripMasterGuid); public static AIActor PhaserSpiderEnemy = EnemyDatabase.GetOrLoadByGuid(PhaserSpiderGuid); public static AIActor WallMimicEnemy = EnemyDatabase.GetOrLoadByGuid(WallMimicGuid); public static AIActor ChancebulonEnemy = EnemyDatabase.GetOrLoadByGuid(ChancebulonGuid); public static AIActor TarnisherEnemy = EnemyDatabase.GetOrLoadByGuid(TarnisherGuid); public static AIActor MisfireBeastEnemy = EnemyDatabase.GetOrLoadByGuid(MisfireBeastGuid); public static AIActor YolkEnemy = EnemyDatabase.GetOrLoadByGuid(YolkGuid); public static AIActor BlocknersGhostEnemy = EnemyDatabase.GetOrLoadByGuid(BlocknersGhostGuid); public static AIActor RatCandleEnemy = EnemyDatabase.GetOrLoadByGuid(RatCandleGuid); public static AIActor RatEnemy = EnemyDatabase.GetOrLoadByGuid(RatGuid); public static AIActor RatChestMimicEnemy = EnemyDatabase.GetOrLoadByGuid(RatChestMimicGuid); public static AIActor PedestalMimicEnemy = EnemyDatabase.GetOrLoadByGuid(PedestalMimicGuid); public static AIActor MouserEnemy = EnemyDatabase.GetOrLoadByGuid(MouserGuid); public static AIActor CandleGuyEnemy = EnemyDatabase.GetOrLoadByGuid(CandleGuyGuid); public static AIActor MetalCubeGuyEnemy = EnemyDatabase.GetOrLoadByGuid(MetalCubeGuyGuid); public static AIActor FusebotEnemy = EnemyDatabase.GetOrLoadByGuid(FusebotGuid); public static AIActor BulletKingsToadieRevengeEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKingsToadieRevengeGuid); public static AIActor PhoenixEnemy = EnemyDatabase.GetOrLoadByGuid(PhoenixGuid); public static AIActor PigSynergyEnemy = EnemyDatabase.GetOrLoadByGuid(PigSynergyGuid); public static AIActor BlankCompanionSynergyEnemy = EnemyDatabase.GetOrLoadByGuid(BlankCompanionSynergyGuid); public static AIActor CopAndroidEnemy = EnemyDatabase.GetOrLoadByGuid(CopAndroidGuid); public static AIActor RaccoonEnemy = EnemyDatabase.GetOrLoadByGuid(RaccoonGuid); public static AIActor DogSynergy1Enemy = EnemyDatabase.GetOrLoadByGuid(DogSynergy1Guid); public static AIActor DogSynergy2Enemy = EnemyDatabase.GetOrLoadByGuid(DogSynergy2Guid); public static AIActor SuperSpaceTurtleSynergyEnemy = EnemyDatabase.GetOrLoadByGuid(SuperSpaceTurtleSynergyGuid); public static AIActor TurtleEnemy = EnemyDatabase.GetOrLoadByGuid(TurtleGuid); public static AIActor PaydayShooter01Enemy = EnemyDatabase.GetOrLoadByGuid(PaydayShooter01Guid); public static AIActor PaydayShooter02Enemy = EnemyDatabase.GetOrLoadByGuid(PaydayShooter02Guid); public static AIActor PaydayShooter03Enemy = EnemyDatabase.GetOrLoadByGuid(PaydayShooter03Guid); public static AIActor TurkeyEnemy = EnemyDatabase.GetOrLoadByGuid(TurkeyGuid); public static AIActor BabyGoodMimicEnemy = EnemyDatabase.GetOrLoadByGuid(BabyGoodMimicGuid); public static AIActor ResourcefulRatEnemy = EnemyDatabase.GetOrLoadByGuid(ResourcefulRatGuid); public static AIActor ResourcefulRatMechEnemy = EnemyDatabase.GetOrLoadByGuid(ResourcefulRatMechGuid); public static AIActor DragunAdvancedEnemy = EnemyDatabase.GetOrLoadByGuid(DragunAdvancedGuid); public static AIActor DragunKnifeAdvancedEnemy = EnemyDatabase.GetOrLoadByGuid(DragunKnifeAdvancedGuid); public static AIActor MusketKinEnemy = EnemyDatabase.GetOrLoadByGuid(MusketKinGuid); public static AIActor BulletKinGalTitanBossEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinGalTitanBossGuid); public static AIActor BulletKinTitanBossEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinTitanBossGuid); public static AIActor BulletKinTitanEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinTitanGuid); public static AIActor BulletKinPirateEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinPirateGuid); public static AIActor BulletKinFishEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinFishGuid); public static AIActor BulletKinFishBlueEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinFishBlueGuid); public static AIActor BulletKinBroccoliEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinBroccoliGuid); public static AIActor BulletKinKnightEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinKnightGuid); public static AIActor BulletKinKaliberEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinKaliberGuid); public static AIActor BulletKinCandleEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinCandleGuid); public static AIActor BulletKinCowboyEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinCowboyGuid); public static AIActor BulletKinOfficetieEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinOfficetieGuid); public static AIActor BulletKinOfficesuitEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinOfficesuitGuid); public static AIActor BulletKinMechEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinMechGuid); public static AIActor BulletKinVestEnemy = EnemyDatabase.GetOrLoadByGuid(BulletKinVestGuid); public static AIActor NitraFirecrackerEnemy = EnemyDatabase.GetOrLoadByGuid(NitraFirecrackerGuid); public static AIActor CylinderEnemy = EnemyDatabase.GetOrLoadByGuid(CylinderGuid); public static AIActor CylinderRedEnemy = EnemyDatabase.GetOrLoadByGuid(CylinderRedGuid); public static AIActor ChameleonEnemy = EnemyDatabase.GetOrLoadByGuid(ChameleonGuid); public static AIActor BullatGargoyleEnemy = EnemyDatabase.GetOrLoadByGuid(BullatGargoyleGuid); public static AIActor SnakeEnemy = EnemyDatabase.GetOrLoadByGuid(SnakeGuid); public static AIActor AgunimHelicopterEnemy = EnemyDatabase.GetOrLoadByGuid(AgunimHelicopterGuid); public static AIActor CactusKinEnemy = EnemyDatabase.GetOrLoadByGuid(CactusKinGuid); public static AIActor ParrotEnemy = EnemyDatabase.GetOrLoadByGuid(ParrotGuid); public static AIActor TabletBooklletEnemy = EnemyDatabase.GetOrLoadByGuid(TabletBooklletGuid); public static AIActor NecronomiconBooklletEnemy = EnemyDatabase.GetOrLoadByGuid(NecronomiconBooklletGuid); public static AIActor CowboyShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(CowboyShotgunKinGuid); public static AIActor PirateShotgunKinEnemy = EnemyDatabase.GetOrLoadByGuid(PirateShotgunKinGuid); public static AIActor FridgeMaidenEnemy = EnemyDatabase.GetOrLoadByGuid(FridgeMaidenGuid); public static AIActor BabyGoodShelletonEnemy = EnemyDatabase.GetOrLoadByGuid(BabyGoodShelletonGuid); } public static class GlobalItemDatabase { public static readonly int MagicLampId = 0; public static readonly int WinchesterId = 1; public static readonly int ThompsonId = 2; public static readonly int ScreecherId = 3; public static readonly int StickyCrossbowId = 4; public static readonly int AwpId = 5; public static readonly int ZorgunId = 6; public static readonly int BarrelId = 7; public static readonly int BowId = 8; public static readonly int DuelingPistolId = 9; public static readonly int MegaDouserId = 10; public static readonly int CrossbowId = 12; public static readonly int ThunderclapId = 13; public static readonly int BeeHiveId = 14; public static readonly int Ak47Id = 15; public static readonly int YariLauncherId = 16; public static readonly int HeckBlasterId = 17; public static readonly int BlooperId = 18; public static readonly int GrenadeLauncherId = 19; public static readonly int MoonscraperId = 20; public static readonly int BsgId = 21; public static readonly int ShadesRevolverId = 22; public static readonly int DungeonEagleId = 23; public static readonly int DartGunId = 24; public static readonly int M1Id = 25; public static readonly int NailGunId = 26; public static readonly int LightGunId = 27; public static readonly int MailboxId = 28; public static readonly int Vertebraek47Id = 29; public static readonly int M1911Id = 30; public static readonly int KlobbeId = 31; public static readonly int VoidMarshalId = 32; public static readonly int TearJerkerId = 33; public static readonly int SmileysRevolverId = 35; public static readonly int MegahandId = 36; public static readonly int SeriousCannonId = 37; public static readonly int MagnumId = 38; public static readonly int RpgId = 39; public static readonly int FreezeRayId = 40; public static readonly int HeroineId = 41; public static readonly int TrankGunId = 42; public static readonly int MachinePistolId = 43; public static readonly int SkullSpitterId = 45; public static readonly int JolterId = 47; public static readonly int SniperRifleId = 49; public static readonly int SaaId = 50; public static readonly int RegularShotgunId = 51; public static readonly int CrescentCrossbowId = 52; public static readonly int AuGunId = 53; public static readonly int LaserRifleId = 54; public static readonly int VoidShotgunId = 55; public static readonly int ThirtyEightSpecialId = 56; public static readonly int AlienSidearmId = 57; public static readonly int VoidCoreAssaultRifleId = 58; public static readonly int HegemonyRifleId = 59; public static readonly int DemonHeadId = 60; public static readonly int BundleOfWandsId = 61; public static readonly int Colt1851Id = 62; public static readonly int MedkitId = 63; public static readonly int PotionOfLeadSkinId = 64; public static readonly int KnifeShieldId = 65; public static readonly int ProximityMineId = 66; public static readonly int KeyId = 67; public static readonly int CasingId = 68; public static readonly int BulletTimeId = 69; public static readonly int SilverCasingId = 70; public static readonly int DecoyId = 71; public static readonly int BubbleShieldId = 72; public static readonly int HalfHeartId = 73; public static readonly int GoldCasingId = 74; public static readonly int EyeJewelId = 76; public static readonly int SupplyDropId = 77; public static readonly int AmmoId = 78; public static readonly int MakarovId = 79; public static readonly int BudgetRevolverId = 80; public static readonly int Deck4rdId = 81; public static readonly int ElephantGunId = 82; public static readonly int UnfinishedGunId = 83; public static readonly int VulcanCannonId = 84; public static readonly int HeartId = 85; public static readonly int MarineSidearmId = 86; public static readonly int GammaRayId = 87; public static readonly int RobotsRightHandId = 88; public static readonly int RogueSpecialId = 89; public static readonly int EyeOfTheBeholsterId = 90; public static readonly int H4mmerId = 91; public static readonly int StingerId = 92; public static readonly int OldGoldieId = 93; public static readonly int Mac10Id = 94; public static readonly int Akey47Id = 95; public static readonly int M16Id = 96; public static readonly int PolarisId = 97; public static readonly int PatriotId = 98; public static readonly int RustySidearmId = 99; public static readonly int UnicornHornId = 100; public static readonly int ScopeId = 102; public static readonly int RationId = 104; public static readonly int FortunesFavorId = 105; public static readonly int JetpackId = 106; public static readonly int RaidenCoilId = 107; public static readonly int BombId = 108; public static readonly int IceBombId = 109; public static readonly int MagicSweetId = 110; public static readonly int HeavyBulletsId = 111; public static readonly int CartographersRingId = 112; public static readonly int RocketPoweredBulletsId = 113; public static readonly int BionicLegId = 114; public static readonly int BallotId = 115; public static readonly int AmmoSynthesizerId = 116; public static readonly int EyepatchId = 118; public static readonly int MetronomeId = 119; public static readonly int ArmorId = 120; public static readonly int DisintegratorId = 121; public static readonly int BlunderbussId = 122; public static readonly int PulseCannonId = 123; public static readonly int CactusId = 124; public static readonly int FlameHandId = 125; public static readonly int ShotbowId = 126; public static readonly int JunkId = 127; public static readonly int RubeAdyneMk2Id = 128; public static readonly int Com4nd0Id = 129; public static readonly int GlacierId = 130; public static readonly int UtilityBeltId = 131; public static readonly int RingOfMiserlyProtectionId = 132; public static readonly int BackpackId = 133; public static readonly int AmmoBeltId = 134; public static readonly int CogOfBattleId = 135; public static readonly int C4Id = 136; public static readonly int MapId = 137; public static readonly int HoneycombId = 138; public static readonly int MasterOfUnlockingId = 140; public static readonly int RubeAdynePrototypeId = 142; public static readonly int ShotgunFullOfHateId = 143; public static readonly int WitchPistolId = 145; public static readonly int DragunfireId = 146; public static readonly int PlaceableKeyId = 147; public static readonly int LiesId = 148; public static readonly int FaceMelterId = 149; public static readonly int TShirtCannonId = 150; public static readonly int TheMembraneId = 151; public static readonly int TheKilnId = 152; public static readonly int ShockRifleId = 153; public static readonly int TrashcannonId = 154; public static readonly int SingularityId = 155; public static readonly int LaserLotusId = 156; public static readonly int BigIronId = 157; public static readonly int AmuletOfThePitLordId = 158; public static readonly int GundromedaStrainId = 159; public static readonly int GunknightHelmetId = 160; public static readonly int GunknightGreavesId = 161; public static readonly int GunknightGauntletId = 162; public static readonly int GunknightArmorId = 163; public static readonly int HeartSynthesizerId = 164; public static readonly int OiledCylinderId = 165; public static readonly int ShelletonKeyId = 166; public static readonly int BloodyEyeId = 167; public static readonly int DoubleVisionId = 168; public static readonly int BlackHoleGunId = 169; public static readonly int IceCubeId = 170; public static readonly int GhostBulletsId = 172; public static readonly int PileOfSoulsId = 173; public static readonly int PotionOfGunFriendshipId = 174; public static readonly int TanglerId = 175; public static readonly int GungeonAntId = 176; public static readonly int AlienEngineId = 177; public static readonly int CrestfallerId = 178; public static readonly int ProtonBackpackId = 179; public static readonly int GrasschopperId = 180; public static readonly int WinchesterRifleId = 181; public static readonly int GreyMauserId = 182; public static readonly int SerManuelsRevolverId = 183; public static readonly int TheJudgeId = 184; public static readonly int MachineFistId = 186; public static readonly int DisarmingPersonalityId = 187; public static readonly int RollingEyeId = 190; public static readonly int RingOfFireResistanceId = 191; public static readonly int BugBootsId = 193; public static readonly int FossilizedGunId = 196; public static readonly int PeaShooterId = 197; public static readonly int GunslingersAshesId = 198; public static readonly int LuxinCannonId = 199; public static readonly int CharmedBowId = 200; public static readonly int PortableTurretId = 201; public static readonly int SawedOffId = 202; public static readonly int CigarettesId = 203; public static readonly int IrradiatedLeadId = 204; public static readonly int PoisonVialId = 205; public static readonly int CharmHornId = 206; public static readonly int PlaguePistolId = 207; public static readonly int PlungerId = 208; public static readonly int SenseOfDirectionId = 209; public static readonly int GunbowId = 210; public static readonly int BallisticBootsId = 212; public static readonly int LichyTriggerFingerId = 213; public static readonly int CoinCrownId = 214; public static readonly int BoxId = 216; public static readonly int OldKnightsShieldId = 219; public static readonly int TutorialAk47Id = 221; public static readonly int OldKnightsHelmId = 222; public static readonly int Cold45Id = 223; public static readonly int BlankId = 224; public static readonly int IceBreakerId = 225; public static readonly int WristbowId = 227; public static readonly int ParticulatorId = 228; public static readonly int HegemonyCarbineId = 229; public static readonly int HelixId = 230; public static readonly int GildedHydraId = 231; public static readonly int SpaceFriendId = 232; public static readonly int IbombCompanionAppId = 234; public static readonly int AgedBellId = 237; public static readonly int DuctTapeId = 239; public static readonly int CrutchId = 240; public static readonly int ScattershotId = 241; public static readonly int NapalmStrikeId = 242; public static readonly int InfuriatingNote1Id = 243; public static readonly int InfuriatingNote2Id = 244; public static readonly int InfuriatingNote3Id = 245; public static readonly int InfuriatingNote4Id = 246; public static readonly int InfuriatingNote5Id = 247; public static readonly int InfuriatingNote6Id = 248; public static readonly int OwlId = 249; public static readonly int GrapplingHookId = 250; public static readonly int PrizePistolId = 251; public static readonly int AirStrikeId = 252; public static readonly int GungeonPepperId = 253; public static readonly int RingOfChestFriendshipId = 254; public static readonly int AncientHerosBandanaId = 255; public static readonly int HeavyBootsId = 256; public static readonly int BroccoliId = 258; public static readonly int AntibodyId = 259; public static readonly int PinkGuonStoneId = 260; public static readonly int WhiteGuonStoneId = 262; public static readonly int OrangeGuonStoneId = 263; public static readonly int ClearGuonStoneId = 264; public static readonly int OldKnightsFlaskId = 267; public static readonly int RedGuonStoneId = 269; public static readonly int BlueGuonStoneId = 270; public static readonly int RiddleOfLeadId = 271; public static readonly int IronCoinId = 272; public static readonly int LaserSightId = 273; public static readonly int DarkMarkerId = 274; public static readonly int FlareGunId = 275; public static readonly int SpiceId = 276; public static readonly int FatBulletsId = 277; public static readonly int FrostBulletsId = 278; public static readonly int SuperHotWatchId = 279; public static readonly int DrumClipId = 280; public static readonly int GungeonBlueprintId = 281; public static readonly int HomingBulletsId = 284; public static readonly int BloodBroochId = 285; public static readonly int Plus1BulletsId = 286; public static readonly int BackupGunId = 287; public static readonly int BouncyBulletsId = 288; public static readonly int SevenLeafCloverId = 289; public static readonly int SunglassesId = 290; public static readonly int MeatbunId = 291; public static readonly int MolotovLauncherId = 292; public static readonly int MimicToothNecklaceId = 293; public static readonly int RingOfMimicFriendshipId = 294; public static readonly int HotLeadId = 295; public static readonly int MetashopBreachItemOldId = 296; public static readonly int HegemonyCreditId = 297; public static readonly int ShockRoundsId = 298; public static readonly int SuperSpaceTurtlesGunId = 299; public static readonly int DogId = 300; public static readonly int SuperSpaceTurtleId = 301; public static readonly int BulletThatCanKillThePastId = 303; public static readonly int ExplosiveRoundsId = 304; public static readonly int OldCrestId = 305; public static readonly int EscapeRopeId = 306; public static readonly int WaxWingsId = 307; public static readonly int ClusterMineId = 308; public static readonly int CloranthyRingId = 309; public static readonly int FairyWingsId = 310; public static readonly int CloneId = 311; public static readonly int BlastHelmetId = 312; public static readonly int MonsterBloodId = 313; public static readonly int NanomachinesId = 314; public static readonly int GunbootsId = 315; public static readonly int GnawedKeyId = 316; public static readonly int R2g2Id = 318; public static readonly int TicketId = 320; public static readonly int GoldAmmoletId = 321; public static readonly int LodestoneAmmoletId = 322; public static readonly int AngryBulletsId = 323; public static readonly int ChaosAmmoletId = 325; public static readonly int Number2Id = 326; public static readonly int CorsairId = 327; public static readonly int ChargeShotId = 328; public static readonly int ZillaShotgunId = 329; public static readonly int TheEmperorId = 330; public static readonly int ScienceCannonId = 331; public static readonly int LilBomberId = 332; public static readonly int MutationId = 333; public static readonly int WindUpGunId = 334; public static readonly int SilencerId = 335; public static readonly int PitchforkId = 336; public static readonly int CompositeGunId = 337; public static readonly int GuntherId = 338; public static readonly int MahogunyId = 339; public static readonly int LowerCaseRId = 340; public static readonly int BuzzkillId = 341; public static readonly int UraniumAmmoletId = 342; public static readonly int CopperAmmoletId = 343; public static readonly int FrostAmmoletId = 344; public static readonly int FightsabreId = 345; public static readonly int HuntsmanId = 346; public static readonly int ShotgrubId = 347; public static readonly int PrimePrimerId = 348; public static readonly int PlanarLeadId = 349; public static readonly int ObsidianShellCasingId = 350; public static readonly int ArcaneGunpowderId = 351; public static readonly int ShadowBulletsId = 352; public static readonly int EnragingPhotoId = 353; public static readonly int MilitaryTrainingId = 354; public static readonly int ChromesteelAssaultRifleId = 355; public static readonly int TrustyLockpicksId = 356; public static readonly int CatClawId = 357; public static readonly int RailgunId = 358; public static readonly int CompressedAirTankId = 359; public static readonly int SnakemakerId = 360; public static readonly int BulletBoreId = 362; public static readonly int TrickGunId = 363; public static readonly int HeartOfIceId = 364; public static readonly int MassShotgunId = 365; public static readonly int MolotovId = 366; public static readonly int HuntersJournalId = 367; public static readonly int ElTigreId = 368; public static readonly int BaitLauncherId = 369; public static readonly int PrototypeRailgunId = 370; public static readonly int RcRocketId = 372; public static readonly int AlphaBulletsId = 373; public static readonly int OmegaBulletsId = 374; public static readonly int EasyReloadBulletsId = 375; public static readonly int BrickBreakerId = 376; public static readonly int ExcaliberId = 377; public static readonly int DerringerId = 378; public static readonly int ShotgunFullOfLoveId = 379; public static readonly int BetrayersShieldId = 380; public static readonly int TripleCrossbowId = 381; public static readonly int SlingId = 382; public static readonly int FlashRayId = 383; public static readonly int PhoenixId = 384; public static readonly int HexagunId = 385; public static readonly int FrostGiantId = 387; public static readonly int CobaltHammerId = 390; public static readonly int CellKeyId = 392; public static readonly int AnvillainId = 393; public static readonly int MineCutterId = 394; public static readonly int StaffOfFirepowerId = 395; public static readonly int TableTechSightId = 396; public static readonly int TableTechMoneyId = 397; public static readonly int TableTechRocketId = 398; public static readonly int TableTechRageId = 399; public static readonly int TableTechBlanksId = 400; public static readonly int GungineId = 401; public static readonly int SnowballerId = 402; public static readonly int MeltedRockId = 403; public static readonly int SirenId = 404; public static readonly int RattlerId = 406; public static readonly int SixthChamberId = 407; public static readonly int BustedTelevisionId = 409; public static readonly int BatteryBulletsId = 410; public static readonly int CoolantLeakId = 411; public static readonly int FriendshipCookieId = 412; public static readonly int HerosSwordId = 413; public static readonly int LiveAmmoId = 414; public static readonly int ReplacementArmId = 415; public static readonly int BalloonId = 416; public static readonly int BlasphemyId = 417; public static readonly int TrorcBreachItemId = 418; public static readonly int HeartHolsterId = 421; public static readonly int HeartLunchboxId = 422; public static readonly int HeartLocketId = 423; public static readonly int HeartBottleId = 424; public static readonly int HeartPurseId = 425; public static readonly int ShotgaColaId = 426; public static readonly int ShotgunCoffeeId = 427; public static readonly int GooptonBreachItemId = 429; public static readonly int LiquidValkyrieId = 431; public static readonly int JarOfBeesId = 432; public static readonly int StuffedStarId = 433; public static readonly int BulletIdolId = 434; public static readonly int MustacheId = 435; public static readonly int BloodiedScarfId = 436; public static readonly int MuscleRelaxantId = 437; public static readonly int ExplosiveDecoyId = 438; public static readonly int BracketKeyId = 439; public static readonly int RubyBraceletId = 440; public static readonly int EmeraldBraceletId = 441; public static readonly int BadgeId = 442; public static readonly int BigBoyId = 443; public static readonly int TridentId = 444; public static readonly int TheScramblerId = 445; public static readonly int ShieldOfTheMaidenId = 447; public static readonly int BoomerangId = 448; public static readonly int TeleporterPrototypeId = 449; public static readonly int ArmorSynthesizerId = 450; public static readonly int PigId = 451; public static readonly int SpongeId = 452; public static readonly int GasMaskId = 453; public static readonly int HazmatSuitId = 454; public static readonly int RingOfTriggersId = 456; public static readonly int ArmorOfThornsId = 457; public static readonly int RingOfEtherealFormId = 458; public static readonly int ChaffGrenadeId = 460; public static readonly int BlankCompanionsRingId = 461; public static readonly int SmokeBombId = 462; public static readonly int RingOfTheResourcefulRatId = 463; public static readonly int ShellegunId = 464; public static readonly int TableTechStunId = 465; public static readonly int GreenGuonStoneId = 466; public static readonly int MasterRound5Id = 467; public static readonly int MasterRound3Id = 468; public static readonly int MasterRound1Id = 469; public static readonly int MasterRound4Id = 470; public static readonly int MasterRound2Id = 471; public static readonly int GummyGunId = 472; public static readonly int HiddenCompartmentId = 473; public static readonly int AbyssalTentacleId = 474; public static readonly int QuadLaserId = 475; public static readonly int MicrotransactionGunId = 476; public static readonly int OriguniId = 477; public static readonly int BananaId = 478; public static readonly int SuperMeatGunId = 479; public static readonly int MakeshiftCannonId = 480; public static readonly int CameraId = 481; public static readonly int GunzhengId = 482; public static readonly int TetrominatorId = 483; public static readonly int DevolverId = 484; public static readonly int OrangeId = 485; public static readonly int TreadnaughtCannonId = 486; public static readonly int BookOfChestAnatomyId = 487; public static readonly int RingOfChestVampirismId = 488; public static readonly int GunSoulId = 489; public static readonly int BrickOfCashId = 490; public static readonly int WingmanId = 491; public static readonly int WolfId = 492; public static readonly int BriefcaseOfCashId = 493; public static readonly int GalacticMedalOfValorId = 494; public static readonly int UnityId = 495; public static readonly int MetashopBreachItemGunId = 497; public static readonly int ElderBlankId = 499; public static readonly int HipHolsterId = 500; public static readonly int MetashopBreachItemItemId = 501; public static readonly int PilotsPastRocketsId = 502; public static readonly int BulletId = 503; public static readonly int HyperLightBlasterId = 504; public static readonly int WickedSisterSynergyId = 505; public static readonly int ReallySpecialLuteId = 506; public static readonly int StarpewId = 507; public static readonly int DuelingLaserId = 508; public static readonly int Jk47Id = 510; public static readonly int ThirdPartyControllerId = 511; public static readonly int ShellId = 512; public static readonly int PoxcannonId = 513; public static readonly int DirectionalPadId = 514; public static readonly int MourningStarId = 515; public static readonly int TripleGunId = 516; public static readonly int TripleGunForm2Id = 517; public static readonly int TripleGunForm3Id = 518; public static readonly int CombinedRifleId = 519; public static readonly int BalloonGunId = 520; public static readonly int ChanceBulletsId = 521; public static readonly int StoutBulletsId = 523; public static readonly int Bloody9MmId = 524; public static readonly int LamentConfigurumId = 525; public static readonly int SpringheelBootsId = 526; public static readonly int CharmingRoundsId = 527; public static readonly int ZombieBulletsId = 528; public static readonly int BattleStandardId = 529; public static readonly int RemoteBulletsId = 530; public static readonly int FlakBulletsId = 531; public static readonly int GildedBulletsId = 532; public static readonly int MagicBulletsId = 533; public static readonly int RealCoolBowId = 535; public static readonly int RelodestoneId = 536; public static readonly int VorpalGunId = 537; public static readonly int SilverBulletsId = 538; public static readonly int BoxingGloveId = 539; public static readonly int GlassCannonId = 540; public static readonly int CaseyId = 541; public static readonly int StrafeGunId = 542; public static readonly int ThePredatorId = 543; public static readonly int Ac15UnarmoredId = 544; public static readonly int Ac15Id = 545; public static readonly int WindgunnerId = 546; public static readonly int KnightsGunId = 550; public static readonly int CrownOfGunsId = 551; public static readonly int BottleId = 558; public static readonly int TheFatLineId = 562; public static readonly int TheExoticId = 563; public static readonly int FullMetalJacketId = 564; public static readonly int GlassGuonStoneId = 565; public static readonly int RadGunId = 566; public static readonly int RollBombId = 567; public static readonly int HelixBulletsId = 568; public static readonly int ChaosBulletsId = 569; public static readonly int YellowChamberId = 570; public static readonly int CursedBulletsId = 571; public static readonly int ChickenFluteId = 572; public static readonly int ChestTeleporterId = 573; public static readonly int WoodenBlasphemyId = 574; public static readonly int DougBreachItemId = 575; public static readonly int RobotsLeftHandId = 576; public static readonly int TurboGunId = 577; public static readonly int SprunId = 578; public static readonly int BlankBulletsId = 579; public static readonly int JunkanId = 580; public static readonly int VoidCoreCannonId = 593; public static readonly int AlasSniperionSynergyId = 594; public static readonly int LifeOrbId = 595; public static readonly int TeapotId = 596; public static readonly int MrAccretionJrId = 597; public static readonly int StoneDomeId = 598; public static readonly int BubbleBlasterId = 599; public static readonly int SpreadAmmoId = 600; public static readonly int BigShotgunId = 601; public static readonly int GunnerId = 602; public static readonly int LameyGunId = 603; public static readonly int SlingerId = 604; public static readonly int LootBagId = 605; public static readonly int ClownMaskId = 607; public static readonly int NeoTechYoSynergyId = 608; public static readonly int RubensteinsMonsterId = 609; public static readonly int WoodBeamId = 610; public static readonly int IslandFormeSynergyId = 611; public static readonly int WaveBeamSynergyId = 612; public static readonly int IceBeamSynergyId = 613; public static readonly int PlasmaBeamSynergyId = 614; public static readonly int HyberBeamSynergyId = 615; public static readonly int CarefulIterationSynergyId = 616; public static readonly int QuickBoomerangSynergyId = 617; public static readonly int TimeStopperSynergyId = 618; public static readonly int MetalBladeSynergyId = 619; public static readonly int LeafShieldSynergyId = 620; public static readonly int AtomicFireSynergyId = 621; public static readonly int BubbleLeadSynergyId = 622; public static readonly int AirShooterSynergyId = 623; public static readonly int CrashBomberSynergyId = 624; public static readonly int DrillId = 625; public static readonly int ElimentalerId = 626; public static readonly int PlatinumBulletsId = 627; public static readonly int BumbulletsId = 630; public static readonly int HoleyGrailId = 631; public static readonly int TurkeyId = 632; public static readonly int TableTechShotgunId = 633; public static readonly int CrisisStoneId = 634; public static readonly int SnowballetsId = 636; public static readonly int WeirdEggId = 637; public static readonly int DevolverRoundsId = 638; public static readonly int VorpalBulletsId = 640; public static readonly int GoldJunkId = 641; public static readonly int DarumaId = 643; public static readonly int PortableTableDeviceId = 644; public static readonly int TurtleProblemId = 645; public static readonly int ChamberGunId = 647; public static readonly int FullCircleSynergyId = 648; public static readonly int UppercaseRId = 649; public static readonly int PaydayWinchesterId = 650; public static readonly int RogueSpecialAltId = 651; public static readonly int BudgetRevolverAltId = 652; public static readonly int GunPieceId = 654; public static readonly int HungryBulletsId = 655; public static readonly int KrullerGlaiveId = 656; public static readonly int ChamberGunOublietteId = 657; public static readonly int ChamberGunForgeId = 658; public static readonly int ChamberGunHollowId = 659; public static readonly int ChamberGunProperId = 660; public static readonly int OrbitalBulletsId = 661; public static readonly int PartiallyEatenCheeseId = 662; public static readonly int ResourcefulSackId = 663; public static readonly int BabyGoodMimicId = 664; public static readonly int MachoBraceId = 665; public static readonly int TableTechHeatId = 666; public static readonly int RatBootsId = 667; public static readonly int EnemyElimentalerId = 668; public static readonly int HighDragunfireId = 670; public static readonly int BetaRaySynergyId = 671; public static readonly int TheElephantInTheRoomSynergyId = 672; public static readonly int PistolMachineSynergyId = 673; public static readonly int PeaCannonSynergyId = 674; public static readonly int DualingPistolSynergyId = 675; public static readonly int LaserLightShowSynergyId = 676; public static readonly int KalibreathSynergyId = 677; public static readonly int BlunderbraceSynergyId = 678; public static readonly int SnowballShotgunSynergyId = 679; public static readonly int ArmoredCorpsSynergyId = 680; public static readonly int DetectiveModeSynergyId = 681; public static readonly int PandemicPistolSynergyId = 682; public static readonly int AlistairsLadderSynergyId = 683; public static readonly int M1MultiToolSynergyId = 684; public static readonly int FutureGangsterSynergyId = 685; public static readonly int BlackFlagSynergyId = 686; public static readonly int FiveOclockSomewhereSynergyId = 687; public static readonly int FruitsAndVegetablesSynergyId = 688; public static readonly int KalibersGripSynergyId = 689; public static readonly int KlobberingTimeSynergyId = 690; public static readonly int SpecialReserveSynergyId = 691; public static readonly int NailedItSynergyId = 692; public static readonly int ShowAcrossTheBowSynergyId = 693; public static readonly int IronSlugSynergyId = 694; public static readonly int HardLightSynergyId = 695; public static readonly int ChiefMasterSynergyId = 696; public static readonly int BatteryPoweredSynergyId = 697; public static readonly int MaximizeSpellSynergyId = 698; public static readonly int HegemonySpecialForcesSynergyId = 699; public static readonly int CactusFlowerSynergyId = 700; public static readonly int NoxinCannonSynergyId = 701; public static readonly int AlternativeRockSynergyId = 702; public static readonly int ApiarySynergyId = 703; public static readonly int RecyclingBinSynergyId = 704; public static readonly int SaviorOfTheUniverseSynergyId = 705; public static readonly int FiringWithFlairSynergyId = 706; public static readonly int NotQuiteAsMiniSynergyId = 707; public static readonly int DoubleDoubleHelixSynergyId = 708; public static readonly int LikeShootingFishSynergyId = 709; public static readonly int IceCapSynergyId = 710; public static readonly int PeripheralVisionSynergyId = 711; public static readonly int RaidenSynergyId = 712; public static readonly int DoubleMoon7SynergyId = 713; public static readonly int LotusBloomSynergyId = 714; public static readonly int HammerAndNailSynergyId = 715; public static readonly int ArcticWarfareSynergyId = 716; public static readonly int CerebralBrosSynergyId = 717; public static readonly int SquareBraceSynergyId = 718; public static readonly int KingBomberSynergyId = 719; public static readonly int ElectronPackSynergyId = 720; public static readonly int HeavyJoltSynergyId = 721; public static readonly int PitchPerfectSynergyId = 722; public static readonly int CommammoBeltSynergyId = 723; public static readonly int RubyCarbineSynergyId = 724; public static readonly int TearJerkerUnknownSynergyId = 725; public static readonly int AkeyBreakySynergyId = 726; public static readonly int RatKeyId = 727; public static readonly int GunderfuryLv50Id = 728; public static readonly int GunderfuryLv60Id = 729; public static readonly int GunderfuryLv40Id = 730; public static readonly int GunderfuryLv30Id = 731; public static readonly int GunderfuryId = 732; public static readonly int GunderfuryLv20Id = 733; public static readonly int MimicGunId = 734; public static readonly int SerpentId = 735; public static readonly int PhoenixUpSynergyId = 736; public static readonly int BetrayersLiesSynergyId = 737; public static readonly int LowerCaseRUnknownSynergyId = 738; public static readonly int GreatQueenAntSynergyId = 739; public static readonly int NotSoSawedOffSynergyId = 740; public static readonly int WrathOfTheBlamSynergyId = 741; public static readonly int ContrailSynergyId = 742; public static readonly int KungFuHippieRappinSurferSynergyId = 743; public static readonly int ParchmentalSynergyId = 744; public static readonly int GunderlordSynergyId = 745; public static readonly int TurtineGunId = 747; public static readonly int SunlightJavelinId = 748; public static readonly int SecondAccidentSynergyId = 749; public static readonly int DontHootTheMessengerSynergyId = 750; public static readonly int BigGunId = 751; public static readonly int WestbroNomesRevolverId = 752; public static readonly int WestbroTucosRevolverId = 753; public static readonly int WestbroAngelsRevolverId = 754; public static readonly int EvolverId = 755; public static readonly int EvolverSpongeId = 756; public static readonly int EvolverFlatwormId = 757; public static readonly int EvolverSnailId = 758; public static readonly int EvolverFrogId = 759; public static readonly int EvolverDragonId = 760; public static readonly int HighKaliberId = 761; public static readonly int FinishedGunId = 762; public static readonly int ChamberGunHellId = 763; public static readonly int ChamberGunAbbeyId = 806; public static readonly int ChamberGunMinesId = 807; public static readonly int ChamberGunRatLairId = 808; public static readonly int MarineSidearmAltId = 809; public static readonly int RustySidearmAltId = 810; public static readonly int DartGunAltId = 811; public static readonly int RobotsRightHandAltId = 812; public static readonly int BlasphemyAltId = 813; public static readonly int MagazineRackId = 814; public static readonly int LichsEyeBulletsId = 815; public static readonly int INeedScissors61SynergyId = 816; public static readonly int CatBulletKingThroneId = 817; public static readonly int BabyGoodShelletonId = 818; public static readonly int MaxPaneSynergyId = 819; public static readonly int ShadowCloneId = 820; public static readonly int ScouterId = 821; public static readonly int KatanaBulletsId = 822; public static readonly int ChamberGunRngId = 823; public static Gun MagicLampObject; public static Gun WinchesterObject; public static Gun ThompsonObject; public static Gun ScreecherObject; public static Gun StickyCrossbowObject; public static Gun AwpObject; public static Gun ZorgunObject; public static Gun BarrelObject; public static Gun BowObject; public static Gun DuelingPistolObject; public static Gun MegaDouserObject; public static Gun CrossbowObject; public static Gun ThunderclapObject; public static Gun BeeHiveObject; public static Gun Ak47Object; public static Gun YariLauncherObject; public static Gun HeckBlasterObject; public static Gun BlooperObject; public static Gun GrenadeLauncherObject; public static Gun MoonscraperObject; public static Gun BsgObject; public static Gun ShadesRevolverObject; public static Gun DungeonEagleObject; public static Gun DartGunObject; public static Gun M1Object; public static Gun NailGunObject; public static Gun LightGunObject; public static Gun MailboxObject; public static Gun Vertebraek47Object; public static Gun M1911Object; public static Gun KlobbeObject; public static Gun VoidMarshalObject; public static Gun TearJerkerObject; public static Gun SmileysRevolverObject; public static Gun MegahandObject; public static Gun SeriousCannonObject; public static Gun MagnumObject; public static Gun RpgObject; public static Gun FreezeRayObject; public static Gun HeroineObject; public static Gun TrankGunObject; public static Gun MachinePistolObject; public static Gun SkullSpitterObject; public static Gun JolterObject; public static Gun SniperRifleObject; public static Gun SaaObject; public static Gun RegularShotgunObject; public static Gun CrescentCrossbowObject; public static Gun AuGunObject; public static Gun LaserRifleObject; public static Gun VoidShotgunObject; public static Gun ThirtyEightSpecialObject; public static Gun AlienSidearmObject; public static Gun VoidCoreAssaultRifleObject; public static Gun HegemonyRifleObject; public static Gun DemonHeadObject; public static Gun BundleOfWandsObject; public static Gun Colt1851Object; public static HealPlayerItem MedkitObject; public static ReflectShieldPlayerItem PotionOfLeadSkinObject; public static KnifeShieldItem KnifeShieldObject; public static SpawnObjectPlayerItem ProximityMineObject; public static KeyBulletPickup KeyObject; public static CurrencyPickup CasingObject; public static TimeSlowPlayerItem BulletTimeObject; public static CurrencyPickup SilverCasingObject; public static SpawnObjectPlayerItem DecoyObject; public static ReflectShieldPlayerItem BubbleShieldObject; public static HealthPickup HalfHeartObject; public static CurrencyPickup GoldCasingObject; public static SimplePuzzleItem EyeJewelObject; public static SupplyDropItem SupplyDropObject; public static AmmoPickup AmmoObject; public static Gun MakarovObject; public static Gun BudgetRevolverObject; public static Gun Deck4rdObject; public static Gun ElephantGunObject; public static Gun UnfinishedGunObject; public static Gun VulcanCannonObject; public static HealthPickup HeartObject; public static Gun MarineSidearmObject; public static Gun GammaRayObject; public static Gun RobotsRightHandObject; public static Gun RogueSpecialObject; public static Gun EyeOfTheBeholsterObject; public static Gun H4mmerObject; public static Gun StingerObject; public static Gun OldGoldieObject; public static Gun Mac10Object; public static Gun Akey47Object; public static Gun M16Object; public static Gun PolarisObject; public static Gun PatriotObject; public static Gun RustySidearmObject; public static Gun UnicornHornObject; public static BasicStatPickup ScopeObject; public static RationItem RationObject; public static FortuneFavorItem FortunesFavorObject; public static JetpackItem JetpackObject; public static Gun RaidenCoilObject; public static SpawnObjectPlayerItem BombObject; public static SpawnObjectPlayerItem IceBombObject; public static BasicStatPickup MagicSweetObject; public static BasicStatPickup HeavyBulletsObject; public static CartographersRingItem CartographersRingObject; public static BasicStatPickup RocketPoweredBulletsObject; public static BasicStatPickup BionicLegObject; public static BasicStatPickup BallotObject; public static OnKillEnemyItem AmmoSynthesizerObject; public static BasicStatPickup EyepatchObject; public static MetronomeItem MetronomeObject; public static HealthPickup ArmorObject; public static Gun DisintegratorObject; public static Gun BlunderbussObject; public static Gun PulseCannonObject; public static Gun CactusObject; public static Gun FlameHandObject; public static Gun ShotbowObject; public static BasicStatPickup JunkObject; public static Gun RubeAdyneMk2Object; public static Gun Com4nd0Object; public static Gun GlacierObject; public static BasicStatPickup UtilityBeltObject; public static MiserlyProtectionItem RingOfMiserlyProtectionObject; public static BasicStatPickup BackpackObject; public static BasicStatPickup AmmoBeltObject; public static CogOfBattleItem CogOfBattleObject; public static RemoteMineItem C4Object; public static GungeonMapItem MapObject; public static SpawnProjectileOnDamagedItem HoneycombObject; public static SpawnItemOnRoomClearItem MasterOfUnlockingObject; public static Gun RubeAdynePrototypeObject; public static Gun ShotgunFullOfHateObject; public static Gun WitchPistolObject; public static Gun DragunfireObject; public static KeyBulletPickup PlaceableKeyObject; public static BasicStatPickup LiesObject; public static Gun FaceMelterObject; public static Gun TShirtCannonObject; public static Gun TheMembraneObject; public static Gun TheKilnObject; public static Gun ShockRifleObject; public static Gun TrashcannonObject; public static SpawnObjectPlayerItem SingularityObject; public static Gun LaserLotusObject; public static Gun BigIronObject; public static RingOfPitFriendship AmuletOfThePitLordObject; public static GundromedaStrain GundromedaStrainObject; public static BulletArmorItem GunknightHelmetObject; public static BulletArmorItem GunknightGreavesObject; public static BulletArmorItem GunknightGauntletObject; public static BulletArmorItem GunknightArmorObject; public static SpawnItemOnRoomClearItem HeartSynthesizerObject; public static BasicStatPickup OiledCylinderObject; public static SkeletonKeyItem ShelletonKeyObject; public static EnemyBulletSpeedItem BloodyEyeObject; public static ActiveGunVolleyModificationItem DoubleVisionObject; public static Gun BlackHoleGunObject; public static ActiveItemCooldownItem IceCubeObject; public static BasicStatPickup GhostBulletsObject; public static PileOfDarkSoulsPickup PileOfSoulsObject; public static ActiveBasicStatItem PotionOfGunFriendshipObject; public static Gun TanglerObject; public static Gun GungeonAntObject; public static Gun AlienEngineObject; public static Gun CrestfallerObject; public static Gun ProtonBackpackObject; public static Gun GrasschopperObject; public static Gun WinchesterRifleObject; public static Gun GreyMauserObject; public static Gun SerManuelsRevolverObject; public static Gun TheJudgeObject; public static Gun MachineFistObject; public static BasicStatPickup DisarmingPersonalityObject; public static PassiveReflectItem RollingEyeObject; public static DamageTypeModifierItem RingOfFireResistanceObject; public static PassiveGooperItem BugBootsObject; public static Gun FossilizedGunObject; public static Gun PeaShooterObject; public static Gun GunslingersAshesObject; public static Gun LuxinCannonObject; public static Gun CharmedBowObject; public static SpawnObjectPlayerItem PortableTurretObject; public static Gun SawedOffObject; public static SpawnObjectPlayerItem CigarettesObject; public static BulletStatusEffectItem IrradiatedLeadObject; public static SpawnObjectPlayerItem PoisonVialObject; public static RadialCharmItem CharmHornObject; public static Gun PlaguePistolObject; public static Gun PlungerObject; public static SenseOfDirectionItem SenseOfDirectionObject; public static Gun GunbowObject; public static BasicStatPickup BallisticBootsObject; public static BasicStatPickup LichyTriggerFingerObject; public static SpawnItemOnRoomClearItem CoinCrownObject; public static CardboardBoxItem BoxObject; public static BasicStatPickup OldKnightsShieldObject; public static Gun TutorialAk47Object; public static BasicStatPickup OldKnightsHelmObject; public static Gun Cold45Object; public static SilencerItem BlankObject; public static Gun IceBreakerObject; public static Gun WristbowObject; public static Gun ParticulatorObject; public static Gun HegemonyCarbineObject; public static Gun HelixObject; public static Gun GildedHydraObject; public static PlayerOrbitalItem SpaceFriendObject; public static BombCompanionAppItem IbombCompanionAppObject; public static RadialSlowItem AgedBellObject; public static DuctTapeItem DuctTapeObject; public static HomingBulletsPassiveItem CrutchObject; public static GunVolleyModificationItem ScattershotObject; public static DirectionalAttackActiveItem NapalmStrikeObject; public static NotePassiveItem InfuriatingNote1Object; public static NotePassiveItem InfuriatingNote2Object; public static NotePassiveItem InfuriatingNote3Object; public static NotePassiveItem InfuriatingNote4Object; public static NotePassiveItem InfuriatingNote5Object; public static NotePassiveItem InfuriatingNote6Object; public static PlayerOrbitalItem OwlObject; public static GrapplingHookItem GrapplingHookObject; public static Gun PrizePistolObject; public static DirectionalAttackActiveItem AirStrikeObject; public static AuraItem GungeonPepperObject; public static AmazingChestAheadItem RingOfChestFriendshipObject; public static BasicStatPickup AncientHerosBandanaObject; public static HeavyBootsItem HeavyBootsObject; public static EyeOfTheTigerItem BroccoliObject; public static HealingReceivedModificationItem AntibodyObject; public static IounStoneOrbitalItem PinkGuonStoneObject; public static PlayerOrbitalItem WhiteGuonStoneObject; public static PlayerOrbitalItem OrangeGuonStoneObject; public static IounStoneOrbitalItem ClearGuonStoneObject; public static EstusFlaskItem OldKnightsFlaskObject; public static IounStoneOrbitalItem RedGuonStoneObject; public static IounStoneOrbitalItem BlueGuonStoneObject; public static EyeOfTheTigerItem RiddleOfLeadObject; public static IronCoinItem IronCoinObject; public static LaserSightItem LaserSightObject; public static Gun DarkMarkerObject; public static Gun FlareGunObject; public static SpiceItem SpiceObject; public static BasicStatPickup FatBulletsObject; public static BulletStatusEffectItem FrostBulletsObject; public static SuperhotItem SuperHotWatchObject; public static BasicStatPickup DrumClipObject; public static CartographersRingItem GungeonBlueprintObject; public static HomingBulletsPassiveItem HomingBulletsObject; public static RegenerationPassiveItem BloodBroochObject; public static BasicStatPickup Plus1BulletsObject; public static GunVolleyModificationItem BackupGunObject; public static BasicStatPickup BouncyBulletsObject; public static SevenLeafCloverItem SevenLeafCloverObject; public static SunglassesItem SunglassesObject; public static HealPlayerItem MeatbunObject; public static Gun MolotovLauncherObject; public static MimicToothNecklaceItem MimicToothNecklaceObject; public static MimicRingItem RingOfMimicFriendshipObject; public static BulletStatusEffectItem HotLeadObject; public static ItemBlueprintItem MetashopBreachItemOldObject; public static CurrencyPickup HegemonyCreditObject; public static ComplexProjectileModifier ShockRoundsObject; public static Gun SuperSpaceTurtlesGunObject; public static CompanionItem DogObject; public static CompanionItem SuperSpaceTurtleObject; public static BulletThatCanKillThePast BulletThatCanKillThePastObject; public static ComplexProjectileModifier ExplosiveRoundsObject; public static CathedralCrestItem OldCrestObject; public static EscapeRopeItem EscapeRopeObject; public static WingsItem WaxWingsObject; public static SpawnObjectPlayerItem ClusterMineObject; public static BasicStatPickup CloranthyRingObject; public static WingsItem FairyWingsObject; public static ExtraLifeItem CloneObject; public static HelmetItem BlastHelmetObject; public static PassiveGooperItem MonsterBloodObject; public static NanomachinesItem NanomachinesObject; public static DownwellBootsItem GunbootsObject; public static SpecialKeyItem GnawedKeyObject; public static CompanionItem R2g2Object; public static ActiveSummonItem TicketObject; public static BlankModificationItem GoldAmmoletObject; public static BlankModificationItem LodestoneAmmoletObject; public static ModifyProjectileOnEnemyImpact AngryBulletsObject; public static BlankModificationItem ChaosAmmoletObject; public static CoopPassiveItem Number2Object; public static Gun CorsairObject; public static Gun ChargeShotObject; public static Gun ZillaShotgunObject; public static Gun TheEmperorObject; public static Gun ScienceCannonObject; public static Gun LilBomberObject; public static Gun MutationObject; public static Gun WindUpGunObject; public static Gun SilencerObject; public static Gun PitchforkObject; public static Gun CompositeGunObject; public static Gun GuntherObject; public static Gun MahogunyObject; public static Gun LowerCaseRObject; public static Gun BuzzkillObject; public static BlankModificationItem UraniumAmmoletObject; public static BlankModificationItem CopperAmmoletObject; public static BlankModificationItem FrostAmmoletObject; public static Gun FightsabreObject; public static Gun HuntsmanObject; public static Gun ShotgrubObject; public static AncientPrimerItem PrimePrimerObject; public static AstralSlugItem PlanarLeadObject; public static ObsidianShellItem ObsidianShellCasingObject; public static ArcaneGunpowderItem ArcaneGunpowderObject; public static ComplexProjectileModifier ShadowBulletsObject; public static RagePassiveItem EnragingPhotoObject; public static BasicStatPickup MilitaryTrainingObject; public static Gun ChromesteelAssaultRifleObject; public static LockpicksItem TrustyLockpicksObject; public static Gun CatClawObject; public static Gun RailgunObject; public static Gun CompressedAirTankObject; public static Gun SnakemakerObject; public static Gun BulletBoreObject; public static Gun TrickGunObject; public static SpawnProjectileOnDamagedItem HeartOfIceObject; public static Gun MassShotgunObject; public static SpawnObjectPlayerItem MolotovObject; public static BasicStatPickup HuntersJournalObject; public static Gun ElTigreObject; public static Gun BaitLauncherObject; public static Gun PrototypeRailgunObject; public static Gun RcRocketObject; public static ClipBulletModifierItem AlphaBulletsObject; public static ClipBulletModifierItem OmegaBulletsObject; public static MoveAmmoToClipItem EasyReloadBulletsObject; public static Gun BrickBreakerObject; public static Gun ExcaliberObject; public static Gun DerringerObject; public static Gun ShotgunFullOfLoveObject; public static Gun BetrayersShieldObject; public static Gun TripleCrossbowObject; public static Gun SlingObject; public static Gun FlashRayObject; public static Gun PhoenixObject; public static Gun HexagunObject; public static Gun FrostGiantObject; public static Gun CobaltHammerObject; public static NPCCellKeyItem CellKeyObject; public static Gun AnvillainObject; public static Gun MineCutterObject; public static Gun StaffOfFirepowerObject; public static TableFlipItem TableTechSightObject; public static TableFlipItem TableTechMoneyObject; public static TableFlipItem TableTechRocketObject; public static TableFlipItem TableTechRageObject; public static TableFlipItem TableTechBlanksObject; public static Gun GungineObject; public static Gun SnowballerObject; public static CorpseExplodeActiveItem MeltedRockObject; public static Gun SirenObject; public static Gun RattlerObject; public static ChamberOfEvilItem SixthChamberObject; public static RobotUnlockTelevisionItem BustedTelevisionObject; public static BulletStatusEffectItem BatteryBulletsObject; public static DirectionalAttackActiveItem CoolantLeakObject; public static HealPlayerItem FriendshipCookieObject; public static HeroSwordItem HerosSwordObject; public static LiveAmmoItem LiveAmmoObject; public static RobotArmItem ReplacementArmObject; public static RobotArmBalloonsItem BalloonObject; public static Gun BlasphemyObject; public static ItemBlueprintItem TrorcBreachItemObject; public static BasicStatPickup HeartHolsterObject; public static BasicStatPickup HeartLunchboxObject; public static BasicStatPickup HeartLocketObject; public static BasicStatPickup HeartBottleObject; public static BasicStatPickup HeartPurseObject; public static BasicStatPickup ShotgaColaObject; public static BasicStatPickup ShotgunCoffeeObject; public static ItemBlueprintItem GooptonBreachItemObject; public static EnemyBulletSpeedItem LiquidValkyrieObject; public static SpawnObjectPlayerItem JarOfBeesObject; public static TemporaryInvulnerabilityPlayerItem StuffedStarObject; public static OnDamagedPassiveItem BulletIdolObject; public static OnPurchasePassiveItem MustacheObject; public static BlinkPassiveItem BloodiedScarfObject; public static GunClassPassiveItem MuscleRelaxantObject; public static SpawnObjectPlayerItem ExplosiveDecoyObject; public static DamageEnemiesInRadiusItem BracketKeyObject; public static ThrownGunPassiveItem RubyBraceletObject; public static ThrownGunPassiveItem EmeraldBraceletObject; public static CompanionItem BadgeObject; public static TargetedAttackPlayerItem BigBoyObject; public static Gun TridentObject; public static Gun TheScramblerObject; public static ActiveShieldItem ShieldOfTheMaidenObject; public static SpawnObjectPlayerItem BoomerangObject; public static TeleporterPrototypeItem TeleporterPrototypeObject; public static SpawnItemOnRoomClearItem ArmorSynthesizerObject; public static CompanionItem PigObject; public static PassiveGooperItem SpongeObject; public static DamageTypeModifierItem GasMaskObject; public static DamageTypeModifierItem HazmatSuitObject; public static OnPlayerItemUsedItem RingOfTriggersObject; public static SpikedArmorItem ArmorOfThornsObject; public static GaseousFormPlayerItem RingOfEtherealFormObject; public static SpawnObjectPlayerItem ChaffGrenadeObject; public static CompanionItem BlankCompanionsRingObject; public static ConsumableStealthItem SmokeBombObject; public static RingOfResourcefulRatItem RingOfTheResourcefulRatObject; public static Gun ShellegunObject; public static TableFlipItem TableTechStunObject; public static IounStoneOrbitalItem GreenGuonStoneObject; public static BasicStatPickup MasterRound5Object; public static BasicStatPickup MasterRound3Object; public static BasicStatPickup MasterRound1Object; public static BasicStatPickup MasterRound4Object; public static BasicStatPickup MasterRound2Object; public static Gun GummyGunObject; public static BasicStatPickup HiddenCompartmentObject; public static Gun AbyssalTentacleObject; public static Gun QuadLaserObject; public static Gun MicrotransactionGunObject; public static Gun OriguniObject; public static Gun BananaObject; public static Gun SuperMeatGunObject; public static Gun MakeshiftCannonObject; public static Gun CameraObject; public static Gun GunzhengObject; public static Gun TetrominatorObject; public static Gun DevolverObject; public static HealPlayerItem OrangeObject; public static Gun TreadnaughtCannonObject; public static ChestBrokenImprovementItem BookOfChestAnatomyObject; public static ChestBrokenItem RingOfChestVampirismObject; public static ExtraLifeItem GunSoulObject; public static SnitchBrickItem BrickOfCashObject; public static PlayerOrbitalItem WingmanObject; public static CompanionItem WolfObject; public static BriefcaseFullOfCashItem BriefcaseOfCashObject; public static BasicStatPickup GalacticMedalOfValorObject; public static OurPowersCombinedItem UnityObject; public static ItemBlueprintItem MetashopBreachItemGunObject; public static ReusableBlankitem ElderBlankObject; public static FireOnReloadItem HipHolsterObject; public static ItemBlueprintItem MetashopBreachItemItemObject; public static DoNothingActiveItem PilotsPastRocketsObject; public static Gun BulletObject; public static Gun HyperLightBlasterObject; public static Gun WickedSisterSynergyObject; public static Gun ReallySpecialLuteObject; public static Gun StarpewObject; public static Gun DuelingLaserObject; public static Gun Jk47Object; public static Gun ThirdPartyControllerObject; public static Gun ShellObject; public static Gun PoxcannonObject; public static Gun DirectionalPadObject; public static Gun MourningStarObject; public static Gun TripleGunObject; public static Gun TripleGunForm2Object; public static Gun TripleGunForm3Object; public static Gun CombinedRifleObject; public static Gun BalloonGunObject; public static ProjectileRandomizerItem ChanceBulletsObject; public static StoutBulletsItem StoutBulletsObject; public static RandomProjectileReplacementItem Bloody9MmObject; public static PuzzleBoxItem LamentConfigurumObject; public static PegasusBootsItem SpringheelBootsObject; public static BulletStatusEffectItem CharmingRoundsObject; public static ReturnAmmoOnMissedShotItem ZombieBulletsObject; public static BattleStandardItem BattleStandardObject; public static GuidedBulletsPassiveItem RemoteBulletsObject; public static ComplexProjectileModifier FlakBulletsObject; public static ScalingStatBoostItem GildedBulletsObject; public static BulletStatusEffectItem MagicBulletsObject; public static Gun RealCoolBowObject; public static RelodestoneItem RelodestoneObject; public static Gun VorpalGunObject; public static SilverBulletsPassiveItem SilverBulletsObject; public static Gun BoxingGloveObject; public static Gun GlassCannonObject; public static Gun CaseyObject; public static Gun StrafeGunObject; public static Gun ThePredatorObject; public static Gun Ac15UnarmoredObject; public static Gun Ac15Object; public static Gun WindgunnerObject; public static Gun KnightsGunObject; public static Gun CrownOfGunsObject; public static EmptyBottleItem BottleObject; public static Gun TheFatLineObject; public static Gun TheExoticObject; public static AutoblankVestItem FullMetalJacketObject; public static IounStoneOrbitalItem GlassGuonStoneObject; public static Gun RadGunObject; public static FireVolleyOnRollItem RollBombObject; public static GunVolleyModificationItem HelixBulletsObject; public static ChaosBulletsItem ChaosBulletsObject; public static YellowChamberItem YellowChamberObject; public static ScalingStatBoostItem CursedBulletsObject; public static CompanionItem ChickenFluteObject; public static ChestTeleporterItem ChestTeleporterObject; public static Gun WoodenBlasphemyObject; public static ItemBlueprintItem DougBreachItemObject; public static Gun RobotsLeftHandObject; public static Gun TurboGunObject; public static SprenOrbitalItem SprunObject; public static ComplexProjectileModifier BlankBulletsObject; public static CompanionItem JunkanObject; public static Gun VoidCoreCannonObject; public static Gun AlasSniperionSynergyObject; public static Gun LifeOrbObject; public static Gun TeapotObject; public static Gun MrAccretionJrObject; public static Gun StoneDomeObject; public static Gun BubbleBlasterObject; public static AmmoPickup SpreadAmmoObject; public static Gun BigShotgunObject; public static Gun GunnerObject; public static Gun LameyGunObject; public static Gun SlingerObject; public static BankBagItem LootBagObject; public static BankMaskItem ClownMaskObject; public static Gun NeoTechYoSynergyObject; public static Gun RubensteinsMonsterObject; public static Gun WoodBeamObject; public static Gun IslandFormeSynergyObject; public static Gun WaveBeamSynergyObject; public static Gun IceBeamSynergyObject; public static Gun PlasmaBeamSynergyObject; public static Gun HyberBeamSynergyObject; public static Gun CarefulIterationSynergyObject; public static Gun QuickBoomerangSynergyObject; public static Gun TimeStopperSynergyObject; public static Gun MetalBladeSynergyObject; public static Gun LeafShieldSynergyObject; public static Gun AtomicFireSynergyObject; public static Gun BubbleLeadSynergyObject; public static Gun AirShooterSynergyObject; public static Gun CrashBomberSynergyObject; public static PaydayDrillItem DrillObject; public static Gun ElimentalerObject; public static PlatinumBulletsItem PlatinumBulletsObject; public static GunVolleyModificationItem BumbulletsObject; public static BlankPersonalityItem HoleyGrailObject; public static CompanionItem TurkeyObject; public static TableFlipItem TableTechShotgunObject; public static CrisisStoneItem CrisisStoneObject; public static SnowballBulletsItem SnowballetsObject; public static GungeonEggItem WeirdEggObject; public static ComplexProjectileModifier DevolverRoundsObject; public static ComplexProjectileModifier VorpalBulletsObject; public static BasicStatPickup GoldJunkObject; public static KiPulseItem DarumaObject; public static FoldingTableItem PortableTableDeviceObject; public static MulticompanionItem TurtleProblemObject; public static Gun ChamberGunObject; public static Gun FullCircleSynergyObject; public static Gun UppercaseRObject; public static Gun PaydayWinchesterObject; public static Gun RogueSpecialAltObject; public static Gun BudgetRevolverAltObject; public static FragileGunItemPiece GunPieceObject; public static ComplexProjectileModifier HungryBulletsObject; public static Gun KrullerGlaiveObject; public static Gun ChamberGunOublietteObject; public static Gun ChamberGunForgeObject; public static Gun ChamberGunHollowObject; public static Gun ChamberGunProperObject; public static GunVolleyModificationItem OrbitalBulletsObject; public static CheeseWheelItem PartiallyEatenCheeseObject; public static RatPackItem ResourcefulSackObject; public static CompanionItem BabyGoodMimicObject; public static MachoBraceItem MachoBraceObject; public static TableFlipItem TableTechHeatObject; public static RatBootsItem RatBootsObject; public static Gun EnemyElimentalerObject; public static Gun HighDragunfireObject; public static Gun BetaRaySynergyObject; public static Gun TheElephantInTheRoomSynergyObject; public static Gun PistolMachineSynergyObject; public static Gun PeaCannonSynergyObject; public static Gun DualingPistolSynergyObject; public static Gun LaserLightShowSynergyObject; public static Gun KalibreathSynergyObject; public static Gun BlunderbraceSynergyObject; public static Gun SnowballShotgunSynergyObject; public static Gun ArmoredCorpsSynergyObject; public static Gun DetectiveModeSynergyObject; public static Gun PandemicPistolSynergyObject; public static Gun AlistairsLadderSynergyObject; public static Gun M1MultiToolSynergyObject; public static Gun FutureGangsterSynergyObject; public static Gun BlackFlagSynergyObject; public static Gun FiveOclockSomewhereSynergyObject; public static Gun FruitsAndVegetablesSynergyObject; public static Gun KalibersGripSynergyObject; public static Gun KlobberingTimeSynergyObject; public static Gun SpecialReserveSynergyObject; public static Gun NailedItSynergyObject; public static Gun ShowAcrossTheBowSynergyObject; public static Gun IronSlugSynergyObject; public static Gun HardLightSynergyObject; public static Gun ChiefMasterSynergyObject; public static Gun BatteryPoweredSynergyObject; public static Gun MaximizeSpellSynergyObject; public static Gun HegemonySpecialForcesSynergyObject; public static Gun CactusFlowerSynergyObject; public static Gun NoxinCannonSynergyObject; public static Gun AlternativeRockSynergyObject; public static Gun ApiarySynergyObject; public static Gun RecyclingBinSynergyObject; public static Gun SaviorOfTheUniverseSynergyObject; public static Gun FiringWithFlairSynergyObject; public static Gun NotQuiteAsMiniSynergyObject; public static Gun DoubleDoubleHelixSynergyObject; public static Gun LikeShootingFishSynergyObject; public static Gun IceCapSynergyObject; public static Gun PeripheralVisionSynergyObject; public static Gun RaidenSynergyObject; public static Gun DoubleMoon7SynergyObject; public static Gun LotusBloomSynergyObject; public static Gun HammerAndNailSynergyObject; public static Gun ArcticWarfareSynergyObject; public static Gun CerebralBrosSynergyObject; public static Gun SquareBraceSynergyObject; public static Gun KingBomberSynergyObject; public static Gun ElectronPackSynergyObject; public static Gun HeavyJoltSynergyObject; public static Gun PitchPerfectSynergyObject; public static Gun CommammoBeltSynergyObject; public static Gun RubyCarbineSynergyObject; public static Gun TearJerkerUnknownSynergyObject; public static Gun AkeyBreakySynergyObject; public static KeyBulletPickup RatKeyObject; public static Gun GunderfuryLv50Object; public static Gun GunderfuryLv60Object; public static Gun GunderfuryLv40Object; public static Gun GunderfuryLv30Object; public static Gun GunderfuryObject; public static Gun GunderfuryLv20Object; public static Gun MimicGunObject; public static PlayerOrbitalItem SerpentObject; public static Gun PhoenixUpSynergyObject; public static Gun BetrayersLiesSynergyObject; public static Gun LowerCaseRUnknownSynergyObject; public static Gun GreatQueenAntSynergyObject; public static Gun NotSoSawedOffSynergyObject; public static Gun WrathOfTheBlamSynergyObject; public static Gun ContrailSynergyObject; public static Gun KungFuHippieRappinSurferSynergyObject; public static Gun ParchmentalSynergyObject; public static Gun GunderlordSynergyObject; public static Gun TurtineGunObject; public static Gun SunlightJavelinObject; public static Gun SecondAccidentSynergyObject; public static Gun DontHootTheMessengerSynergyObject; public static Gun BigGunObject; public static Gun WestbroNomesRevolverObject; public static Gun WestbroTucosRevolverObject; public static Gun WestbroAngelsRevolverObject; public static Gun EvolverObject; public static Gun EvolverSpongeObject; public static Gun EvolverFlatwormObject; public static Gun EvolverSnailObject; public static Gun EvolverFrogObject; public static Gun EvolverDragonObject; public static Gun HighKaliberObject; public static Gun FinishedGunObject; public static Gun ChamberGunHellObject; public static Gun ChamberGunAbbeyObject; public static Gun ChamberGunMinesObject; public static Gun ChamberGunRatLairObject; public static Gun MarineSidearmAltObject; public static Gun RustySidearmAltObject; public static Gun DartGunAltObject; public static Gun RobotsRightHandAltObject; public static Gun BlasphemyAltObject; public static MagazineRackItem MagazineRackObject; public static SynergyCompletionItem LichsEyeBulletsObject; public static Gun INeedScissors61SynergyObject; public static WingsItem CatBulletKingThroneObject; public static CompanionItem BabyGoodShelletonObject; public static Gun MaxPaneSynergyObject; public static SpawnObjectPlayerItem ShadowCloneObject; public static RatchetScouterItem ScouterObject; public static ComplexProjectileModifier KatanaBulletsObject; public static Gun ChamberGunRngObject; static GlobalItemDatabase() { PickupObject byId = PickupObjectDatabase.GetById(MagicLampId); MagicLampObject = (Gun)(object)((byId is Gun) ? byId : null); PickupObject byId2 = PickupObjectDatabase.GetById(WinchesterId); WinchesterObject = (Gun)(object)((byId2 is Gun) ? byId2 : null); PickupObject byId3 = PickupObjectDatabase.GetById(ThompsonId); ThompsonObject = (Gun)(object)((byId3 is Gun) ? byId3 : null); PickupObject byId4 = PickupObjectDatabase.GetById(ScreecherId); ScreecherObject = (Gun)(object)((byId4 is Gun) ? byId4 : null); PickupObject byId5 = PickupObjectDatabase.GetById(StickyCrossbowId); StickyCrossbowObject = (Gun)(object)((byId5 is Gun) ? byId5 : null); PickupObject byId6 = PickupObjectDatabase.GetById(AwpId); AwpObject = (Gun)(object)((byId6 is Gun) ? byId6 : null); PickupObject byId7 = PickupObjectDatabase.GetById(ZorgunId); ZorgunObject = (Gun)(object)((byId7 is Gun) ? byId7 : null); PickupObject byId8 = PickupObjectDatabase.GetById(BarrelId); BarrelObject = (Gun)(object)((byId8 is Gun) ? byId8 : null); PickupObject byId9 = PickupObjectDatabase.GetById(BowId); BowObject = (Gun)(object)((byId9 is Gun) ? byId9 : null); PickupObject byId10 = PickupObjectDatabase.GetById(DuelingPistolId); DuelingPistolObject = (Gun)(object)((byId10 is Gun) ? byId10 : null); PickupObject byId11 = PickupObjectDatabase.GetById(MegaDouserId); MegaDouserObject = (Gun)(object)((byId11 is Gun) ? byId11 : null); PickupObject byId12 = PickupObjectDatabase.GetById(CrossbowId); CrossbowObject = (Gun)(object)((byId12 is Gun) ? byId12 : null); PickupObject byId13 = PickupObjectDatabase.GetById(ThunderclapId); ThunderclapObject = (Gun)(object)((byId13 is Gun) ? byId13 : null); PickupObject byId14 = PickupObjectDatabase.GetById(BeeHiveId); BeeHiveObject = (Gun)(object)((byId14 is Gun) ? byId14 : null); PickupObject byId15 = PickupObjectDatabase.GetById(Ak47Id); Ak47Object = (Gun)(object)((byId15 is Gun) ? byId15 : null); PickupObject byId16 = PickupObjectDatabase.GetById(YariLauncherId); YariLauncherObject = (Gun)(object)((byId16 is Gun) ? byId16 : null); PickupObject byId17 = PickupObjectDatabase.GetById(HeckBlasterId); HeckBlasterObject = (Gun)(object)((byId17 is Gun) ? byId17 : null); PickupObject byId18 = PickupObjectDatabase.GetById(BlooperId); BlooperObject = (Gun)(object)((byId18 is Gun) ? byId18 : null); PickupObject byId19 = PickupObjectDatabase.GetById(GrenadeLauncherId); GrenadeLauncherObject = (Gun)(object)((byId19 is Gun) ? byId19 : null); PickupObject byId20 = PickupObjectDatabase.GetById(MoonscraperId); MoonscraperObject = (Gun)(object)((byId20 is Gun) ? byId20 : null); PickupObject byId21 = PickupObjectDatabase.GetById(BsgId); BsgObject = (Gun)(object)((byId21 is Gun) ? byId21 : null); PickupObject byId22 = PickupObjectDatabase.GetById(ShadesRevolverId); ShadesRevolverObject = (Gun)(object)((byId22 is Gun) ? byId22 : null); PickupObject byId23 = PickupObjectDatabase.GetById(DungeonEagleId); DungeonEagleObject = (Gun)(object)((byId23 is Gun) ? byId23 : null); PickupObject byId24 = PickupObjectDatabase.GetById(DartGunId); DartGunObject = (Gun)(object)((byId24 is Gun) ? byId24 : null); PickupObject byId25 = PickupObjectDatabase.GetById(M1Id); M1Object = (Gun)(object)((byId25 is Gun) ? byId25 : null); PickupObject byId26 = PickupObjectDatabase.GetById(NailGunId); NailGunObject = (Gun)(object)((byId26 is Gun) ? byId26 : null); PickupObject byId27 = PickupObjectDatabase.GetById(LightGunId); LightGunObject = (Gun)(object)((byId27 is Gun) ? byId27 : null); PickupObject byId28 = PickupObjectDatabase.GetById(MailboxId); MailboxObject = (Gun)(object)((byId28 is Gun) ? byId28 : null); PickupObject byId29 = PickupObjectDatabase.GetById(Vertebraek47Id); Vertebraek47Object = (Gun)(object)((byId29 is Gun) ? byId29 : null); PickupObject byId30 = PickupObjectDatabase.GetById(M1911Id); M1911Object = (Gun)(object)((byId30 is Gun) ? byId30 : null); PickupObject byId31 = PickupObjectDatabase.GetById(KlobbeId); KlobbeObject = (Gun)(object)((byId31 is Gun) ? byId31 : null); PickupObject byId32 = PickupObjectDatabase.GetById(VoidMarshalId); VoidMarshalObject = (Gun)(object)((byId32 is Gun) ? byId32 : null); PickupObject byId33 = PickupObjectDatabase.GetById(TearJerkerId); TearJerkerObject = (Gun)(object)((byId33 is Gun) ? byId33 : null); PickupObject byId34 = PickupObjectDatabase.GetById(SmileysRevolverId); SmileysRevolverObject = (Gun)(object)((byId34 is Gun) ? byId34 : null); PickupObject byId35 = PickupObjectDatabase.GetById(MegahandId); MegahandObject = (Gun)(object)((byId35 is Gun) ? byId35 : null); PickupObject byId36 = PickupObjectDatabase.GetById(SeriousCannonId); SeriousCannonObject = (Gun)(object)((byId36 is Gun) ? byId36 : null); PickupObject byId37 = PickupObjectDatabase.GetById(MagnumId); MagnumObject = (Gun)(object)((byId37 is Gun) ? byId37 : null); PickupObject byId38 = PickupObjectDatabase.GetById(RpgId); RpgObject = (Gun)(object)((byId38 is Gun) ? byId38 : null); PickupObject byId39 = PickupObjectDatabase.GetById(FreezeRayId); FreezeRayObject = (Gun)(object)((byId39 is Gun) ? byId39 : null); PickupObject byId40 = PickupObjectDatabase.GetById(HeroineId); HeroineObject = (Gun)(object)((byId40 is Gun) ? byId40 : null); PickupObject byId41 = PickupObjectDatabase.GetById(TrankGunId); TrankGunObject = (Gun)(object)((byId41 is Gun) ? byId41 : null); PickupObject byId42 = PickupObjectDatabase.GetById(MachinePistolId); MachinePistolObject = (Gun)(object)((byId42 is Gun) ? byId42 : null); PickupObject byId43 = PickupObjectDatabase.GetById(SkullSpitterId); SkullSpitterObject = (Gun)(object)((byId43 is Gun) ? byId43 : null); PickupObject byId44 = PickupObjectDatabase.GetById(JolterId); JolterObject = (Gun)(object)((byId44 is Gun) ? byId44 : null); PickupObject byId45 = PickupObjectDatabase.GetById(SniperRifleId); SniperRifleObject = (Gun)(object)((byId45 is Gun) ? byId45 : null); PickupObject byId46 = PickupObjectDatabase.GetById(SaaId); SaaObject = (Gun)(object)((byId46 is Gun) ? byId46 : null); PickupObject byId47 = PickupObjectDatabase.GetById(RegularShotgunId); RegularShotgunObject = (Gun)(object)((byId47 is Gun) ? byId47 : null); PickupObject byId48 = PickupObjectDatabase.GetById(CrescentCrossbowId); CrescentCrossbowObject = (Gun)(object)((byId48 is Gun) ? byId48 : null); PickupObject byId49 = PickupObjectDatabase.GetById(AuGunId); AuGunObject = (Gun)(object)((byId49 is Gun) ? byId49 : null); PickupObject byId50 = PickupObjectDatabase.GetById(LaserRifleId); LaserRifleObject = (Gun)(object)((byId50 is Gun) ? byId50 : null); PickupObject byId51 = PickupObjectDatabase.GetById(VoidShotgunId); VoidShotgunObject = (Gun)(object)((byId51 is Gun) ? byId51 : null); PickupObject byId52 = PickupObjectDatabase.GetById(ThirtyEightSpecialId); ThirtyEightSpecialObject = (Gun)(object)((byId52 is Gun) ? byId52 : null); PickupObject byId53 = PickupObjectDatabase.GetById(AlienSidearmId); AlienSidearmObject = (Gun)(object)((byId53 is Gun) ? byId53 : null); PickupObject byId54 = PickupObjectDatabase.GetById(VoidCoreAssaultRifleId); VoidCoreAssaultRifleObject = (Gun)(object)((byId54 is Gun) ? byId54 : null); PickupObject byId55 = PickupObjectDatabase.GetById(HegemonyRifleId); HegemonyRifleObject = (Gun)(object)((byId55 is Gun) ? byId55 : null); PickupObject byId56 = PickupObjectDatabase.GetById(DemonHeadId); DemonHeadObject = (Gun)(object)((byId56 is Gun) ? byId56 : null); PickupObject byId57 = PickupObjectDatabase.GetById(BundleOfWandsId); BundleOfWandsObject = (Gun)(object)((byId57 is Gun) ? byId57 : null); PickupObject byId58 = PickupObjectDatabase.GetById(Colt1851Id); Colt1851Object = (Gun)(object)((byId58 is Gun) ? byId58 : null); PickupObject byId59 = PickupObjectDatabase.GetById(MedkitId); MedkitObject = (HealPlayerItem)(object)((byId59 is HealPlayerItem) ? byId59 : null); PickupObject byId60 = PickupObjectDatabase.GetById(PotionOfLeadSkinId); PotionOfLeadSkinObject = (ReflectShieldPlayerItem)(object)((byId60 is ReflectShieldPlayerItem) ? byId60 : null); PickupObject byId61 = PickupObjectDatabase.GetById(KnifeShieldId); KnifeShieldObject = (KnifeShieldItem)(object)((byId61 is KnifeShieldItem) ? byId61 : null); PickupObject byId62 = PickupObjectDatabase.GetById(ProximityMineId); ProximityMineObject = (SpawnObjectPlayerItem)(object)((byId62 is SpawnObjectPlayerItem) ? byId62 : null); PickupObject byId63 = PickupObjectDatabase.GetById(KeyId); KeyObject = (KeyBulletPickup)(object)((byId63 is KeyBulletPickup) ? byId63 : null); PickupObject byId64 = PickupObjectDatabase.GetById(CasingId); CasingObject = (CurrencyPickup)(object)((byId64 is CurrencyPickup) ? byId64 : null); PickupObject byId65 = PickupObjectDatabase.GetById(BulletTimeId); BulletTimeObject = (TimeSlowPlayerItem)(object)((byId65 is TimeSlowPlayerItem) ? byId65 : null); PickupObject byId66 = PickupObjectDatabase.GetById(SilverCasingId); SilverCasingObject = (CurrencyPickup)(object)((byId66 is CurrencyPickup) ? byId66 : null); PickupObject byId67 = PickupObjectDatabase.GetById(DecoyId); DecoyObject = (SpawnObjectPlayerItem)(object)((byId67 is SpawnObjectPlayerItem) ? byId67 : null); PickupObject byId68 = PickupObjectDatabase.GetById(BubbleShieldId); BubbleShieldObject = (ReflectShieldPlayerItem)(object)((byId68 is ReflectShieldPlayerItem) ? byId68 : null); PickupObject byId69 = PickupObjectDatabase.GetById(HalfHeartId); HalfHeartObject = (HealthPickup)(object)((byId69 is HealthPickup) ? byId69 : null); PickupObject byId70 = PickupObjectDatabase.GetById(GoldCasingId); GoldCasingObject = (CurrencyPickup)(object)((byId70 is CurrencyPickup) ? byId70 : null); PickupObject byId71 = PickupObjectDatabase.GetById(EyeJewelId); EyeJewelObject = (SimplePuzzleItem)(object)((byId71 is SimplePuzzleItem) ? byId71 : null); PickupObject byId72 = PickupObjectDatabase.GetById(SupplyDropId); SupplyDropObject = (SupplyDropItem)(object)((byId72 is SupplyDropItem) ? byId72 : null); PickupObject byId73 = PickupObjectDatabase.GetById(AmmoId); AmmoObject = (AmmoPickup)(object)((byId73 is AmmoPickup) ? byId73 : null); PickupObject byId74 = PickupObjectDatabase.GetById(MakarovId); MakarovObject = (Gun)(object)((byId74 is Gun) ? byId74 : null); PickupObject byId75 = PickupObjectDatabase.GetById(BudgetRevolverId); BudgetRevolverObject = (Gun)(object)((byId75 is Gun) ? byId75 : null); PickupObject byId76 = PickupObjectDatabase.GetById(Deck4rdId); Deck4rdObject = (Gun)(object)((byId76 is Gun) ? byId76 : null); PickupObject byId77 = PickupObjectDatabase.GetById(ElephantGunId); ElephantGunObject = (Gun)(object)((byId77 is Gun) ? byId77 : null); PickupObject byId78 = PickupObjectDatabase.GetById(UnfinishedGunId); UnfinishedGunObject = (Gun)(object)((byId78 is Gun) ? byId78 : null); PickupObject byId79 = PickupObjectDatabase.GetById(VulcanCannonId); VulcanCannonObject = (Gun)(object)((byId79 is Gun) ? byId79 : null); PickupObject byId80 = PickupObjectDatabase.GetById(HeartId); HeartObject = (HealthPickup)(object)((byId80 is HealthPickup) ? byId80 : null); PickupObject byId81 = PickupObjectDatabase.GetById(MarineSidearmId); MarineSidearmObject = (Gun)(object)((byId81 is Gun) ? byId81 : null); PickupObject byId82 = PickupObjectDatabase.GetById(GammaRayId); GammaRayObject = (Gun)(object)((byId82 is Gun) ? byId82 : null); PickupObject byId83 = PickupObjectDatabase.GetById(RobotsRightHandId); RobotsRightHandObject = (Gun)(object)((byId83 is Gun) ? byId83 : null); PickupObject byId84 = PickupObjectDatabase.GetById(RogueSpecialId); RogueSpecialObject = (Gun)(object)((byId84 is Gun) ? byId84 : null); PickupObject byId85 = PickupObjectDatabase.GetById(EyeOfTheBeholsterId); EyeOfTheBeholsterObject = (Gun)(object)((byId85 is Gun) ? byId85 : null); PickupObject byId86 = PickupObjectDatabase.GetById(H4mmerId); H4mmerObject = (Gun)(object)((byId86 is Gun) ? byId86 : null); PickupObject byId87 = PickupObjectDatabase.GetById(StingerId); StingerObject = (Gun)(object)((byId87 is Gun) ? byId87 : null); PickupObject byId88 = PickupObjectDatabase.GetById(OldGoldieId); OldGoldieObject = (Gun)(object)((byId88 is Gun) ? byId88 : null); PickupObject byId89 = PickupObjectDatabase.GetById(Mac10Id); Mac10Object = (Gun)(object)((byId89 is Gun) ? byId89 : null); PickupObject byId90 = PickupObjectDatabase.GetById(Akey47Id); Akey47Object = (Gun)(object)((byId90 is Gun) ? byId90 : null); PickupObject byId91 = PickupObjectDatabase.GetById(M16Id); M16Object = (Gun)(object)((byId91 is Gun) ? byId91 : null); PickupObject byId92 = PickupObjectDatabase.GetById(PolarisId); PolarisObject = (Gun)(object)((byId92 is Gun) ? byId92 : null); PickupObject byId93 = PickupObjectDatabase.GetById(PatriotId); PatriotObject = (Gun)(object)((byId93 is Gun) ? byId93 : null); PickupObject byId94 = PickupObjectDatabase.GetById(RustySidearmId); RustySidearmObject = (Gun)(object)((byId94 is Gun) ? byId94 : null); PickupObject byId95 = PickupObjectDatabase.GetById(UnicornHornId); UnicornHornObject = (Gun)(object)((byId95 is Gun) ? byId95 : null); PickupObject byId96 = PickupObjectDatabase.GetById(ScopeId); ScopeObject = (BasicStatPickup)(object)((byId96 is BasicStatPickup) ? byId96 : null); PickupObject byId97 = PickupObjectDatabase.GetById(RationId); RationObject = (RationItem)(object)((byId97 is RationItem) ? byId97 : null); PickupObject byId98 = PickupObjectDatabase.GetById(FortunesFavorId); FortunesFavorObject = (FortuneFavorItem)(object)((byId98 is FortuneFavorItem) ? byId98 : null); PickupObject byId99 = PickupObjectDatabase.GetById(JetpackId); JetpackObject = (JetpackItem)(object)((byId99 is JetpackItem) ? byId99 : null); PickupObject byId100 = PickupObjectDatabase.GetById(RaidenCoilId); RaidenCoilObject = (Gun)(object)((byId100 is Gun) ? byId100 : null); PickupObject byId101 = PickupObjectDatabase.GetById(BombId); BombObject = (SpawnObjectPlayerItem)(object)((byId101 is SpawnObjectPlayerItem) ? byId101 : null); PickupObject byId102 = PickupObjectDatabase.GetById(IceBombId); IceBombObject = (SpawnObjectPlayerItem)(object)((byId102 is SpawnObjectPlayerItem) ? byId102 : null); PickupObject byId103 = PickupObjectDatabase.GetById(MagicSweetId); MagicSweetObject = (BasicStatPickup)(object)((byId103 is BasicStatPickup) ? byId103 : null); PickupObject byId104 = PickupObjectDatabase.GetById(HeavyBulletsId); HeavyBulletsObject = (BasicStatPickup)(object)((byId104 is BasicStatPickup) ? byId104 : null); PickupObject byId105 = PickupObjectDatabase.GetById(CartographersRingId); CartographersRingObject = (CartographersRingItem)(object)((byId105 is CartographersRingItem) ? byId105 : null); PickupObject byId106 = PickupObjectDatabase.GetById(RocketPoweredBulletsId); RocketPoweredBulletsObject = (BasicStatPickup)(object)((byId106 is BasicStatPickup) ? byId106 : null); PickupObject byId107 = PickupObjectDatabase.GetById(BionicLegId); BionicLegObject = (BasicStatPickup)(object)((byId107 is BasicStatPickup) ? byId107 : null); PickupObject byId108 = PickupObjectDatabase.GetById(BallotId); BallotObject = (BasicStatPickup)(object)((byId108 is BasicStatPickup) ? byId108 : null); PickupObject byId109 = PickupObjectDatabase.GetById(AmmoSynthesizerId); AmmoSynthesizerObject = (OnKillEnemyItem)(object)((byId109 is OnKillEnemyItem) ? byId109 : null); PickupObject byId110 = PickupObjectDatabase.GetById(EyepatchId); EyepatchObject = (BasicStatPickup)(object)((byId110 is BasicStatPickup) ? byId110 : null); PickupObject byId111 = PickupObjectDatabase.GetById(MetronomeId); MetronomeObject = (MetronomeItem)(object)((byId111 is MetronomeItem) ? byId111 : null); PickupObject byId112 = PickupObjectDatabase.GetById(ArmorId); ArmorObject = (HealthPickup)(object)((byId112 is HealthPickup) ? byId112 : null); PickupObject byId113 = PickupObjectDatabase.GetById(DisintegratorId); DisintegratorObject = (Gun)(object)((byId113 is Gun) ? byId113 : null); PickupObject byId114 = PickupObjectDatabase.GetById(BlunderbussId); BlunderbussObject = (Gun)(object)((byId114 is Gun) ? byId114 : null); PickupObject byId115 = PickupObjectDatabase.GetById(PulseCannonId); PulseCannonObject = (Gun)(object)((byId115 is Gun) ? byId115 : null); PickupObject byId116 = PickupObjectDatabase.GetById(CactusId); CactusObject = (Gun)(object)((byId116 is Gun) ? byId116 : null); PickupObject byId117 = PickupObjectDatabase.GetById(FlameHandId); FlameHandObject = (Gun)(object)((byId117 is Gun) ? byId117 : null); PickupObject byId118 = PickupObjectDatabase.GetById(ShotbowId); ShotbowObject = (Gun)(object)((byId118 is Gun) ? byId118 : null); PickupObject byId119 = PickupObjectDatabase.GetById(JunkId); JunkObject = (BasicStatPickup)(object)((byId119 is BasicStatPickup) ? byId119 : null); PickupObject byId120 = PickupObjectDatabase.GetById(RubeAdyneMk2Id); RubeAdyneMk2Object = (Gun)(object)((byId120 is Gun) ? byId120 : null); PickupObject byId121 = PickupObjectDatabase.GetById(Com4nd0Id); Com4nd0Object = (Gun)(object)((byId121 is Gun) ? byId121 : null); PickupObject byId122 = PickupObjectDatabase.GetById(GlacierId); GlacierObject = (Gun)(object)((byId122 is Gun) ? byId122 : null); PickupObject byId123 = PickupObjectDatabase.GetById(UtilityBeltId); UtilityBeltObject = (BasicStatPickup)(object)((byId123 is BasicStatPickup) ? byId123 : null); PickupObject byId124 = PickupObjectDatabase.GetById(RingOfMiserlyProtectionId); RingOfMiserlyProtectionObject = (MiserlyProtectionItem)(object)((byId124 is MiserlyProtectionItem) ? byId124 : null); PickupObject byId125 = PickupObjectDatabase.GetById(BackpackId); BackpackObject = (BasicStatPickup)(object)((byId125 is BasicStatPickup) ? byId125 : null); PickupObject byId126 = PickupObjectDatabase.GetById(AmmoBeltId); AmmoBeltObject = (BasicStatPickup)(object)((byId126 is BasicStatPickup) ? byId126 : null); PickupObject byId127 = PickupObjectDatabase.GetById(CogOfBattleId); CogOfBattleObject = (CogOfBattleItem)(object)((byId127 is CogOfBattleItem) ? byId127 : null); PickupObject byId128 = PickupObjectDatabase.GetById(C4Id); C4Object = (RemoteMineItem)(object)((byId128 is RemoteMineItem) ? byId128 : null); PickupObject byId129 = PickupObjectDatabase.GetById(MapId); MapObject = (GungeonMapItem)(object)((byId129 is GungeonMapItem) ? byId129 : null); PickupObject byId130 = PickupObjectDatabase.GetById(HoneycombId); HoneycombObject = (SpawnProjectileOnDamagedItem)(object)((byId130 is SpawnProjectileOnDamagedItem) ? byId130 : null); PickupObject byId131 = PickupObjectDatabase.GetById(MasterOfUnlockingId); MasterOfUnlockingObject = (SpawnItemOnRoomClearItem)(object)((byId131 is SpawnItemOnRoomClearItem) ? byId131 : null); PickupObject byId132 = PickupObjectDatabase.GetById(RubeAdynePrototypeId); RubeAdynePrototypeObject = (Gun)(object)((byId132 is Gun) ? byId132 : null); PickupObject byId133 = PickupObjectDatabase.GetById(ShotgunFullOfHateId); ShotgunFullOfHateObject = (Gun)(object)((byId133 is Gun) ? byId133 : null); PickupObject byId134 = PickupObjectDatabase.GetById(WitchPistolId); WitchPistolObject = (Gun)(object)((byId134 is Gun) ? byId134 : null); PickupObject byId135 = PickupObjectDatabase.GetById(DragunfireId); DragunfireObject = (Gun)(object)((byId135 is Gun) ? byId135 : null); PickupObject byId136 = PickupObjectDatabase.GetById(PlaceableKeyId); PlaceableKeyObject = (KeyBulletPickup)(object)((byId136 is KeyBulletPickup) ? byId136 : null); PickupObject byId137 = PickupObjectDatabase.GetById(LiesId); LiesObject = (BasicStatPickup)(object)((byId137 is BasicStatPickup) ? byId137 : null); PickupObject byId138 = PickupObjectDatabase.GetById(FaceMelterId); FaceMelterObject = (Gun)(object)((byId138 is Gun) ? byId138 : null); PickupObject byId139 = PickupObjectDatabase.GetById(TShirtCannonId); TShirtCannonObject = (Gun)(object)((byId139 is Gun) ? byId139 : null); PickupObject byId140 = PickupObjectDatabase.GetById(TheMembraneId); TheMembraneObject = (Gun)(object)((byId140 is Gun) ? byId140 : null); PickupObject byId141 = PickupObjectDatabase.GetById(TheKilnId); TheKilnObject = (Gun)(object)((byId141 is Gun) ? byId141 : null); PickupObject byId142 = PickupObjectDatabase.GetById(ShockRifleId); ShockRifleObject = (Gun)(object)((byId142 is Gun) ? byId142 : null); PickupObject byId143 = PickupObjectDatabase.GetById(TrashcannonId); TrashcannonObject = (Gun)(object)((byId143 is Gun) ? byId143 : null); PickupObject byId144 = PickupObjectDatabase.GetById(SingularityId); SingularityObject = (SpawnObjectPlayerItem)(object)((byId144 is SpawnObjectPlayerItem) ? byId144 : null); PickupObject byId145 = PickupObjectDatabase.GetById(LaserLotusId); LaserLotusObject = (Gun)(object)((byId145 is Gun) ? byId145 : null); PickupObject byId146 = PickupObjectDatabase.GetById(BigIronId); BigIronObject = (Gun)(object)((byId146 is Gun) ? byId146 : null); PickupObject byId147 = PickupObjectDatabase.GetById(AmuletOfThePitLordId); AmuletOfThePitLordObject = (RingOfPitFriendship)(object)((byId147 is RingOfPitFriendship) ? byId147 : null); PickupObject byId148 = PickupObjectDatabase.GetById(GundromedaStrainId); GundromedaStrainObject = (GundromedaStrain)(object)((byId148 is GundromedaStrain) ? byId148 : null); PickupObject byId149 = PickupObjectDatabase.GetById(GunknightHelmetId); GunknightHelmetObject = (BulletArmorItem)(object)((byId149 is BulletArmorItem) ? byId149 : null); PickupObject byId150 = PickupObjectDatabase.GetById(GunknightGreavesId); GunknightGreavesObject = (BulletArmorItem)(object)((byId150 is BulletArmorItem) ? byId150 : null); PickupObject byId151 = PickupObjectDatabase.GetById(GunknightGauntletId); GunknightGauntletObject = (BulletArmorItem)(object)((byId151 is BulletArmorItem) ? byId151 : null); PickupObject byId152 = PickupObjectDatabase.GetById(GunknightArmorId); GunknightArmorObject = (BulletArmorItem)(object)((byId152 is BulletArmorItem) ? byId152 : null); PickupObject byId153 = PickupObjectDatabase.GetById(HeartSynthesizerId); HeartSynthesizerObject = (SpawnItemOnRoomClearItem)(object)((byId153 is SpawnItemOnRoomClearItem) ? byId153 : null); PickupObject byId154 = PickupObjectDatabase.GetById(OiledCylinderId); OiledCylinderObject = (BasicStatPickup)(object)((byId154 is BasicStatPickup) ? byId154 : null); PickupObject byId155 = PickupObjectDatabase.GetById(ShelletonKeyId); ShelletonKeyObject = (SkeletonKeyItem)(object)((byId155 is SkeletonKeyItem) ? byId155 : null); PickupObject byId156 = PickupObjectDatabase.GetById(BloodyEyeId); BloodyEyeObject = (EnemyBulletSpeedItem)(object)((byId156 is EnemyBulletSpeedItem) ? byId156 : null); PickupObject byId157 = PickupObjectDatabase.GetById(DoubleVisionId); DoubleVisionObject = (ActiveGunVolleyModificationItem)(object)((byId157 is ActiveGunVolleyModificationItem) ? byId157 : null); PickupObject byId158 = PickupObjectDatabase.GetById(BlackHoleGunId); BlackHoleGunObject = (Gun)(object)((byId158 is Gun) ? byId158 : null); PickupObject byId159 = PickupObjectDatabase.GetById(IceCubeId); IceCubeObject = (ActiveItemCooldownItem)(object)((byId159 is ActiveItemCooldownItem) ? byId159 : null); PickupObject byId160 = PickupObjectDatabase.GetById(GhostBulletsId); GhostBulletsObject = (BasicStatPickup)(object)((byId160 is BasicStatPickup) ? byId160 : null); PickupObject byId161 = PickupObjectDatabase.GetById(PileOfSoulsId); PileOfSoulsObject = (PileOfDarkSoulsPickup)(object)((byId161 is PileOfDarkSoulsPickup) ? byId161 : null); PickupObject byId162 = PickupObjectDatabase.GetById(PotionOfGunFriendshipId); PotionOfGunFriendshipObject = (ActiveBasicStatItem)(object)((byId162 is ActiveBasicStatItem) ? byId162 : null); PickupObject byId163 = PickupObjectDatabase.GetById(TanglerId); TanglerObject = (Gun)(object)((byId163 is Gun) ? byId163 : null); PickupObject byId164 = PickupObjectDatabase.GetById(GungeonAntId); GungeonAntObject = (Gun)(object)((byId164 is Gun) ? byId164 : null); PickupObject byId165 = PickupObjectDatabase.GetById(AlienEngineId); AlienEngineObject = (Gun)(object)((byId165 is Gun) ? byId165 : null); PickupObject byId166 = PickupObjectDatabase.GetById(CrestfallerId); CrestfallerObject = (Gun)(object)((byId166 is Gun) ? byId166 : null); PickupObject byId167 = PickupObjectDatabase.GetById(ProtonBackpackId); ProtonBackpackObject = (Gun)(object)((byId167 is Gun) ? byId167 : null); PickupObject byId168 = PickupObjectDatabase.GetById(GrasschopperId); GrasschopperObject = (Gun)(object)((byId168 is Gun) ? byId168 : null); PickupObject byId169 = PickupObjectDatabase.GetById(WinchesterRifleId); WinchesterRifleObject = (Gun)(object)((byId169 is Gun) ? byId169 : null); PickupObject byId170 = PickupObjectDatabase.GetById(GreyMauserId); GreyMauserObject = (Gun)(object)((byId170 is Gun) ? byId170 : null); PickupObject byId171 = PickupObjectDatabase.GetById(SerManuelsRevolverId); SerManuelsRevolverObject = (Gun)(object)((byId171 is Gun) ? byId171 : null); PickupObject byId172 = PickupObjectDatabase.GetById(TheJudgeId); TheJudgeObject = (Gun)(object)((byId172 is Gun) ? byId172 : null); PickupObject byId173 = PickupObjectDatabase.GetById(MachineFistId); MachineFistObject = (Gun)(object)((byId173 is Gun) ? byId173 : null); PickupObject byId174 = PickupObjectDatabase.GetById(DisarmingPersonalityId); DisarmingPersonalityObject = (BasicStatPickup)(object)((byId174 is BasicStatPickup) ? byId174 : null); PickupObject byId175 = PickupObjectDatabase.GetById(RollingEyeId); RollingEyeObject = (PassiveReflectItem)(object)((byId175 is PassiveReflectItem) ? byId175 : null); PickupObject byId176 = PickupObjectDatabase.GetById(RingOfFireResistanceId); RingOfFireResistanceObject = (DamageTypeModifierItem)(object)((byId176 is DamageTypeModifierItem) ? byId176 : null); PickupObject byId177 = PickupObjectDatabase.GetById(BugBootsId); BugBootsObject = (PassiveGooperItem)(object)((byId177 is PassiveGooperItem) ? byId177 : null); PickupObject byId178 = PickupObjectDatabase.GetById(FossilizedGunId); FossilizedGunObject = (Gun)(object)((byId178 is Gun) ? byId178 : null); PickupObject byId179 = PickupObjectDatabase.GetById(PeaShooterId); PeaShooterObject = (Gun)(object)((byId179 is Gun) ? byId179 : null); PickupObject byId180 = PickupObjectDatabase.GetById(GunslingersAshesId); GunslingersAshesObject = (Gun)(object)((byId180 is Gun) ? byId180 : null); PickupObject byId181 = PickupObjectDatabase.GetById(LuxinCannonId); LuxinCannonObject = (Gun)(object)((byId181 is Gun) ? byId181 : null); PickupObject byId182 = PickupObjectDatabase.GetById(CharmedBowId); CharmedBowObject = (Gun)(object)((byId182 is Gun) ? byId182 : null); PickupObject byId183 = PickupObjectDatabase.GetById(PortableTurretId); PortableTurretObject = (SpawnObjectPlayerItem)(object)((byId183 is SpawnObjectPlayerItem) ? byId183 : null); PickupObject byId184 = PickupObjectDatabase.GetById(SawedOffId); SawedOffObject = (Gun)(object)((byId184 is Gun) ? byId184 : null); PickupObject byId185 = PickupObjectDatabase.GetById(CigarettesId); CigarettesObject = (SpawnObjectPlayerItem)(object)((byId185 is SpawnObjectPlayerItem) ? byId185 : null); PickupObject byId186 = PickupObjectDatabase.GetById(IrradiatedLeadId); IrradiatedLeadObject = (BulletStatusEffectItem)(object)((byId186 is BulletStatusEffectItem) ? byId186 : null); PickupObject byId187 = PickupObjectDatabase.GetById(PoisonVialId); PoisonVialObject = (SpawnObjectPlayerItem)(object)((byId187 is SpawnObjectPlayerItem) ? byId187 : null); PickupObject byId188 = PickupObjectDatabase.GetById(CharmHornId); CharmHornObject = (RadialCharmItem)(object)((byId188 is RadialCharmItem) ? byId188 : null); PickupObject byId189 = PickupObjectDatabase.GetById(PlaguePistolId); PlaguePistolObject = (Gun)(object)((byId189 is Gun) ? byId189 : null); PickupObject byId190 = PickupObjectDatabase.GetById(PlungerId); PlungerObject = (Gun)(object)((byId190 is Gun) ? byId190 : null); PickupObject byId191 = PickupObjectDatabase.GetById(SenseOfDirectionId); SenseOfDirectionObject = (SenseOfDirectionItem)(object)((byId191 is SenseOfDirectionItem) ? byId191 : null); PickupObject byId192 = PickupObjectDatabase.GetById(GunbowId); GunbowObject = (Gun)(object)((byId192 is Gun) ? byId192 : null); PickupObject byId193 = PickupObjectDatabase.GetById(BallisticBootsId); BallisticBootsObject = (BasicStatPickup)(object)((byId193 is BasicStatPickup) ? byId193 : null); PickupObject byId194 = PickupObjectDatabase.GetById(LichyTriggerFingerId); LichyTriggerFingerObject = (BasicStatPickup)(object)((byId194 is BasicStatPickup) ? byId194 : null); PickupObject byId195 = PickupObjectDatabase.GetById(CoinCrownId); CoinCrownObject = (SpawnItemOnRoomClearItem)(object)((byId195 is SpawnItemOnRoomClearItem) ? byId195 : null); PickupObject byId196 = PickupObjectDatabase.GetById(BoxId); BoxObject = (CardboardBoxItem)(object)((byId196 is CardboardBoxItem) ? byId196 : null); PickupObject byId197 = PickupObjectDatabase.GetById(OldKnightsShieldId); OldKnightsShieldObject = (BasicStatPickup)(object)((byId197 is BasicStatPickup) ? byId197 : null); PickupObject byId198 = PickupObjectDatabase.GetById(TutorialAk47Id); TutorialAk47Object = (Gun)(object)((byId198 is Gun) ? byId198 : null); PickupObject byId199 = PickupObjectDatabase.GetById(OldKnightsHelmId); OldKnightsHelmObject = (BasicStatPickup)(object)((byId199 is BasicStatPickup) ? byId199 : null); PickupObject byId200 = PickupObjectDatabase.GetById(Cold45Id); Cold45Object = (Gun)(object)((byId200 is Gun) ? byId200 : null); PickupObject byId201 = PickupObjectDatabase.GetById(BlankId); BlankObject = (SilencerItem)(object)((byId201 is SilencerItem) ? byId201 : null); PickupObject byId202 = PickupObjectDatabase.GetById(IceBreakerId); IceBreakerObject = (Gun)(object)((byId202 is Gun) ? byId202 : null); PickupObject byId203 = PickupObjectDatabase.GetById(WristbowId); WristbowObject = (Gun)(object)((byId203 is Gun) ? byId203 : null); PickupObject byId204 = PickupObjectDatabase.GetById(ParticulatorId); ParticulatorObject = (Gun)(object)((byId204 is Gun) ? byId204 : null); PickupObject byId205 = PickupObjectDatabase.GetById(HegemonyCarbineId); HegemonyCarbineObject = (Gun)(object)((byId205 is Gun) ? byId205 : null); PickupObject byId206 = PickupObjectDatabase.GetById(HelixId); HelixObject = (Gun)(object)((byId206 is Gun) ? byId206 : null); PickupObject byId207 = PickupObjectDatabase.GetById(GildedHydraId); GildedHydraObject = (Gun)(object)((byId207 is Gun) ? byId207 : null); PickupObject byId208 = PickupObjectDatabase.GetById(SpaceFriendId); SpaceFriendObject = (PlayerOrbitalItem)(object)((byId208 is PlayerOrbitalItem) ? byId208 : null); PickupObject byId209 = PickupObjectDatabase.GetById(IbombCompanionAppId); IbombCompanionAppObject = (BombCompanionAppItem)(object)((byId209 is BombCompanionAppItem) ? byId209 : null); PickupObject byId210 = PickupObjectDatabase.GetById(AgedBellId); AgedBellObject = (RadialSlowItem)(object)((byId210 is RadialSlowItem) ? byId210 : null); PickupObject byId211 = PickupObjectDatabase.GetById(DuctTapeId); DuctTapeObject = (DuctTapeItem)(object)((byId211 is DuctTapeItem) ? byId211 : null); PickupObject byId212 = PickupObjectDatabase.GetById(CrutchId); CrutchObject = (HomingBulletsPassiveItem)(object)((byId212 is HomingBulletsPassiveItem) ? byId212 : null); PickupObject byId213 = PickupObjectDatabase.GetById(ScattershotId); ScattershotObject = (GunVolleyModificationItem)(object)((byId213 is GunVolleyModificationItem) ? byId213 : null); PickupObject byId214 = PickupObjectDatabase.GetById(NapalmStrikeId); NapalmStrikeObject = (DirectionalAttackActiveItem)(object)((byId214 is DirectionalAttackActiveItem) ? byId214 : null); PickupObject byId215 = PickupObjectDatabase.GetById(InfuriatingNote1Id); InfuriatingNote1Object = (NotePassiveItem)(object)((byId215 is NotePassiveItem) ? byId215 : null); PickupObject byId216 = PickupObjectDatabase.GetById(InfuriatingNote2Id); InfuriatingNote2Object = (NotePassiveItem)(object)((byId216 is NotePassiveItem) ? byId216 : null); PickupObject byId217 = PickupObjectDatabase.GetById(InfuriatingNote3Id); InfuriatingNote3Object = (NotePassiveItem)(object)((byId217 is NotePassiveItem) ? byId217 : null); PickupObject byId218 = PickupObjectDatabase.GetById(InfuriatingNote4Id); InfuriatingNote4Object = (NotePassiveItem)(object)((byId218 is NotePassiveItem) ? byId218 : null); PickupObject byId219 = PickupObjectDatabase.GetById(InfuriatingNote5Id); InfuriatingNote5Object = (NotePassiveItem)(object)((byId219 is NotePassiveItem) ? byId219 : null); PickupObject byId220 = PickupObjectDatabase.GetById(InfuriatingNote6Id); InfuriatingNote6Object = (NotePassiveItem)(object)((byId220 is NotePassiveItem) ? byId220 : null); PickupObject byId221 = PickupObjectDatabase.GetById(OwlId); OwlObject = (PlayerOrbitalItem)(object)((byId221 is PlayerOrbitalItem) ? byId221 : null); PickupObject byId222 = PickupObjectDatabase.GetById(GrapplingHookId); GrapplingHookObject = (GrapplingHookItem)(object)((byId222 is GrapplingHookItem) ? byId222 : null); PickupObject byId223 = PickupObjectDatabase.GetById(PrizePistolId); PrizePistolObject = (Gun)(object)((byId223 is Gun) ? byId223 : null); PickupObject byId224 = PickupObjectDatabase.GetById(AirStrikeId); AirStrikeObject = (DirectionalAttackActiveItem)(object)((byId224 is DirectionalAttackActiveItem) ? byId224 : null); PickupObject byId225 = PickupObjectDatabase.GetById(GungeonPepperId); GungeonPepperObject = (AuraItem)(object)((byId225 is AuraItem) ? byId225 : null); PickupObject byId226 = PickupObjectDatabase.GetById(RingOfChestFriendshipId); RingOfChestFriendshipObject = (AmazingChestAheadItem)(object)((byId226 is AmazingChestAheadItem) ? byId226 : null); PickupObject byId227 = PickupObjectDatabase.GetById(AncientHerosBandanaId); AncientHerosBandanaObject = (BasicStatPickup)(object)((byId227 is BasicStatPickup) ? byId227 : null); PickupObject byId228 = PickupObjectDatabase.GetById(HeavyBootsId); HeavyBootsObject = (HeavyBootsItem)(object)((byId228 is HeavyBootsItem) ? byId228 : null); PickupObject byId229 = PickupObjectDatabase.GetById(BroccoliId); BroccoliObject = (EyeOfTheTigerItem)(object)((byId229 is EyeOfTheTigerItem) ? byId229 : null); PickupObject byId230 = PickupObjectDatabase.GetById(AntibodyId); AntibodyObject = (HealingReceivedModificationItem)(object)((byId230 is HealingReceivedModificationItem) ? byId230 : null); PickupObject byId231 = PickupObjectDatabase.GetById(PinkGuonStoneId); PinkGuonStoneObject = (IounStoneOrbitalItem)(object)((byId231 is IounStoneOrbitalItem) ? byId231 : null); PickupObject byId232 = PickupObjectDatabase.GetById(WhiteGuonStoneId); WhiteGuonStoneObject = (PlayerOrbitalItem)(object)((byId232 is PlayerOrbitalItem) ? byId232 : null); PickupObject byId233 = PickupObjectDatabase.GetById(OrangeGuonStoneId); OrangeGuonStoneObject = (PlayerOrbitalItem)(object)((byId233 is PlayerOrbitalItem) ? byId233 : null); PickupObject byId234 = PickupObjectDatabase.GetById(ClearGuonStoneId); ClearGuonStoneObject = (IounStoneOrbitalItem)(object)((byId234 is IounStoneOrbitalItem) ? byId234 : null); PickupObject byId235 = PickupObjectDatabase.GetById(OldKnightsFlaskId); OldKnightsFlaskObject = (EstusFlaskItem)(object)((byId235 is EstusFlaskItem) ? byId235 : null); PickupObject byId236 = PickupObjectDatabase.GetById(RedGuonStoneId); RedGuonStoneObject = (IounStoneOrbitalItem)(object)((byId236 is IounStoneOrbitalItem) ? byId236 : null); PickupObject byId237 = PickupObjectDatabase.GetById(BlueGuonStoneId); BlueGuonStoneObject = (IounStoneOrbitalItem)(object)((byId237 is IounStoneOrbitalItem) ? byId237 : null); PickupObject byId238 = PickupObjectDatabase.GetById(RiddleOfLeadId); RiddleOfLeadObject = (EyeOfTheTigerItem)(object)((byId238 is EyeOfTheTigerItem) ? byId238 : null); PickupObject byId239 = PickupObjectDatabase.GetById(IronCoinId); IronCoinObject = (IronCoinItem)(object)((byId239 is IronCoinItem) ? byId239 : null); PickupObject byId240 = PickupObjectDatabase.GetById(LaserSightId); LaserSightObject = (LaserSightItem)(object)((byId240 is LaserSightItem) ? byId240 : null); PickupObject byId241 = PickupObjectDatabase.GetById(DarkMarkerId); DarkMarkerObject = (Gun)(object)((byId241 is Gun) ? byId241 : null); PickupObject byId242 = PickupObjectDatabase.GetById(FlareGunId); FlareGunObject = (Gun)(object)((byId242 is Gun) ? byId242 : null); PickupObject byId243 = PickupObjectDatabase.GetById(SpiceId); SpiceObject = (SpiceItem)(object)((byId243 is SpiceItem) ? byId243 : null); PickupObject byId244 = PickupObjectDatabase.GetById(FatBulletsId); FatBulletsObject = (BasicStatPickup)(object)((byId244 is BasicStatPickup) ? byId244 : null); PickupObject byId245 = PickupObjectDatabase.GetById(FrostBulletsId); FrostBulletsObject = (BulletStatusEffectItem)(object)((byId245 is BulletStatusEffectItem) ? byId245 : null); PickupObject byId246 = PickupObjectDatabase.GetById(SuperHotWatchId); SuperHotWatchObject = (SuperhotItem)(object)((byId246 is SuperhotItem) ? byId246 : null); PickupObject byId247 = PickupObjectDatabase.GetById(DrumClipId); DrumClipObject = (BasicStatPickup)(object)((byId247 is BasicStatPickup) ? byId247 : null); PickupObject byId248 = PickupObjectDatabase.GetById(GungeonBlueprintId); GungeonBlueprintObject = (CartographersRingItem)(object)((byId248 is CartographersRingItem) ? byId248 : null); PickupObject byId249 = PickupObjectDatabase.GetById(HomingBulletsId); HomingBulletsObject = (HomingBulletsPassiveItem)(object)((byId249 is HomingBulletsPassiveItem) ? byId249 : null); PickupObject byId250 = PickupObjectDatabase.GetById(BloodBroochId); BloodBroochObject = (RegenerationPassiveItem)(object)((byId250 is RegenerationPassiveItem) ? byId250 : null); PickupObject byId251 = PickupObjectDatabase.GetById(Plus1BulletsId); Plus1BulletsObject = (BasicStatPickup)(object)((byId251 is BasicStatPickup) ? byId251 : null); PickupObject byId252 = PickupObjectDatabase.GetById(BackupGunId); BackupGunObject = (GunVolleyModificationItem)(object)((byId252 is GunVolleyModificationItem) ? byId252 : null); PickupObject byId253 = PickupObjectDatabase.GetById(BouncyBulletsId); BouncyBulletsObject = (BasicStatPickup)(object)((byId253 is BasicStatPickup) ? byId253 : null); PickupObject byId254 = PickupObjectDatabase.GetById(SevenLeafCloverId); SevenLeafCloverObject = (SevenLeafCloverItem)(object)((byId254 is SevenLeafCloverItem) ? byId254 : null); PickupObject byId255 = PickupObjectDatabase.GetById(SunglassesId); SunglassesObject = (SunglassesItem)(object)((byId255 is SunglassesItem) ? byId255 : null); PickupObject byId256 = PickupObjectDatabase.GetById(MeatbunId); MeatbunObject = (HealPlayerItem)(object)((byId256 is HealPlayerItem) ? byId256 : null); PickupObject byId257 = PickupObjectDatabase.GetById(MolotovLauncherId); MolotovLauncherObject = (Gun)(object)((byId257 is Gun) ? byId257 : null); PickupObject byId258 = PickupObjectDatabase.GetById(MimicToothNecklaceId); MimicToothNecklaceObject = (MimicToothNecklaceItem)(object)((byId258 is MimicToothNecklaceItem) ? byId258 : null); PickupObject byId259 = PickupObjectDatabase.GetById(RingOfMimicFriendshipId); RingOfMimicFriendshipObject = (MimicRingItem)(object)((byId259 is MimicRingItem) ? byId259 : null); PickupObject byId260 = PickupObjectDatabase.GetById(HotLeadId); HotLeadObject = (BulletStatusEffectItem)(object)((byId260 is BulletStatusEffectItem) ? byId260 : null); PickupObject byId261 = PickupObjectDatabase.GetById(MetashopBreachItemOldId); MetashopBreachItemOldObject = (ItemBlueprintItem)(object)((byId261 is ItemBlueprintItem) ? byId261 : null); PickupObject byId262 = PickupObjectDatabase.GetById(HegemonyCreditId); HegemonyCreditObject = (CurrencyPickup)(object)((byId262 is CurrencyPickup) ? byId262 : null); PickupObject byId263 = PickupObjectDatabase.GetById(ShockRoundsId); ShockRoundsObject = (ComplexProjectileModifier)(object)((byId263 is ComplexProjectileModifier) ? byId263 : null); PickupObject byId264 = PickupObjectDatabase.GetById(SuperSpaceTurtlesGunId); SuperSpaceTurtlesGunObject = (Gun)(object)((byId264 is Gun) ? byId264 : null); PickupObject byId265 = PickupObjectDatabase.GetById(DogId); DogObject = (CompanionItem)(object)((byId265 is CompanionItem) ? byId265 : null); PickupObject byId266 = PickupObjectDatabase.GetById(SuperSpaceTurtleId); SuperSpaceTurtleObject = (CompanionItem)(object)((byId266 is CompanionItem) ? byId266 : null); PickupObject byId267 = PickupObjectDatabase.GetById(BulletThatCanKillThePastId); BulletThatCanKillThePastObject = (BulletThatCanKillThePast)(object)((byId267 is BulletThatCanKillThePast) ? byId267 : null); PickupObject byId268 = PickupObjectDatabase.GetById(ExplosiveRoundsId); ExplosiveRoundsObject = (ComplexProjectileModifier)(object)((byId268 is ComplexProjectileModifier) ? byId268 : null); PickupObject byId269 = PickupObjectDatabase.GetById(OldCrestId); OldCrestObject = (CathedralCrestItem)(object)((byId269 is CathedralCrestItem) ? byId269 : null); PickupObject byId270 = PickupObjectDatabase.GetById(EscapeRopeId); EscapeRopeObject = (EscapeRopeItem)(object)((byId270 is EscapeRopeItem) ? byId270 : null); PickupObject byId271 = PickupObjectDatabase.GetById(WaxWingsId); WaxWingsObject = (WingsItem)(object)((byId271 is WingsItem) ? byId271 : null); PickupObject byId272 = PickupObjectDatabase.GetById(ClusterMineId); ClusterMineObject = (SpawnObjectPlayerItem)(object)((byId272 is SpawnObjectPlayerItem) ? byId272 : null); PickupObject byId273 = PickupObjectDatabase.GetById(CloranthyRingId); CloranthyRingObject = (BasicStatPickup)(object)((byId273 is BasicStatPickup) ? byId273 : null); PickupObject byId274 = PickupObjectDatabase.GetById(FairyWingsId); FairyWingsObject = (WingsItem)(object)((byId274 is WingsItem) ? byId274 : null); PickupObject byId275 = PickupObjectDatabase.GetById(CloneId); CloneObject = (ExtraLifeItem)(object)((byId275 is ExtraLifeItem) ? byId275 : null); PickupObject byId276 = PickupObjectDatabase.GetById(BlastHelmetId); BlastHelmetObject = (HelmetItem)(object)((byId276 is HelmetItem) ? byId276 : null); PickupObject byId277 = PickupObjectDatabase.GetById(MonsterBloodId); MonsterBloodObject = (PassiveGooperItem)(object)((byId277 is PassiveGooperItem) ? byId277 : null); PickupObject byId278 = PickupObjectDatabase.GetById(NanomachinesId); NanomachinesObject = (NanomachinesItem)(object)((byId278 is NanomachinesItem) ? byId278 : null); PickupObject byId279 = PickupObjectDatabase.GetById(GunbootsId); GunbootsObject = (DownwellBootsItem)(object)((byId279 is DownwellBootsItem) ? byId279 : null); PickupObject byId280 = PickupObjectDatabase.GetById(GnawedKeyId); GnawedKeyObject = (SpecialKeyItem)(object)((byId280 is SpecialKeyItem) ? byId280 : null); PickupObject byId281 = PickupObjectDatabase.GetById(R2g2Id); R2g2Object = (CompanionItem)(object)((byId281 is CompanionItem) ? byId281 : null); PickupObject byId282 = PickupObjectDatabase.GetById(TicketId); TicketObject = (ActiveSummonItem)(object)((byId282 is ActiveSummonItem) ? byId282 : null); PickupObject byId283 = PickupObjectDatabase.GetById(GoldAmmoletId); GoldAmmoletObject = (BlankModificationItem)(object)((byId283 is BlankModificationItem) ? byId283 : null); PickupObject byId284 = PickupObjectDatabase.GetById(LodestoneAmmoletId); LodestoneAmmoletObject = (BlankModificationItem)(object)((byId284 is BlankModificationItem) ? byId284 : null); PickupObject byId285 = PickupObjectDatabase.GetById(AngryBulletsId); AngryBulletsObject = (ModifyProjectileOnEnemyImpact)(object)((byId285 is ModifyProjectileOnEnemyImpact) ? byId285 : null); PickupObject byId286 = PickupObjectDatabase.GetById(ChaosAmmoletId); ChaosAmmoletObject = (BlankModificationItem)(object)((byId286 is BlankModificationItem) ? byId286 : null); PickupObject byId287 = PickupObjectDatabase.GetById(Number2Id); Number2Object = (CoopPassiveItem)(object)((byId287 is CoopPassiveItem) ? byId287 : null); PickupObject byId288 = PickupObjectDatabase.GetById(CorsairId); CorsairObject = (Gun)(object)((byId288 is Gun) ? byId288 : null); PickupObject byId289 = PickupObjectDatabase.GetById(ChargeShotId); ChargeShotObject = (Gun)(object)((byId289 is Gun) ? byId289 : null); PickupObject byId290 = PickupObjectDatabase.GetById(ZillaShotgunId); ZillaShotgunObject = (Gun)(object)((byId290 is Gun) ? byId290 : null); PickupObject byId291 = PickupObjectDatabase.GetById(TheEmperorId); TheEmperorObject = (Gun)(object)((byId291 is Gun) ? byId291 : null); PickupObject byId292 = PickupObjectDatabase.GetById(ScienceCannonId); ScienceCannonObject = (Gun)(object)((byId292 is Gun) ? byId292 : null); PickupObject byId293 = PickupObjectDatabase.GetById(LilBomberId); LilBomberObject = (Gun)(object)((byId293 is Gun) ? byId293 : null); PickupObject byId294 = PickupObjectDatabase.GetById(MutationId); MutationObject = (Gun)(object)((byId294 is Gun) ? byId294 : null); PickupObject byId295 = PickupObjectDatabase.GetById(WindUpGunId); WindUpGunObject = (Gun)(object)((byId295 is Gun) ? byId295 : null); PickupObject byId296 = PickupObjectDatabase.GetById(SilencerId); SilencerObject = (Gun)(object)((byId296 is Gun) ? byId296 : null); PickupObject byId297 = PickupObjectDatabase.GetById(PitchforkId); PitchforkObject = (Gun)(object)((byId297 is Gun) ? byId297 : null); PickupObject byId298 = PickupObjectDatabase.GetById(CompositeGunId); CompositeGunObject = (Gun)(object)((byId298 is Gun) ? byId298 : null); PickupObject byId299 = PickupObjectDatabase.GetById(GuntherId); GuntherObject = (Gun)(object)((byId299 is Gun) ? byId299 : null); PickupObject byId300 = PickupObjectDatabase.GetById(MahogunyId); MahogunyObject = (Gun)(object)((byId300 is Gun) ? byId300 : null); PickupObject byId301 = PickupObjectDatabase.GetById(LowerCaseRId); LowerCaseRObject = (Gun)(object)((byId301 is Gun) ? byId301 : null); PickupObject byId302 = PickupObjectDatabase.GetById(BuzzkillId); BuzzkillObject = (Gun)(object)((byId302 is Gun) ? byId302 : null); PickupObject byId303 = PickupObjectDatabase.GetById(UraniumAmmoletId); UraniumAmmoletObject = (BlankModificationItem)(object)((byId303 is BlankModificationItem) ? byId303 : null); PickupObject byId304 = PickupObjectDatabase.GetById(CopperAmmoletId); CopperAmmoletObject = (BlankModificationItem)(object)((byId304 is BlankModificationItem) ? byId304 : null); PickupObject byId305 = PickupObjectDatabase.GetById(FrostAmmoletId); FrostAmmoletObject = (BlankModificationItem)(object)((byId305 is BlankModificationItem) ? byId305 : null); PickupObject byId306 = PickupObjectDatabase.GetById(FightsabreId); FightsabreObject = (Gun)(object)((byId306 is Gun) ? byId306 : null); PickupObject byId307 = PickupObjectDatabase.GetById(HuntsmanId); HuntsmanObject = (Gun)(object)((byId307 is Gun) ? byId307 : null); PickupObject byId308 = PickupObjectDatabase.GetById(ShotgrubId); ShotgrubObject = (Gun)(object)((byId308 is Gun) ? byId308 : null); PickupObject byId309 = PickupObjectDatabase.GetById(PrimePrimerId); PrimePrimerObject = (AncientPrimerItem)(object)((byId309 is AncientPrimerItem) ? byId309 : null); PickupObject byId310 = PickupObjectDatabase.GetById(PlanarLeadId); PlanarLeadObject = (AstralSlugItem)(object)((byId310 is AstralSlugItem) ? byId310 : null); PickupObject byId311 = PickupObjectDatabase.GetById(ObsidianShellCasingId); ObsidianShellCasingObject = (ObsidianShellItem)(object)((byId311 is ObsidianShellItem) ? byId311 : null); PickupObject byId312 = PickupObjectDatabase.GetById(ArcaneGunpowderId); ArcaneGunpowderObject = (ArcaneGunpowderItem)(object)((byId312 is ArcaneGunpowderItem) ? byId312 : null); PickupObject byId313 = PickupObjectDatabase.GetById(ShadowBulletsId); ShadowBulletsObject = (ComplexProjectileModifier)(object)((byId313 is ComplexProjectileModifier) ? byId313 : null); PickupObject byId314 = PickupObjectDatabase.GetById(EnragingPhotoId); EnragingPhotoObject = (RagePassiveItem)(object)((byId314 is RagePassiveItem) ? byId314 : null); PickupObject byId315 = PickupObjectDatabase.GetById(MilitaryTrainingId); MilitaryTrainingObject = (BasicStatPickup)(object)((byId315 is BasicStatPickup) ? byId315 : null); PickupObject byId316 = PickupObjectDatabase.GetById(ChromesteelAssaultRifleId); ChromesteelAssaultRifleObject = (Gun)(object)((byId316 is Gun) ? byId316 : null); PickupObject byId317 = PickupObjectDatabase.GetById(TrustyLockpicksId); TrustyLockpicksObject = (LockpicksItem)(object)((byId317 is LockpicksItem) ? byId317 : null); PickupObject byId318 = PickupObjectDatabase.GetById(CatClawId); CatClawObject = (Gun)(object)((byId318 is Gun) ? byId318 : null); PickupObject byId319 = PickupObjectDatabase.GetById(RailgunId); RailgunObject = (Gun)(object)((byId319 is Gun) ? byId319 : null); PickupObject byId320 = PickupObjectDatabase.GetById(CompressedAirTankId); CompressedAirTankObject = (Gun)(object)((byId320 is Gun) ? byId320 : null); PickupObject byId321 = PickupObjectDatabase.GetById(SnakemakerId); SnakemakerObject = (Gun)(object)((byId321 is Gun) ? byId321 : null); PickupObject byId322 = PickupObjectDatabase.GetById(BulletBoreId); BulletBoreObject = (Gun)(object)((byId322 is Gun) ? byId322 : null); PickupObject byId323 = PickupObjectDatabase.GetById(TrickGunId); TrickGunObject = (Gun)(object)((byId323 is Gun) ? byId323 : null); PickupObject byId324 = PickupObjectDatabase.GetById(HeartOfIceId); HeartOfIceObject = (SpawnProjectileOnDamagedItem)(object)((byId324 is SpawnProjectileOnDamagedItem) ? byId324 : null); PickupObject byId325 = PickupObjectDatabase.GetById(MassShotgunId); MassShotgunObject = (Gun)(object)((byId325 is Gun) ? byId325 : null); PickupObject byId326 = PickupObjectDatabase.GetById(MolotovId); MolotovObject = (SpawnObjectPlayerItem)(object)((byId326 is SpawnObjectPlayerItem) ? byId326 : null); PickupObject byId327 = PickupObjectDatabase.GetById(HuntersJournalId); HuntersJournalObject = (BasicStatPickup)(object)((byId327 is BasicStatPickup) ? byId327 : null); PickupObject byId328 = PickupObjectDatabase.GetById(ElTigreId); ElTigreObject = (Gun)(object)((byId328 is Gun) ? byId328 : null); PickupObject byId329 = PickupObjectDatabase.GetById(BaitLauncherId); BaitLauncherObject = (Gun)(object)((byId329 is Gun) ? byId329 : null); PickupObject byId330 = PickupObjectDatabase.GetById(PrototypeRailgunId); PrototypeRailgunObject = (Gun)(object)((byId330 is Gun) ? byId330 : null); PickupObject byId331 = PickupObjectDatabase.GetById(RcRocketId); RcRocketObject = (Gun)(object)((byId331 is Gun) ? byId331 : null); PickupObject byId332 = PickupObjectDatabase.GetById(AlphaBulletsId); AlphaBulletsObject = (ClipBulletModifierItem)(object)((byId332 is ClipBulletModifierItem) ? byId332 : null); PickupObject byId333 = PickupObjectDatabase.GetById(OmegaBulletsId); OmegaBulletsObject = (ClipBulletModifierItem)(object)((byId333 is ClipBulletModifierItem) ? byId333 : null); PickupObject byId334 = PickupObjectDatabase.GetById(EasyReloadBulletsId); EasyReloadBulletsObject = (MoveAmmoToClipItem)(object)((byId334 is MoveAmmoToClipItem) ? byId334 : null); PickupObject byId335 = PickupObjectDatabase.GetById(BrickBreakerId); BrickBreakerObject = (Gun)(object)((byId335 is Gun) ? byId335 : null); PickupObject byId336 = PickupObjectDatabase.GetById(ExcaliberId); ExcaliberObject = (Gun)(object)((byId336 is Gun) ? byId336 : null); PickupObject byId337 = PickupObjectDatabase.GetById(DerringerId); DerringerObject = (Gun)(object)((byId337 is Gun) ? byId337 : null); PickupObject byId338 = PickupObjectDatabase.GetById(ShotgunFullOfLoveId); ShotgunFullOfLoveObject = (Gun)(object)((byId338 is Gun) ? byId338 : null); PickupObject byId339 = PickupObjectDatabase.GetById(BetrayersShieldId); BetrayersShieldObject = (Gun)(object)((byId339 is Gun) ? byId339 : null); PickupObject byId340 = PickupObjectDatabase.GetById(TripleCrossbowId); TripleCrossbowObject = (Gun)(object)((byId340 is Gun) ? byId340 : null); PickupObject byId341 = PickupObjectDatabase.GetById(SlingId); SlingObject = (Gun)(object)((byId341 is Gun) ? byId341 : null); PickupObject byId342 = PickupObjectDatabase.GetById(FlashRayId); FlashRayObject = (Gun)(object)((byId342 is Gun) ? byId342 : null); PickupObject byId343 = PickupObjectDatabase.GetById(PhoenixId); PhoenixObject = (Gun)(object)((byId343 is Gun) ? byId343 : null); PickupObject byId344 = PickupObjectDatabase.GetById(HexagunId); HexagunObject = (Gun)(object)((byId344 is Gun) ? byId344 : null); PickupObject byId345 = PickupObjectDatabase.GetById(FrostGiantId); FrostGiantObject = (Gun)(object)((byId345 is Gun) ? byId345 : null); PickupObject byId346 = PickupObjectDatabase.GetById(CobaltHammerId); CobaltHammerObject = (Gun)(object)((byId346 is Gun) ? byId346 : null); PickupObject byId347 = PickupObjectDatabase.GetById(CellKeyId); CellKeyObject = (NPCCellKeyItem)(object)((byId347 is NPCCellKeyItem) ? byId347 : null); PickupObject byId348 = PickupObjectDatabase.GetById(AnvillainId); AnvillainObject = (Gun)(object)((byId348 is Gun) ? byId348 : null); PickupObject byId349 = PickupObjectDatabase.GetById(MineCutterId); MineCutterObject = (Gun)(object)((byId349 is Gun) ? byId349 : null); PickupObject byId350 = PickupObjectDatabase.GetById(StaffOfFirepowerId); StaffOfFirepowerObject = (Gun)(object)((byId350 is Gun) ? byId350 : null); PickupObject byId351 = PickupObjectDatabase.GetById(TableTechSightId); TableTechSightObject = (TableFlipItem)(object)((byId351 is TableFlipItem) ? byId351 : null); PickupObject byId352 = PickupObjectDatabase.GetById(TableTechMoneyId); TableTechMoneyObject = (TableFlipItem)(object)((byId352 is TableFlipItem) ? byId352 : null); PickupObject byId353 = PickupObjectDatabase.GetById(TableTechRocketId); TableTechRocketObject = (TableFlipItem)(object)((byId353 is TableFlipItem) ? byId353 : null); PickupObject byId354 = PickupObjectDatabase.GetById(TableTechRageId); TableTechRageObject = (TableFlipItem)(object)((byId354 is TableFlipItem) ? byId354 : null); PickupObject byId355 = PickupObjectDatabase.GetById(TableTechBlanksId); TableTechBlanksObject = (TableFlipItem)(object)((byId355 is TableFlipItem) ? byId355 : null); PickupObject byId356 = PickupObjectDatabase.GetById(GungineId); GungineObject = (Gun)(object)((byId356 is Gun) ? byId356 : null); PickupObject byId357 = PickupObjectDatabase.GetById(SnowballerId); SnowballerObject = (Gun)(object)((byId357 is Gun) ? byId357 : null); PickupObject byId358 = PickupObjectDatabase.GetById(MeltedRockId); MeltedRockObject = (CorpseExplodeActiveItem)(object)((byId358 is CorpseExplodeActiveItem) ? byId358 : null); PickupObject byId359 = PickupObjectDatabase.GetById(SirenId); SirenObject = (Gun)(object)((byId359 is Gun) ? byId359 : null); PickupObject byId360 = PickupObjectDatabase.GetById(RattlerId); RattlerObject = (Gun)(object)((byId360 is Gun) ? byId360 : null); PickupObject byId361 = PickupObjectDatabase.GetById(SixthChamberId); SixthChamberObject = (ChamberOfEvilItem)(object)((byId361 is ChamberOfEvilItem) ? byId361 : null); PickupObject byId362 = PickupObjectDatabase.GetById(BustedTelevisionId); BustedTelevisionObject = (RobotUnlockTelevisionItem)(object)((byId362 is RobotUnlockTelevisionItem) ? byId362 : null); PickupObject byId363 = PickupObjectDatabase.GetById(BatteryBulletsId); BatteryBulletsObject = (BulletStatusEffectItem)(object)((byId363 is BulletStatusEffectItem) ? byId363 : null); PickupObject byId364 = PickupObjectDatabase.GetById(CoolantLeakId); CoolantLeakObject = (DirectionalAttackActiveItem)(object)((byId364 is DirectionalAttackActiveItem) ? byId364 : null); PickupObject byId365 = PickupObjectDatabase.GetById(FriendshipCookieId); FriendshipCookieObject = (HealPlayerItem)(object)((byId365 is HealPlayerItem) ? byId365 : null); PickupObject byId366 = PickupObjectDatabase.GetById(HerosSwordId); HerosSwordObject = (HeroSwordItem)(object)((byId366 is HeroSwordItem) ? byId366 : null); PickupObject byId367 = PickupObjectDatabase.GetById(LiveAmmoId); LiveAmmoObject = (LiveAmmoItem)(object)((byId367 is LiveAmmoItem) ? byId367 : null); PickupObject byId368 = PickupObjectDatabase.GetById(ReplacementArmId); ReplacementArmObject = (RobotArmItem)(object)((byId368 is RobotArmItem) ? byId368 : null); PickupObject byId369 = PickupObjectDatabase.GetById(BalloonId); BalloonObject = (RobotArmBalloonsItem)(object)((byId369 is RobotArmBalloonsItem) ? byId369 : null); PickupObject byId370 = PickupObjectDatabase.GetById(BlasphemyId); BlasphemyObject = (Gun)(object)((byId370 is Gun) ? byId370 : null); PickupObject byId371 = PickupObjectDatabase.GetById(TrorcBreachItemId); TrorcBreachItemObject = (ItemBlueprintItem)(object)((byId371 is ItemBlueprintItem) ? byId371 : null); PickupObject byId372 = PickupObjectDatabase.GetById(HeartHolsterId); HeartHolsterObject = (BasicStatPickup)(object)((byId372 is BasicStatPickup) ? byId372 : null); PickupObject byId373 = PickupObjectDatabase.GetById(HeartLunchboxId); HeartLunchboxObject = (BasicStatPickup)(object)((byId373 is BasicStatPickup) ? byId373 : null); PickupObject byId374 = PickupObjectDatabase.GetById(HeartLocketId); HeartLocketObject = (BasicStatPickup)(object)((byId374 is BasicStatPickup) ? byId374 : null); PickupObject byId375 = PickupObjectDatabase.GetById(HeartBottleId); HeartBottleObject = (BasicStatPickup)(object)((byId375 is BasicStatPickup) ? byId375 : null); PickupObject byId376 = PickupObjectDatabase.GetById(HeartPurseId); HeartPurseObject = (BasicStatPickup)(object)((byId376 is BasicStatPickup) ? byId376 : null); PickupObject byId377 = PickupObjectDatabase.GetById(ShotgaColaId); ShotgaColaObject = (BasicStatPickup)(object)((byId377 is BasicStatPickup) ? byId377 : null); PickupObject byId378 = PickupObjectDatabase.GetById(ShotgunCoffeeId); ShotgunCoffeeObject = (BasicStatPickup)(object)((byId378 is BasicStatPickup) ? byId378 : null); PickupObject byId379 = PickupObjectDatabase.GetById(GooptonBreachItemId); GooptonBreachItemObject = (ItemBlueprintItem)(object)((byId379 is ItemBlueprintItem) ? byId379 : null); PickupObject byId380 = PickupObjectDatabase.GetById(LiquidValkyrieId); LiquidValkyrieObject = (EnemyBulletSpeedItem)(object)((byId380 is EnemyBulletSpeedItem) ? byId380 : null); PickupObject byId381 = PickupObjectDatabase.GetById(JarOfBeesId); JarOfBeesObject = (SpawnObjectPlayerItem)(object)((byId381 is SpawnObjectPlayerItem) ? byId381 : null); PickupObject byId382 = PickupObjectDatabase.GetById(StuffedStarId); StuffedStarObject = (TemporaryInvulnerabilityPlayerItem)(object)((byId382 is TemporaryInvulnerabilityPlayerItem) ? byId382 : null); PickupObject byId383 = PickupObjectDatabase.GetById(BulletIdolId); BulletIdolObject = (OnDamagedPassiveItem)(object)((byId383 is OnDamagedPassiveItem) ? byId383 : null); PickupObject byId384 = PickupObjectDatabase.GetById(MustacheId); MustacheObject = (OnPurchasePassiveItem)(object)((byId384 is OnPurchasePassiveItem) ? byId384 : null); PickupObject byId385 = PickupObjectDatabase.GetById(BloodiedScarfId); BloodiedScarfObject = (BlinkPassiveItem)(object)((byId385 is BlinkPassiveItem) ? byId385 : null); PickupObject byId386 = PickupObjectDatabase.GetById(MuscleRelaxantId); MuscleRelaxantObject = (GunClassPassiveItem)(object)((byId386 is GunClassPassiveItem) ? byId386 : null); PickupObject byId387 = PickupObjectDatabase.GetById(ExplosiveDecoyId); ExplosiveDecoyObject = (SpawnObjectPlayerItem)(object)((byId387 is SpawnObjectPlayerItem) ? byId387 : null); PickupObject byId388 = PickupObjectDatabase.GetById(BracketKeyId); BracketKeyObject = (DamageEnemiesInRadiusItem)(object)((byId388 is DamageEnemiesInRadiusItem) ? byId388 : null); PickupObject byId389 = PickupObjectDatabase.GetById(RubyBraceletId); RubyBraceletObject = (ThrownGunPassiveItem)(object)((byId389 is ThrownGunPassiveItem) ? byId389 : null); PickupObject byId390 = PickupObjectDatabase.GetById(EmeraldBraceletId); EmeraldBraceletObject = (ThrownGunPassiveItem)(object)((byId390 is ThrownGunPassiveItem) ? byId390 : null); PickupObject byId391 = PickupObjectDatabase.GetById(BadgeId); BadgeObject = (CompanionItem)(object)((byId391 is CompanionItem) ? byId391 : null); PickupObject byId392 = PickupObjectDatabase.GetById(BigBoyId); BigBoyObject = (TargetedAttackPlayerItem)(object)((byId392 is TargetedAttackPlayerItem) ? byId392 : null); PickupObject byId393 = PickupObjectDatabase.GetById(TridentId); TridentObject = (Gun)(object)((byId393 is Gun) ? byId393 : null); PickupObject byId394 = PickupObjectDatabase.GetById(TheScramblerId); TheScramblerObject = (Gun)(object)((byId394 is Gun) ? byId394 : null); PickupObject byId395 = PickupObjectDatabase.GetById(ShieldOfTheMaidenId); ShieldOfTheMaidenObject = (ActiveShieldItem)(object)((byId395 is ActiveShieldItem) ? byId395 : null); PickupObject byId396 = PickupObjectDatabase.GetById(BoomerangId); BoomerangObject = (SpawnObjectPlayerItem)(object)((byId396 is SpawnObjectPlayerItem) ? byId396 : null); PickupObject byId397 = PickupObjectDatabase.GetById(TeleporterPrototypeId); TeleporterPrototypeObject = (TeleporterPrototypeItem)(object)((byId397 is TeleporterPrototypeItem) ? byId397 : null); PickupObject byId398 = PickupObjectDatabase.GetById(ArmorSynthesizerId); ArmorSynthesizerObject = (SpawnItemOnRoomClearItem)(object)((byId398 is SpawnItemOnRoomClearItem) ? byId398 : null); PickupObject byId399 = PickupObjectDatabase.GetById(PigId); PigObject = (CompanionItem)(object)((byId399 is CompanionItem) ? byId399 : null); PickupObject byId400 = PickupObjectDatabase.GetById(SpongeId); SpongeObject = (PassiveGooperItem)(object)((byId400 is PassiveGooperItem) ? byId400 : null); PickupObject byId401 = PickupObjectDatabase.GetById(GasMaskId); GasMaskObject = (DamageTypeModifierItem)(object)((byId401 is DamageTypeModifierItem) ? byId401 : null); PickupObject byId402 = PickupObjectDatabase.GetById(HazmatSuitId); HazmatSuitObject = (DamageTypeModifierItem)(object)((byId402 is DamageTypeModifierItem) ? byId402 : null); PickupObject byId403 = PickupObjectDatabase.GetById(RingOfTriggersId); RingOfTriggersObject = (OnPlayerItemUsedItem)(object)((byId403 is OnPlayerItemUsedItem) ? byId403 : null); PickupObject byId404 = PickupObjectDatabase.GetById(ArmorOfThornsId); ArmorOfThornsObject = (SpikedArmorItem)(object)((byId404 is SpikedArmorItem) ? byId404 : null); PickupObject byId405 = PickupObjectDatabase.GetById(RingOfEtherealFormId); RingOfEtherealFormObject = (GaseousFormPlayerItem)(object)((byId405 is GaseousFormPlayerItem) ? byId405 : null); PickupObject byId406 = PickupObjectDatabase.GetById(ChaffGrenadeId); ChaffGrenadeObject = (SpawnObjectPlayerItem)(object)((byId406 is SpawnObjectPlayerItem) ? byId406 : null); PickupObject byId407 = PickupObjectDatabase.GetById(BlankCompanionsRingId); BlankCompanionsRingObject = (CompanionItem)(object)((byId407 is CompanionItem) ? byId407 : null); PickupObject byId408 = PickupObjectDatabase.GetById(SmokeBombId); SmokeBombObject = (ConsumableStealthItem)(object)((byId408 is ConsumableStealthItem) ? byId408 : null); PickupObject byId409 = PickupObjectDatabase.GetById(RingOfTheResourcefulRatId); RingOfTheResourcefulRatObject = (RingOfResourcefulRatItem)(object)((byId409 is RingOfResourcefulRatItem) ? byId409 : null); PickupObject byId410 = PickupObjectDatabase.GetById(ShellegunId); ShellegunObject = (Gun)(object)((byId410 is Gun) ? byId410 : null); PickupObject byId411 = PickupObjectDatabase.GetById(TableTechStunId); TableTechStunObject = (TableFlipItem)(object)((byId411 is TableFlipItem) ? byId411 : null); PickupObject byId412 = PickupObjectDatabase.GetById(GreenGuonStoneId); GreenGuonStoneObject = (IounStoneOrbitalItem)(object)((byId412 is IounStoneOrbitalItem) ? byId412 : null); PickupObject byId413 = PickupObjectDatabase.GetById(MasterRound5Id); MasterRound5Object = (BasicStatPickup)(object)((byId413 is BasicStatPickup) ? byId413 : null); PickupObject byId414 = PickupObjectDatabase.GetById(MasterRound3Id); MasterRound3Object = (BasicStatPickup)(object)((byId414 is BasicStatPickup) ? byId414 : null); PickupObject byId415 = PickupObjectDatabase.GetById(MasterRound1Id); MasterRound1Object = (BasicStatPickup)(object)((byId415 is BasicStatPickup) ? byId415 : null); PickupObject byId416 = PickupObjectDatabase.GetById(MasterRound4Id); MasterRound4Object = (BasicStatPickup)(object)((byId416 is BasicStatPickup) ? byId416 : null); PickupObject byId417 = PickupObjectDatabase.GetById(MasterRound2Id); MasterRound2Object = (BasicStatPickup)(object)((byId417 is BasicStatPickup) ? byId417 : null); PickupObject byId418 = PickupObjectDatabase.GetById(GummyGunId); GummyGunObject = (Gun)(object)((byId418 is Gun) ? byId418 : null); PickupObject byId419 = PickupObjectDatabase.GetById(HiddenCompartmentId); HiddenCompartmentObject = (BasicStatPickup)(object)((byId419 is BasicStatPickup) ? byId419 : null); PickupObject byId420 = PickupObjectDatabase.GetById(AbyssalTentacleId); AbyssalTentacleObject = (Gun)(object)((byId420 is Gun) ? byId420 : null); PickupObject byId421 = PickupObjectDatabase.GetById(QuadLaserId); QuadLaserObject = (Gun)(object)((byId421 is Gun) ? byId421 : null); PickupObject byId422 = PickupObjectDatabase.GetById(MicrotransactionGunId); MicrotransactionGunObject = (Gun)(object)((byId422 is Gun) ? byId422 : null); PickupObject byId423 = PickupObjectDatabase.GetById(OriguniId); OriguniObject = (Gun)(object)((byId423 is Gun) ? byId423 : null); PickupObject byId424 = PickupObjectDatabase.GetById(BananaId); BananaObject = (Gun)(object)((byId424 is Gun) ? byId424 : null); PickupObject byId425 = PickupObjectDatabase.GetById(SuperMeatGunId); SuperMeatGunObject = (Gun)(object)((byId425 is Gun) ? byId425 : null); PickupObject byId426 = PickupObjectDatabase.GetById(MakeshiftCannonId); MakeshiftCannonObject = (Gun)(object)((byId426 is Gun) ? byId426 : null); PickupObject byId427 = PickupObjectDatabase.GetById(CameraId); CameraObject = (Gun)(object)((byId427 is Gun) ? byId427 : null); PickupObject byId428 = PickupObjectDatabase.GetById(GunzhengId); GunzhengObject = (Gun)(object)((byId428 is Gun) ? byId428 : null); PickupObject byId429 = PickupObjectDatabase.GetById(TetrominatorId); TetrominatorObject = (Gun)(object)((byId429 is Gun) ? byId429 : null); PickupObject byId430 = PickupObjectDatabase.GetById(DevolverId); DevolverObject = (Gun)(object)((byId430 is Gun) ? byId430 : null); PickupObject byId431 = PickupObjectDatabase.GetById(OrangeId); OrangeObject = (HealPlayerItem)(object)((byId431 is HealPlayerItem) ? byId431 : null); PickupObject byId432 = PickupObjectDatabase.GetById(TreadnaughtCannonId); TreadnaughtCannonObject = (Gun)(object)((byId432 is Gun) ? byId432 : null); PickupObject byId433 = PickupObjectDatabase.GetById(BookOfChestAnatomyId); BookOfChestAnatomyObject = (ChestBrokenImprovementItem)(object)((byId433 is ChestBrokenImprovementItem) ? byId433 : null); PickupObject byId434 = PickupObjectDatabase.GetById(RingOfChestVampirismId); RingOfChestVampirismObject = (ChestBrokenItem)(object)((byId434 is ChestBrokenItem) ? byId434 : null); PickupObject byId435 = PickupObjectDatabase.GetById(GunSoulId); GunSoulObject = (ExtraLifeItem)(object)((byId435 is ExtraLifeItem) ? byId435 : null); PickupObject byId436 = PickupObjectDatabase.GetById(BrickOfCashId); BrickOfCashObject = (SnitchBrickItem)(object)((byId436 is SnitchBrickItem) ? byId436 : null); PickupObject byId437 = PickupObjectDatabase.GetById(WingmanId); WingmanObject = (PlayerOrbitalItem)(object)((byId437 is PlayerOrbitalItem) ? byId437 : null); PickupObject byId438 = PickupObjectDatabase.GetById(WolfId); WolfObject = (CompanionItem)(object)((byId438 is CompanionItem) ? byId438 : null); PickupObject byId439 = PickupObjectDatabase.GetById(BriefcaseOfCashId); BriefcaseOfCashObject = (BriefcaseFullOfCashItem)(object)((byId439 is BriefcaseFullOfCashItem) ? byId439 : null); PickupObject byId440 = PickupObjectDatabase.GetById(GalacticMedalOfValorId); GalacticMedalOfValorObject = (BasicStatPickup)(object)((byId440 is BasicStatPickup) ? byId440 : null); PickupObject byId441 = PickupObjectDatabase.GetById(UnityId); UnityObject = (OurPowersCombinedItem)(object)((byId441 is OurPowersCombinedItem) ? byId441 : null); PickupObject byId442 = PickupObjectDatabase.GetById(MetashopBreachItemGunId); MetashopBreachItemGunObject = (ItemBlueprintItem)(object)((byId442 is ItemBlueprintItem) ? byId442 : null); PickupObject byId443 = PickupObjectDatabase.GetById(ElderBlankId); ElderBlankObject = (ReusableBlankitem)(object)((byId443 is ReusableBlankitem) ? byId443 : null); PickupObject byId444 = PickupObjectDatabase.GetById(HipHolsterId); HipHolsterObject = (FireOnReloadItem)(object)((byId444 is FireOnReloadItem) ? byId444 : null); PickupObject byId445 = PickupObjectDatabase.GetById(MetashopBreachItemItemId); MetashopBreachItemItemObject = (ItemBlueprintItem)(object)((byId445 is ItemBlueprintItem) ? byId445 : null); PickupObject byId446 = PickupObjectDatabase.GetById(PilotsPastRocketsId); PilotsPastRocketsObject = (DoNothingActiveItem)(object)((byId446 is DoNothingActiveItem) ? byId446 : null); PickupObject byId447 = PickupObjectDatabase.GetById(BulletId); BulletObject = (Gun)(object)((byId447 is Gun) ? byId447 : null); PickupObject byId448 = PickupObjectDatabase.GetById(HyperLightBlasterId); HyperLightBlasterObject = (Gun)(object)((byId448 is Gun) ? byId448 : null); PickupObject byId449 = PickupObjectDatabase.GetById(WickedSisterSynergyId); WickedSisterSynergyObject = (Gun)(object)((byId449 is Gun) ? byId449 : null); PickupObject byId450 = PickupObjectDatabase.GetById(ReallySpecialLuteId); ReallySpecialLuteObject = (Gun)(object)((byId450 is Gun) ? byId450 : null); PickupObject byId451 = PickupObjectDatabase.GetById(StarpewId); StarpewObject = (Gun)(object)((byId451 is Gun) ? byId451 : null); PickupObject byId452 = PickupObjectDatabase.GetById(DuelingLaserId); DuelingLaserObject = (Gun)(object)((byId452 is Gun) ? byId452 : null); PickupObject byId453 = PickupObjectDatabase.GetById(Jk47Id); Jk47Object = (Gun)(object)((byId453 is Gun) ? byId453 : null); PickupObject byId454 = PickupObjectDatabase.GetById(ThirdPartyControllerId); ThirdPartyControllerObject = (Gun)(object)((byId454 is Gun) ? byId454 : null); PickupObject byId455 = PickupObjectDatabase.GetById(ShellId); ShellObject = (Gun)(object)((byId455 is Gun) ? byId455 : null); PickupObject byId456 = PickupObjectDatabase.GetById(PoxcannonId); PoxcannonObject = (Gun)(object)((byId456 is Gun) ? byId456 : null); PickupObject byId457 = PickupObjectDatabase.GetById(DirectionalPadId); DirectionalPadObject = (Gun)(object)((byId457 is Gun) ? byId457 : null); PickupObject byId458 = PickupObjectDatabase.GetById(MourningStarId); MourningStarObject = (Gun)(object)((byId458 is Gun) ? byId458 : null); PickupObject byId459 = PickupObjectDatabase.GetById(TripleGunId); TripleGunObject = (Gun)(object)((byId459 is Gun) ? byId459 : null); PickupObject byId460 = PickupObjectDatabase.GetById(TripleGunForm2Id); TripleGunForm2Object = (Gun)(object)((byId460 is Gun) ? byId460 : null); PickupObject byId461 = PickupObjectDatabase.GetById(TripleGunForm3Id); TripleGunForm3Object = (Gun)(object)((byId461 is Gun) ? byId461 : null); PickupObject byId462 = PickupObjectDatabase.GetById(CombinedRifleId); CombinedRifleObject = (Gun)(object)((byId462 is Gun) ? byId462 : null); PickupObject byId463 = PickupObjectDatabase.GetById(BalloonGunId); BalloonGunObject = (Gun)(object)((byId463 is Gun) ? byId463 : null); PickupObject byId464 = PickupObjectDatabase.GetById(ChanceBulletsId); ChanceBulletsObject = (ProjectileRandomizerItem)(object)((byId464 is ProjectileRandomizerItem) ? byId464 : null); PickupObject byId465 = PickupObjectDatabase.GetById(StoutBulletsId); StoutBulletsObject = (StoutBulletsItem)(object)((byId465 is StoutBulletsItem) ? byId465 : null); PickupObject byId466 = PickupObjectDatabase.GetById(Bloody9MmId); Bloody9MmObject = (RandomProjectileReplacementItem)(object)((byId466 is RandomProjectileReplacementItem) ? byId466 : null); PickupObject byId467 = PickupObjectDatabase.GetById(LamentConfigurumId); LamentConfigurumObject = (PuzzleBoxItem)(object)((byId467 is PuzzleBoxItem) ? byId467 : null); PickupObject byId468 = PickupObjectDatabase.GetById(SpringheelBootsId); SpringheelBootsObject = (PegasusBootsItem)(object)((byId468 is PegasusBootsItem) ? byId468 : null); PickupObject byId469 = PickupObjectDatabase.GetById(CharmingRoundsId); CharmingRoundsObject = (BulletStatusEffectItem)(object)((byId469 is BulletStatusEffectItem) ? byId469 : null); PickupObject byId470 = PickupObjectDatabase.GetById(ZombieBulletsId); ZombieBulletsObject = (ReturnAmmoOnMissedShotItem)(object)((byId470 is ReturnAmmoOnMissedShotItem) ? byId470 : null); PickupObject byId471 = PickupObjectDatabase.GetById(BattleStandardId); BattleStandardObject = (BattleStandardItem)(object)((byId471 is BattleStandardItem) ? byId471 : null); PickupObject byId472 = PickupObjectDatabase.GetById(RemoteBulletsId); RemoteBulletsObject = (GuidedBulletsPassiveItem)(object)((byId472 is GuidedBulletsPassiveItem) ? byId472 : null); PickupObject byId473 = PickupObjectDatabase.GetById(FlakBulletsId); FlakBulletsObject = (ComplexProjectileModifier)(object)((byId473 is ComplexProjectileModifier) ? byId473 : null); PickupObject byId474 = PickupObjectDatabase.GetById(GildedBulletsId); GildedBulletsObject = (ScalingStatBoostItem)(object)((byId474 is ScalingStatBoostItem) ? byId474 : null); PickupObject byId475 = PickupObjectDatabase.GetById(MagicBulletsId); MagicBulletsObject = (BulletStatusEffectItem)(object)((byId475 is BulletStatusEffectItem) ? byId475 : null); PickupObject byId476 = PickupObjectDatabase.GetById(RealCoolBowId); RealCoolBowObject = (Gun)(object)((byId476 is Gun) ? byId476 : null); PickupObject byId477 = PickupObjectDatabase.GetById(RelodestoneId); RelodestoneObject = (RelodestoneItem)(object)((byId477 is RelodestoneItem) ? byId477 : null); PickupObject byId478 = PickupObjectDatabase.GetById(VorpalGunId); VorpalGunObject = (Gun)(object)((byId478 is Gun) ? byId478 : null); PickupObject byId479 = PickupObjectDatabase.GetById(SilverBulletsId); SilverBulletsObject = (SilverBulletsPassiveItem)(object)((byId479 is SilverBulletsPassiveItem) ? byId479 : null); PickupObject byId480 = PickupObjectDatabase.GetById(BoxingGloveId); BoxingGloveObject = (Gun)(object)((byId480 is Gun) ? byId480 : null); PickupObject byId481 = PickupObjectDatabase.GetById(GlassCannonId); GlassCannonObject = (Gun)(object)((byId481 is Gun) ? byId481 : null); PickupObject byId482 = PickupObjectDatabase.GetById(CaseyId); CaseyObject = (Gun)(object)((byId482 is Gun) ? byId482 : null); PickupObject byId483 = PickupObjectDatabase.GetById(StrafeGunId); StrafeGunObject = (Gun)(object)((byId483 is Gun) ? byId483 : null); PickupObject byId484 = PickupObjectDatabase.GetById(ThePredatorId); ThePredatorObject = (Gun)(object)((byId484 is Gun) ? byId484 : null); PickupObject byId485 = PickupObjectDatabase.GetById(Ac15UnarmoredId); Ac15UnarmoredObject = (Gun)(object)((byId485 is Gun) ? byId485 : null); PickupObject byId486 = PickupObjectDatabase.GetById(Ac15Id); Ac15Object = (Gun)(object)((byId486 is Gun) ? byId486 : null); PickupObject byId487 = PickupObjectDatabase.GetById(WindgunnerId); WindgunnerObject = (Gun)(object)((byId487 is Gun) ? byId487 : null); PickupObject byId488 = PickupObjectDatabase.GetById(KnightsGunId); KnightsGunObject = (Gun)(object)((byId488 is Gun) ? byId488 : null); PickupObject byId489 = PickupObjectDatabase.GetById(CrownOfGunsId); CrownOfGunsObject = (Gun)(object)((byId489 is Gun) ? byId489 : null); PickupObject byId490 = PickupObjectDatabase.GetById(BottleId); BottleObject = (EmptyBottleItem)(object)((byId490 is EmptyBottleItem) ? byId490 : null); PickupObject byId491 = PickupObjectDatabase.GetById(TheFatLineId); TheFatLineObject = (Gun)(object)((byId491 is Gun) ? byId491 : null); PickupObject byId492 = PickupObjectDatabase.GetById(TheExoticId); TheExoticObject = (Gun)(object)((byId492 is Gun) ? byId492 : null); PickupObject byId493 = PickupObjectDatabase.GetById(FullMetalJacketId); FullMetalJacketObject = (AutoblankVestItem)(object)((byId493 is AutoblankVestItem) ? byId493 : null); PickupObject byId494 = PickupObjectDatabase.GetById(GlassGuonStoneId); GlassGuonStoneObject = (IounStoneOrbitalItem)(object)((byId494 is IounStoneOrbitalItem) ? byId494 : null); PickupObject byId495 = PickupObjectDatabase.GetById(RadGunId); RadGunObject = (Gun)(object)((byId495 is Gun) ? byId495 : null); PickupObject byId496 = PickupObjectDatabase.GetById(RollBombId); RollBombObject = (FireVolleyOnRollItem)(object)((byId496 is FireVolleyOnRollItem) ? byId496 : null); PickupObject byId497 = PickupObjectDatabase.GetById(HelixBulletsId); HelixBulletsObject = (GunVolleyModificationItem)(object)((byId497 is GunVolleyModificationItem) ? byId497 : null); PickupObject byId498 = PickupObjectDatabase.GetById(ChaosBulletsId); ChaosBulletsObject = (ChaosBulletsItem)(object)((byId498 is ChaosBulletsItem) ? byId498 : null); PickupObject byId499 = PickupObjectDatabase.GetById(YellowChamberId); YellowChamberObject = (YellowChamberItem)(object)((byId499 is YellowChamberItem) ? byId499 : null); PickupObject byId500 = PickupObjectDatabase.GetById(CursedBulletsId); CursedBulletsObject = (ScalingStatBoostItem)(object)((byId500 is ScalingStatBoostItem) ? byId500 : null); PickupObject byId501 = PickupObjectDatabase.GetById(ChickenFluteId); ChickenFluteObject = (CompanionItem)(object)((byId501 is CompanionItem) ? byId501 : null); PickupObject byId502 = PickupObjectDatabase.GetById(ChestTeleporterId); ChestTeleporterObject = (ChestTeleporterItem)(object)((byId502 is ChestTeleporterItem) ? byId502 : null); PickupObject byId503 = PickupObjectDatabase.GetById(WoodenBlasphemyId); WoodenBlasphemyObject = (Gun)(object)((byId503 is Gun) ? byId503 : null); PickupObject byId504 = PickupObjectDatabase.GetById(DougBreachItemId); DougBreachItemObject = (ItemBlueprintItem)(object)((byId504 is ItemBlueprintItem) ? byId504 : null); PickupObject byId505 = PickupObjectDatabase.GetById(RobotsLeftHandId); RobotsLeftHandObject = (Gun)(object)((byId505 is Gun) ? byId505 : null); PickupObject byId506 = PickupObjectDatabase.GetById(TurboGunId); TurboGunObject = (Gun)(object)((byId506 is Gun) ? byId506 : null); PickupObject byId507 = PickupObjectDatabase.GetById(SprunId); SprunObject = (SprenOrbitalItem)(object)((byId507 is SprenOrbitalItem) ? byId507 : null); PickupObject byId508 = PickupObjectDatabase.GetById(BlankBulletsId); BlankBulletsObject = (ComplexProjectileModifier)(object)((byId508 is ComplexProjectileModifier) ? byId508 : null); PickupObject byId509 = PickupObjectDatabase.GetById(JunkanId); JunkanObject = (CompanionItem)(object)((byId509 is CompanionItem) ? byId509 : null); PickupObject byId510 = PickupObjectDatabase.GetById(VoidCoreCannonId); VoidCoreCannonObject = (Gun)(object)((byId510 is Gun) ? byId510 : null); PickupObject byId511 = PickupObjectDatabase.GetById(AlasSniperionSynergyId); AlasSniperionSynergyObject = (Gun)(object)((byId511 is Gun) ? byId511 : null); PickupObject byId512 = PickupObjectDatabase.GetById(LifeOrbId); LifeOrbObject = (Gun)(object)((byId512 is Gun) ? byId512 : null); PickupObject byId513 = PickupObjectDatabase.GetById(TeapotId); TeapotObject = (Gun)(object)((byId513 is Gun) ? byId513 : null); PickupObject byId514 = PickupObjectDatabase.GetById(MrAccretionJrId); MrAccretionJrObject = (Gun)(object)((byId514 is Gun) ? byId514 : null); PickupObject byId515 = PickupObjectDatabase.GetById(StoneDomeId); StoneDomeObject = (Gun)(object)((byId515 is Gun) ? byId515 : null); PickupObject byId516 = PickupObjectDatabase.GetById(BubbleBlasterId); BubbleBlasterObject = (Gun)(object)((byId516 is Gun) ? byId516 : null); PickupObject byId517 = PickupObjectDatabase.GetById(SpreadAmmoId); SpreadAmmoObject = (AmmoPickup)(object)((byId517 is AmmoPickup) ? byId517 : null); PickupObject byId518 = PickupObjectDatabase.GetById(BigShotgunId); BigShotgunObject = (Gun)(object)((byId518 is Gun) ? byId518 : null); PickupObject byId519 = PickupObjectDatabase.GetById(GunnerId); GunnerObject = (Gun)(object)((byId519 is Gun) ? byId519 : null); PickupObject byId520 = PickupObjectDatabase.GetById(LameyGunId); LameyGunObject = (Gun)(object)((byId520 is Gun) ? byId520 : null); PickupObject byId521 = PickupObjectDatabase.GetById(SlingerId); SlingerObject = (Gun)(object)((byId521 is Gun) ? byId521 : null); PickupObject byId522 = PickupObjectDatabase.GetById(LootBagId); LootBagObject = (BankBagItem)(object)((byId522 is BankBagItem) ? byId522 : null); PickupObject byId523 = PickupObjectDatabase.GetById(ClownMaskId); ClownMaskObject = (BankMaskItem)(object)((byId523 is BankMaskItem) ? byId523 : null); PickupObject byId524 = PickupObjectDatabase.GetById(NeoTechYoSynergyId); NeoTechYoSynergyObject = (Gun)(object)((byId524 is Gun) ? byId524 : null); PickupObject byId525 = PickupObjectDatabase.GetById(RubensteinsMonsterId); RubensteinsMonsterObject = (Gun)(object)((byId525 is Gun) ? byId525 : null); PickupObject byId526 = PickupObjectDatabase.GetById(WoodBeamId); WoodBeamObject = (Gun)(object)((byId526 is Gun) ? byId526 : null); PickupObject byId527 = PickupObjectDatabase.GetById(IslandFormeSynergyId); IslandFormeSynergyObject = (Gun)(object)((byId527 is Gun) ? byId527 : null); PickupObject byId528 = PickupObjectDatabase.GetById(WaveBeamSynergyId); WaveBeamSynergyObject = (Gun)(object)((byId528 is Gun) ? byId528 : null); PickupObject byId529 = PickupObjectDatabase.GetById(IceBeamSynergyId); IceBeamSynergyObject = (Gun)(object)((byId529 is Gun) ? byId529 : null); PickupObject byId530 = PickupObjectDatabase.GetById(PlasmaBeamSynergyId); PlasmaBeamSynergyObject = (Gun)(object)((byId530 is Gun) ? byId530 : null); PickupObject byId531 = PickupObjectDatabase.GetById(HyberBeamSynergyId); HyberBeamSynergyObject = (Gun)(object)((byId531 is Gun) ? byId531 : null); PickupObject byId532 = PickupObjectDatabase.GetById(CarefulIterationSynergyId); CarefulIterationSynergyObject = (Gun)(object)((byId532 is Gun) ? byId532 : null); PickupObject byId533 = PickupObjectDatabase.GetById(QuickBoomerangSynergyId); QuickBoomerangSynergyObject = (Gun)(object)((byId533 is Gun) ? byId533 : null); PickupObject byId534 = PickupObjectDatabase.GetById(TimeStopperSynergyId); TimeStopperSynergyObject = (Gun)(object)((byId534 is Gun) ? byId534 : null); PickupObject byId535 = PickupObjectDatabase.GetById(MetalBladeSynergyId); MetalBladeSynergyObject = (Gun)(object)((byId535 is Gun) ? byId535 : null); PickupObject byId536 = PickupObjectDatabase.GetById(LeafShieldSynergyId); LeafShieldSynergyObject = (Gun)(object)((byId536 is Gun) ? byId536 : null); PickupObject byId537 = PickupObjectDatabase.GetById(AtomicFireSynergyId); AtomicFireSynergyObject = (Gun)(object)((byId537 is Gun) ? byId537 : null); PickupObject byId538 = PickupObjectDatabase.GetById(BubbleLeadSynergyId); BubbleLeadSynergyObject = (Gun)(object)((byId538 is Gun) ? byId538 : null); PickupObject byId539 = PickupObjectDatabase.GetById(AirShooterSynergyId); AirShooterSynergyObject = (Gun)(object)((byId539 is Gun) ? byId539 : null); PickupObject byId540 = PickupObjectDatabase.GetById(CrashBomberSynergyId); CrashBomberSynergyObject = (Gun)(object)((byId540 is Gun) ? byId540 : null); PickupObject byId541 = PickupObjectDatabase.GetById(DrillId); DrillObject = (PaydayDrillItem)(object)((byId541 is PaydayDrillItem) ? byId541 : null); PickupObject byId542 = PickupObjectDatabase.GetById(ElimentalerId); ElimentalerObject = (Gun)(object)((byId542 is Gun) ? byId542 : null); PickupObject byId543 = PickupObjectDatabase.GetById(PlatinumBulletsId); PlatinumBulletsObject = (PlatinumBulletsItem)(object)((byId543 is PlatinumBulletsItem) ? byId543 : null); PickupObject byId544 = PickupObjectDatabase.GetById(BumbulletsId); BumbulletsObject = (GunVolleyModificationItem)(object)((byId544 is GunVolleyModificationItem) ? byId544 : null); PickupObject byId545 = PickupObjectDatabase.GetById(HoleyGrailId); HoleyGrailObject = (BlankPersonalityItem)(object)((byId545 is BlankPersonalityItem) ? byId545 : null); PickupObject byId546 = PickupObjectDatabase.GetById(TurkeyId); TurkeyObject = (CompanionItem)(object)((byId546 is CompanionItem) ? byId546 : null); PickupObject byId547 = PickupObjectDatabase.GetById(TableTechShotgunId); TableTechShotgunObject = (TableFlipItem)(object)((byId547 is TableFlipItem) ? byId547 : null); PickupObject byId548 = PickupObjectDatabase.GetById(CrisisStoneId); CrisisStoneObject = (CrisisStoneItem)(object)((byId548 is CrisisStoneItem) ? byId548 : null); PickupObject byId549 = PickupObjectDatabase.GetById(SnowballetsId); SnowballetsObject = (SnowballBulletsItem)(object)((byId549 is SnowballBulletsItem) ? byId549 : null); PickupObject byId550 = PickupObjectDatabase.GetById(WeirdEggId); WeirdEggObject = (GungeonEggItem)(object)((byId550 is GungeonEggItem) ? byId550 : null); PickupObject byId551 = PickupObjectDatabase.GetById(DevolverRoundsId); DevolverRoundsObject = (ComplexProjectileModifier)(object)((byId551 is ComplexProjectileModifier) ? byId551 : null); PickupObject byId552 = PickupObjectDatabase.GetById(VorpalBulletsId); VorpalBulletsObject = (ComplexProjectileModifier)(object)((byId552 is ComplexProjectileModifier) ? byId552 : null); PickupObject byId553 = PickupObjectDatabase.GetById(GoldJunkId); GoldJunkObject = (BasicStatPickup)(object)((byId553 is BasicStatPickup) ? byId553 : null); PickupObject byId554 = PickupObjectDatabase.GetById(DarumaId); DarumaObject = (KiPulseItem)(object)((byId554 is KiPulseItem) ? byId554 : null); PickupObject byId555 = PickupObjectDatabase.GetById(PortableTableDeviceId); PortableTableDeviceObject = (FoldingTableItem)(object)((byId555 is FoldingTableItem) ? byId555 : null); PickupObject byId556 = PickupObjectDatabase.GetById(TurtleProblemId); TurtleProblemObject = (MulticompanionItem)(object)((byId556 is MulticompanionItem) ? byId556 : null); PickupObject byId557 = PickupObjectDatabase.GetById(ChamberGunId); ChamberGunObject = (Gun)(object)((byId557 is Gun) ? byId557 : null); PickupObject byId558 = PickupObjectDatabase.GetById(FullCircleSynergyId); FullCircleSynergyObject = (Gun)(object)((byId558 is Gun) ? byId558 : null); PickupObject byId559 = PickupObjectDatabase.GetById(UppercaseRId); UppercaseRObject = (Gun)(object)((byId559 is Gun) ? byId559 : null); PickupObject byId560 = PickupObjectDatabase.GetById(PaydayWinchesterId); PaydayWinchesterObject = (Gun)(object)((byId560 is Gun) ? byId560 : null); PickupObject byId561 = PickupObjectDatabase.GetById(RogueSpecialAltId); RogueSpecialAltObject = (Gun)(object)((byId561 is Gun) ? byId561 : null); PickupObject byId562 = PickupObjectDatabase.GetById(BudgetRevolverAltId); BudgetRevolverAltObject = (Gun)(object)((byId562 is Gun) ? byId562 : null); PickupObject byId563 = PickupObjectDatabase.GetById(GunPieceId); GunPieceObject = (FragileGunItemPiece)(object)((byId563 is FragileGunItemPiece) ? byId563 : null); PickupObject byId564 = PickupObjectDatabase.GetById(HungryBulletsId); HungryBulletsObject = (ComplexProjectileModifier)(object)((byId564 is ComplexProjectileModifier) ? byId564 : null); PickupObject byId565 = PickupObjectDatabase.GetById(KrullerGlaiveId); KrullerGlaiveObject = (Gun)(object)((byId565 is Gun) ? byId565 : null); PickupObject byId566 = PickupObjectDatabase.GetById(ChamberGunOublietteId); ChamberGunOublietteObject = (Gun)(object)((byId566 is Gun) ? byId566 : null); PickupObject byId567 = PickupObjectDatabase.GetById(ChamberGunForgeId); ChamberGunForgeObject = (Gun)(object)((byId567 is Gun) ? byId567 : null); PickupObject byId568 = PickupObjectDatabase.GetById(ChamberGunHollowId); ChamberGunHollowObject = (Gun)(object)((byId568 is Gun) ? byId568 : null); PickupObject byId569 = PickupObjectDatabase.GetById(ChamberGunProperId); ChamberGunProperObject = (Gun)(object)((byId569 is Gun) ? byId569 : null); PickupObject byId570 = PickupObjectDatabase.GetById(OrbitalBulletsId); OrbitalBulletsObject = (GunVolleyModificationItem)(object)((byId570 is GunVolleyModificationItem) ? byId570 : null); PickupObject byId571 = PickupObjectDatabase.GetById(PartiallyEatenCheeseId); PartiallyEatenCheeseObject = (CheeseWheelItem)(object)((byId571 is CheeseWheelItem) ? byId571 : null); PickupObject byId572 = PickupObjectDatabase.GetById(ResourcefulSackId); ResourcefulSackObject = (RatPackItem)(object)((byId572 is RatPackItem) ? byId572 : null); PickupObject byId573 = PickupObjectDatabase.GetById(BabyGoodMimicId); BabyGoodMimicObject = (CompanionItem)(object)((byId573 is CompanionItem) ? byId573 : null); PickupObject byId574 = PickupObjectDatabase.GetById(MachoBraceId); MachoBraceObject = (MachoBraceItem)(object)((byId574 is MachoBraceItem) ? byId574 : null); PickupObject byId575 = PickupObjectDatabase.GetById(TableTechHeatId); TableTechHeatObject = (TableFlipItem)(object)((byId575 is TableFlipItem) ? byId575 : null); PickupObject byId576 = PickupObjectDatabase.GetById(RatBootsId); RatBootsObject = (RatBootsItem)(object)((byId576 is RatBootsItem) ? byId576 : null); PickupObject byId577 = PickupObjectDatabase.GetById(EnemyElimentalerId); EnemyElimentalerObject = (Gun)(object)((byId577 is Gun) ? byId577 : null); PickupObject byId578 = PickupObjectDatabase.GetById(HighDragunfireId); HighDragunfireObject = (Gun)(object)((byId578 is Gun) ? byId578 : null); PickupObject byId579 = PickupObjectDatabase.GetById(BetaRaySynergyId); BetaRaySynergyObject = (Gun)(object)((byId579 is Gun) ? byId579 : null); PickupObject byId580 = PickupObjectDatabase.GetById(TheElephantInTheRoomSynergyId); TheElephantInTheRoomSynergyObject = (Gun)(object)((byId580 is Gun) ? byId580 : null); PickupObject byId581 = PickupObjectDatabase.GetById(PistolMachineSynergyId); PistolMachineSynergyObject = (Gun)(object)((byId581 is Gun) ? byId581 : null); PickupObject byId582 = PickupObjectDatabase.GetById(PeaCannonSynergyId); PeaCannonSynergyObject = (Gun)(object)((byId582 is Gun) ? byId582 : null); PickupObject byId583 = PickupObjectDatabase.GetById(DualingPistolSynergyId); DualingPistolSynergyObject = (Gun)(object)((byId583 is Gun) ? byId583 : null); PickupObject byId584 = PickupObjectDatabase.GetById(LaserLightShowSynergyId); LaserLightShowSynergyObject = (Gun)(object)((byId584 is Gun) ? byId584 : null); PickupObject byId585 = PickupObjectDatabase.GetById(KalibreathSynergyId); KalibreathSynergyObject = (Gun)(object)((byId585 is Gun) ? byId585 : null); PickupObject byId586 = PickupObjectDatabase.GetById(BlunderbraceSynergyId); BlunderbraceSynergyObject = (Gun)(object)((byId586 is Gun) ? byId586 : null); PickupObject byId587 = PickupObjectDatabase.GetById(SnowballShotgunSynergyId); SnowballShotgunSynergyObject = (Gun)(object)((byId587 is Gun) ? byId587 : null); PickupObject byId588 = PickupObjectDatabase.GetById(ArmoredCorpsSynergyId); ArmoredCorpsSynergyObject = (Gun)(object)((byId588 is Gun) ? byId588 : null); PickupObject byId589 = PickupObjectDatabase.GetById(DetectiveModeSynergyId); DetectiveModeSynergyObject = (Gun)(object)((byId589 is Gun) ? byId589 : null); PickupObject byId590 = PickupObjectDatabase.GetById(PandemicPistolSynergyId); PandemicPistolSynergyObject = (Gun)(object)((byId590 is Gun) ? byId590 : null); PickupObject byId591 = PickupObjectDatabase.GetById(AlistairsLadderSynergyId); AlistairsLadderSynergyObject = (Gun)(object)((byId591 is Gun) ? byId591 : null); PickupObject byId592 = PickupObjectDatabase.GetById(M1MultiToolSynergyId); M1MultiToolSynergyObject = (Gun)(object)((byId592 is Gun) ? byId592 : null); PickupObject byId593 = PickupObjectDatabase.GetById(FutureGangsterSynergyId); FutureGangsterSynergyObject = (Gun)(object)((byId593 is Gun) ? byId593 : null); PickupObject byId594 = PickupObjectDatabase.GetById(BlackFlagSynergyId); BlackFlagSynergyObject = (Gun)(object)((byId594 is Gun) ? byId594 : null); PickupObject byId595 = PickupObjectDatabase.GetById(FiveOclockSomewhereSynergyId); FiveOclockSomewhereSynergyObject = (Gun)(object)((byId595 is Gun) ? byId595 : null); PickupObject byId596 = PickupObjectDatabase.GetById(FruitsAndVegetablesSynergyId); FruitsAndVegetablesSynergyObject = (Gun)(object)((byId596 is Gun) ? byId596 : null); PickupObject byId597 = PickupObjectDatabase.GetById(KalibersGripSynergyId); KalibersGripSynergyObject = (Gun)(object)((byId597 is Gun) ? byId597 : null); PickupObject byId598 = PickupObjectDatabase.GetById(KlobberingTimeSynergyId); KlobberingTimeSynergyObject = (Gun)(object)((byId598 is Gun) ? byId598 : null); PickupObject byId599 = PickupObjectDatabase.GetById(SpecialReserveSynergyId); SpecialReserveSynergyObject = (Gun)(object)((byId599 is Gun) ? byId599 : null); PickupObject byId600 = PickupObjectDatabase.GetById(NailedItSynergyId); NailedItSynergyObject = (Gun)(object)((byId600 is Gun) ? byId600 : null); PickupObject byId601 = PickupObjectDatabase.GetById(ShowAcrossTheBowSynergyId); ShowAcrossTheBowSynergyObject = (Gun)(object)((byId601 is Gun) ? byId601 : null); PickupObject byId602 = PickupObjectDatabase.GetById(IronSlugSynergyId); IronSlugSynergyObject = (Gun)(object)((byId602 is Gun) ? byId602 : null); PickupObject byId603 = PickupObjectDatabase.GetById(HardLightSynergyId); HardLightSynergyObject = (Gun)(object)((byId603 is Gun) ? byId603 : null); PickupObject byId604 = PickupObjectDatabase.GetById(ChiefMasterSynergyId); ChiefMasterSynergyObject = (Gun)(object)((byId604 is Gun) ? byId604 : null); PickupObject byId605 = PickupObjectDatabase.GetById(BatteryPoweredSynergyId); BatteryPoweredSynergyObject = (Gun)(object)((byId605 is Gun) ? byId605 : null); PickupObject byId606 = PickupObjectDatabase.GetById(MaximizeSpellSynergyId); MaximizeSpellSynergyObject = (Gun)(object)((byId606 is Gun) ? byId606 : null); PickupObject byId607 = PickupObjectDatabase.GetById(HegemonySpecialForcesSynergyId); HegemonySpecialForcesSynergyObject = (Gun)(object)((byId607 is Gun) ? byId607 : null); PickupObject byId608 = PickupObjectDatabase.GetById(CactusFlowerSynergyId); CactusFlowerSynergyObject = (Gun)(object)((byId608 is Gun) ? byId608 : null); PickupObject byId609 = PickupObjectDatabase.GetById(NoxinCannonSynergyId); NoxinCannonSynergyObject = (Gun)(object)((byId609 is Gun) ? byId609 : null); PickupObject byId610 = PickupObjectDatabase.GetById(AlternativeRockSynergyId); AlternativeRockSynergyObject = (Gun)(object)((byId610 is Gun) ? byId610 : null); PickupObject byId611 = PickupObjectDatabase.GetById(ApiarySynergyId); ApiarySynergyObject = (Gun)(object)((byId611 is Gun) ? byId611 : null); PickupObject byId612 = PickupObjectDatabase.GetById(RecyclingBinSynergyId); RecyclingBinSynergyObject = (Gun)(object)((byId612 is Gun) ? byId612 : null); PickupObject byId613 = PickupObjectDatabase.GetById(SaviorOfTheUniverseSynergyId); SaviorOfTheUniverseSynergyObject = (Gun)(object)((byId613 is Gun) ? byId613 : null); PickupObject byId614 = PickupObjectDatabase.GetById(FiringWithFlairSynergyId); FiringWithFlairSynergyObject = (Gun)(object)((byId614 is Gun) ? byId614 : null); PickupObject byId615 = PickupObjectDatabase.GetById(NotQuiteAsMiniSynergyId); NotQuiteAsMiniSynergyObject = (Gun)(object)((byId615 is Gun) ? byId615 : null); PickupObject byId616 = PickupObjectDatabase.GetById(DoubleDoubleHelixSynergyId); DoubleDoubleHelixSynergyObject = (Gun)(object)((byId616 is Gun) ? byId616 : null); PickupObject byId617 = PickupObjectDatabase.GetById(LikeShootingFishSynergyId); LikeShootingFishSynergyObject = (Gun)(object)((byId617 is Gun) ? byId617 : null); PickupObject byId618 = PickupObjectDatabase.GetById(IceCapSynergyId); IceCapSynergyObject = (Gun)(object)((byId618 is Gun) ? byId618 : null); PickupObject byId619 = PickupObjectDatabase.GetById(PeripheralVisionSynergyId); PeripheralVisionSynergyObject = (Gun)(object)((byId619 is Gun) ? byId619 : null); PickupObject byId620 = PickupObjectDatabase.GetById(RaidenSynergyId); RaidenSynergyObject = (Gun)(object)((byId620 is Gun) ? byId620 : null); PickupObject byId621 = PickupObjectDatabase.GetById(DoubleMoon7SynergyId); DoubleMoon7SynergyObject = (Gun)(object)((byId621 is Gun) ? byId621 : null); PickupObject byId622 = PickupObjectDatabase.GetById(LotusBloomSynergyId); LotusBloomSynergyObject = (Gun)(object)((byId622 is Gun) ? byId622 : null); PickupObject byId623 = PickupObjectDatabase.GetById(HammerAndNailSynergyId); HammerAndNailSynergyObject = (Gun)(object)((byId623 is Gun) ? byId623 : null); PickupObject byId624 = PickupObjectDatabase.GetById(ArcticWarfareSynergyId); ArcticWarfareSynergyObject = (Gun)(object)((byId624 is Gun) ? byId624 : null); PickupObject byId625 = PickupObjectDatabase.GetById(CerebralBrosSynergyId); CerebralBrosSynergyObject = (Gun)(object)((byId625 is Gun) ? byId625 : null); PickupObject byId626 = PickupObjectDatabase.GetById(SquareBraceSynergyId); SquareBraceSynergyObject = (Gun)(object)((byId626 is Gun) ? byId626 : null); PickupObject byId627 = PickupObjectDatabase.GetById(KingBomberSynergyId); KingBomberSynergyObject = (Gun)(object)((byId627 is Gun) ? byId627 : null); PickupObject byId628 = PickupObjectDatabase.GetById(ElectronPackSynergyId); ElectronPackSynergyObject = (Gun)(object)((byId628 is Gun) ? byId628 : null); PickupObject byId629 = PickupObjectDatabase.GetById(HeavyJoltSynergyId); HeavyJoltSynergyObject = (Gun)(object)((byId629 is Gun) ? byId629 : null); PickupObject byId630 = PickupObjectDatabase.GetById(PitchPerfectSynergyId); PitchPerfectSynergyObject = (Gun)(object)((byId630 is Gun) ? byId630 : null); PickupObject byId631 = PickupObjectDatabase.GetById(CommammoBeltSynergyId); CommammoBeltSynergyObject = (Gun)(object)((byId631 is Gun) ? byId631 : null); PickupObject byId632 = PickupObjectDatabase.GetById(RubyCarbineSynergyId); RubyCarbineSynergyObject = (Gun)(object)((byId632 is Gun) ? byId632 : null); PickupObject byId633 = PickupObjectDatabase.GetById(TearJerkerUnknownSynergyId); TearJerkerUnknownSynergyObject = (Gun)(object)((byId633 is Gun) ? byId633 : null); PickupObject byId634 = PickupObjectDatabase.GetById(AkeyBreakySynergyId); AkeyBreakySynergyObject = (Gun)(object)((byId634 is Gun) ? byId634 : null); PickupObject byId635 = PickupObjectDatabase.GetById(RatKeyId); RatKeyObject = (KeyBulletPickup)(object)((byId635 is KeyBulletPickup) ? byId635 : null); PickupObject byId636 = PickupObjectDatabase.GetById(GunderfuryLv50Id); GunderfuryLv50Object = (Gun)(object)((byId636 is Gun) ? byId636 : null); PickupObject byId637 = PickupObjectDatabase.GetById(GunderfuryLv60Id); GunderfuryLv60Object = (Gun)(object)((byId637 is Gun) ? byId637 : null); PickupObject byId638 = PickupObjectDatabase.GetById(GunderfuryLv40Id); GunderfuryLv40Object = (Gun)(object)((byId638 is Gun) ? byId638 : null); PickupObject byId639 = PickupObjectDatabase.GetById(GunderfuryLv30Id); GunderfuryLv30Object = (Gun)(object)((byId639 is Gun) ? byId639 : null); PickupObject byId640 = PickupObjectDatabase.GetById(GunderfuryId); GunderfuryObject = (Gun)(object)((byId640 is Gun) ? byId640 : null); PickupObject byId641 = PickupObjectDatabase.GetById(GunderfuryLv20Id); GunderfuryLv20Object = (Gun)(object)((byId641 is Gun) ? byId641 : null); PickupObject byId642 = PickupObjectDatabase.GetById(MimicGunId); MimicGunObject = (Gun)(object)((byId642 is Gun) ? byId642 : null); PickupObject byId643 = PickupObjectDatabase.GetById(SerpentId); SerpentObject = (PlayerOrbitalItem)(object)((byId643 is PlayerOrbitalItem) ? byId643 : null); PickupObject byId644 = PickupObjectDatabase.GetById(PhoenixUpSynergyId); PhoenixUpSynergyObject = (Gun)(object)((byId644 is Gun) ? byId644 : null); PickupObject byId645 = PickupObjectDatabase.GetById(BetrayersLiesSynergyId); BetrayersLiesSynergyObject = (Gun)(object)((byId645 is Gun) ? byId645 : null); PickupObject byId646 = PickupObjectDatabase.GetById(LowerCaseRUnknownSynergyId); LowerCaseRUnknownSynergyObject = (Gun)(object)((byId646 is Gun) ? byId646 : null); PickupObject byId647 = PickupObjectDatabase.GetById(GreatQueenAntSynergyId); GreatQueenAntSynergyObject = (Gun)(object)((byId647 is Gun) ? byId647 : null); PickupObject byId648 = PickupObjectDatabase.GetById(NotSoSawedOffSynergyId); NotSoSawedOffSynergyObject = (Gun)(object)((byId648 is Gun) ? byId648 : null); PickupObject byId649 = PickupObjectDatabase.GetById(WrathOfTheBlamSynergyId); WrathOfTheBlamSynergyObject = (Gun)(object)((byId649 is Gun) ? byId649 : null); PickupObject byId650 = PickupObjectDatabase.GetById(ContrailSynergyId); ContrailSynergyObject = (Gun)(object)((byId650 is Gun) ? byId650 : null); PickupObject byId651 = PickupObjectDatabase.GetById(KungFuHippieRappinSurferSynergyId); KungFuHippieRappinSurferSynergyObject = (Gun)(object)((byId651 is Gun) ? byId651 : null); PickupObject byId652 = PickupObjectDatabase.GetById(ParchmentalSynergyId); ParchmentalSynergyObject = (Gun)(object)((byId652 is Gun) ? byId652 : null); PickupObject byId653 = PickupObjectDatabase.GetById(GunderlordSynergyId); GunderlordSynergyObject = (Gun)(object)((byId653 is Gun) ? byId653 : null); PickupObject byId654 = PickupObjectDatabase.GetById(TurtineGunId); TurtineGunObject = (Gun)(object)((byId654 is Gun) ? byId654 : null); PickupObject byId655 = PickupObjectDatabase.GetById(SunlightJavelinId); SunlightJavelinObject = (Gun)(object)((byId655 is Gun) ? byId655 : null); PickupObject byId656 = PickupObjectDatabase.GetById(SecondAccidentSynergyId); SecondAccidentSynergyObject = (Gun)(object)((byId656 is Gun) ? byId656 : null); PickupObject byId657 = PickupObjectDatabase.GetById(DontHootTheMessengerSynergyId); DontHootTheMessengerSynergyObject = (Gun)(object)((byId657 is Gun) ? byId657 : null); PickupObject byId658 = PickupObjectDatabase.GetById(BigGunId); BigGunObject = (Gun)(object)((byId658 is Gun) ? byId658 : null); PickupObject byId659 = PickupObjectDatabase.GetById(WestbroNomesRevolverId); WestbroNomesRevolverObject = (Gun)(object)((byId659 is Gun) ? byId659 : null); PickupObject byId660 = PickupObjectDatabase.GetById(WestbroTucosRevolverId); WestbroTucosRevolverObject = (Gun)(object)((byId660 is Gun) ? byId660 : null); PickupObject byId661 = PickupObjectDatabase.GetById(WestbroAngelsRevolverId); WestbroAngelsRevolverObject = (Gun)(object)((byId661 is Gun) ? byId661 : null); PickupObject byId662 = PickupObjectDatabase.GetById(EvolverId); EvolverObject = (Gun)(object)((byId662 is Gun) ? byId662 : null); PickupObject byId663 = PickupObjectDatabase.GetById(EvolverSpongeId); EvolverSpongeObject = (Gun)(object)((byId663 is Gun) ? byId663 : null); PickupObject byId664 = PickupObjectDatabase.GetById(EvolverFlatwormId); EvolverFlatwormObject = (Gun)(object)((byId664 is Gun) ? byId664 : null); PickupObject byId665 = PickupObjectDatabase.GetById(EvolverSnailId); EvolverSnailObject = (Gun)(object)((byId665 is Gun) ? byId665 : null); PickupObject byId666 = PickupObjectDatabase.GetById(EvolverFrogId); EvolverFrogObject = (Gun)(object)((byId666 is Gun) ? byId666 : null); PickupObject byId667 = PickupObjectDatabase.GetById(EvolverDragonId); EvolverDragonObject = (Gun)(object)((byId667 is Gun) ? byId667 : null); PickupObject byId668 = PickupObjectDatabase.GetById(HighKaliberId); HighKaliberObject = (Gun)(object)((byId668 is Gun) ? byId668 : null); PickupObject byId669 = PickupObjectDatabase.GetById(FinishedGunId); FinishedGunObject = (Gun)(object)((byId669 is Gun) ? byId669 : null); PickupObject byId670 = PickupObjectDatabase.GetById(ChamberGunHellId); ChamberGunHellObject = (Gun)(object)((byId670 is Gun) ? byId670 : null); PickupObject byId671 = PickupObjectDatabase.GetById(ChamberGunAbbeyId); ChamberGunAbbeyObject = (Gun)(object)((byId671 is Gun) ? byId671 : null); PickupObject byId672 = PickupObjectDatabase.GetById(ChamberGunMinesId); ChamberGunMinesObject = (Gun)(object)((byId672 is Gun) ? byId672 : null); PickupObject byId673 = PickupObjectDatabase.GetById(ChamberGunRatLairId); ChamberGunRatLairObject = (Gun)(object)((byId673 is Gun) ? byId673 : null); PickupObject byId674 = PickupObjectDatabase.GetById(MarineSidearmAltId); MarineSidearmAltObject = (Gun)(object)((byId674 is Gun) ? byId674 : null); PickupObject byId675 = PickupObjectDatabase.GetById(RustySidearmAltId); RustySidearmAltObject = (Gun)(object)((byId675 is Gun) ? byId675 : null); PickupObject byId676 = PickupObjectDatabase.GetById(DartGunAltId); DartGunAltObject = (Gun)(object)((byId676 is Gun) ? byId676 : null); PickupObject byId677 = PickupObjectDatabase.GetById(RobotsRightHandAltId); RobotsRightHandAltObject = (Gun)(object)((byId677 is Gun) ? byId677 : null); PickupObject byId678 = PickupObjectDatabase.GetById(BlasphemyAltId); BlasphemyAltObject = (Gun)(object)((byId678 is Gun) ? byId678 : null); PickupObject byId679 = PickupObjectDatabase.GetById(MagazineRackId); MagazineRackObject = (MagazineRackItem)(object)((byId679 is MagazineRackItem) ? byId679 : null); PickupObject byId680 = PickupObjectDatabase.GetById(LichsEyeBulletsId); LichsEyeBulletsObject = (SynergyCompletionItem)(object)((byId680 is SynergyCompletionItem) ? byId680 : null); PickupObject byId681 = PickupObjectDatabase.GetById(INeedScissors61SynergyId); INeedScissors61SynergyObject = (Gun)(object)((byId681 is Gun) ? byId681 : null); PickupObject byId682 = PickupObjectDatabase.GetById(CatBulletKingThroneId); CatBulletKingThroneObject = (WingsItem)(object)((byId682 is WingsItem) ? byId682 : null); PickupObject byId683 = PickupObjectDatabase.GetById(BabyGoodShelletonId); BabyGoodShelletonObject = (CompanionItem)(object)((byId683 is CompanionItem) ? byId683 : null); PickupObject byId684 = PickupObjectDatabase.GetById(MaxPaneSynergyId); MaxPaneSynergyObject = (Gun)(object)((byId684 is Gun) ? byId684 : null); PickupObject byId685 = PickupObjectDatabase.GetById(ShadowCloneId); ShadowCloneObject = (SpawnObjectPlayerItem)(object)((byId685 is SpawnObjectPlayerItem) ? byId685 : null); PickupObject byId686 = PickupObjectDatabase.GetById(ScouterId); ScouterObject = (RatchetScouterItem)(object)((byId686 is RatchetScouterItem) ? byId686 : null); PickupObject byId687 = PickupObjectDatabase.GetById(KatanaBulletsId); KatanaBulletsObject = (ComplexProjectileModifier)(object)((byId687 is ComplexProjectileModifier) ? byId687 : null); PickupObject byId688 = PickupObjectDatabase.GetById(ChamberGunRngId); ChamberGunRngObject = (Gun)(object)((byId688 is Gun) ? byId688 : null); } } [HarmonyPatch] public static class Patches { public static MethodInfo randomRange_IntInt = AccessTools.Method(typeof(Random), "Range", new Type[2] { typeof(int), typeof(int) }, (Type[])null); [HarmonyPatch(typeof(GameUIAmmoController), "Initialize")] [HarmonyPostfix] public static void AddMissingAmmotypes(GameUIAmmoController __instance) { __instance.ammoTypes = CollectionExtensions.AddRangeToArray(__instance.ammoTypes, Toolbox.addedAmmoTypes.ToArray()); } [HarmonyPatch(typeof(Foyer), "SetUpCharacterCallbacks")] [HarmonyPrefix] public static void PlaceBreachCharacters() { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) foreach (KeyValuePair breachCharacter in Toolbox.breachCharacters) { RoomHandler roomFromPosition = GameManager.Instance.Dungeon.data.GetRoomFromPosition(Vector3Extensions.IntXY(breachCharacter.Value, (VectorConversions)0)); if (roomFromPosition != null) { GameObject val = Object.Instantiate(breachCharacter.Key, roomFromPosition.hierarchyParent); val.transform.position = breachCharacter.Value; IPlayerInteractable[] componentsInChildren = val.GetComponentsInChildren(); IPlayerInteractable[] array = componentsInChildren; foreach (IPlayerInteractable val2 in array) { roomFromPosition.RegisterInteractable(val2); } } } } [HarmonyPatch(typeof(PunchoutController), "Init")] [HarmonyILManipulator] public static void SwapToCustomPunchoutCharacter_Transpiler(ILContext ctx) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown ILCursor val = new ILCursor(ctx); foreach (object item in val.MatchAfter((Instruction x) => ILPatternMatchingExt.MatchCallOrCallvirt(x, (MethodBase)randomRange_IntInt))) { val.EmitStaticDelegate(new Func(SwapToCustomPunchoutCharacter_ChangeValue)); } } public static int SwapToCustomPunchoutCharacter_ChangeValue(int curr) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) if (Toolbox.punchoutSprites.ContainsKey(GameManager.Instance.PrimaryPlayer.characterIdentity)) { return Toolbox.punchoutSprites[GameManager.Instance.PrimaryPlayer.characterIdentity]; } return curr; } [HarmonyPatch(typeof(PunchoutPlayerController), "UpdateUI")] [HarmonyPatch(typeof(PunchoutPlayerController), "HandleAnimationCompletedSwap")] [HarmonyPatch(typeof(PunchoutPlayerController), "SwapPlayer")] [HarmonyILManipulator] public static void PunchoutSpaghimonPatch_Transpiler(ILContext ctx) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown ILCursor val = new ILCursor(ctx); foreach (object item in val.MatchAfter((Instruction x) => ILPatternMatchingExt.MatchLdsfld(x, "PlayerUiNames"))) { val.EmitStaticDelegate(new Func(PunchoutSpaghimonPatch_ReplaceUINamesArray)); } foreach (object item2 in val.MatchAfter((Instruction x) => ILPatternMatchingExt.MatchLdsfld(x, "PlayerNames"))) { val.EmitStaticDelegate(new Func(PunchoutSpaghimonPatch_ReplaceNamesArray)); } } public static string[] PunchoutSpaghimonPatch_ReplaceUINamesArray(string[] _) { return Toolbox.UncachedPlayerUiNames; } public static string[] PunchoutSpaghimonPatch_ReplaceNamesArray(string[] _) { return Toolbox.UncachedPlayerNames; } [HarmonyPatch(typeof(PunchoutPlayerController), "SwapPlayer")] [HarmonyILManipulator] public static void IgnoreDummyParadoxPlayerName_Transpiler(ILContext ctx) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown ILCursor val = new ILCursor(ctx); if (val.JumpToNext((Instruction x) => ILPatternMatchingExt.MatchCallOrCallvirt(x, (MethodBase)randomRange_IntInt))) { val.EmitStaticDelegate(new Func(IgnoreDummyParadoxPlayerName_RerollIfDummy)); } } public static int IgnoreDummyParadoxPlayerName_RerollIfDummy(int curr) { if (curr != 7) { return curr; } int num = Random.Range(0, Toolbox.UncachedPlayerNames.Length - 1); if (num >= 7) { num++; } return num; } } [HarmonyPatch] public static class SpecialAssets { private static Dictionary newBraveAssets = new Dictionary(); public static List assets = new List(); [HarmonyPatch(typeof(BraveResources), "Load", new Type[] { typeof(string), typeof(string) })] [HarmonyPrefix] public static bool HandleNewAsset(ref Object __result, string path, string extension = ".prefab") { if (newBraveAssets.TryGetValue((path + extension).ToLowerInvariant(), out __result)) { return false; } return true; } [HarmonyPatch(typeof(BraveResources), "Load", new Type[] { typeof(string), typeof(Type), typeof(string) })] [HarmonyPrefix] public static bool HandleNewAsset2(ref Object __result, string path, Type type, string extension = ".prefab") { string key = (path + extension).ToLowerInvariant(); if (newBraveAssets.ContainsKey(key)) { Type type2 = ((object)newBraveAssets[key]).GetType(); if (type2.IsSubclassOf(type) || (object)type2 == type) { __result = newBraveAssets[key]; return false; } } return true; } public static void AddToBraveAssets(string name, Object obj) { newBraveAssets.Add(name.ToLowerInvariant(), obj); } } [HarmonyPatch] public static class Toolbox { public delegate void ChangeMaterialsAction(ref Material mat); private static readonly FieldInfo UncachedPlayerNamesField = typeof(PunchoutPlayerController).GetField("PlayerNames", BindingFlags.Static | BindingFlags.NonPublic); private static readonly FieldInfo UncachedPlayerUiNamesField = typeof(PunchoutPlayerController).GetField("PlayerUiNames", BindingFlags.Static | BindingFlags.NonPublic); public static List addedAmmoTypes = new List(); public static PunchoutPlayerController punchoutPlayer; public static tk2dSpriteCollectionData punchoutColl; public static tk2dSpriteAnimation punchoutAnim; public static dfAtlas punchoutFacecardAtlas; public static Dictionary breachCharacters = new Dictionary(); public static Dictionary punchoutSprites = new Dictionary(); public static List stuff = new List(); public static string[] UncachedPlayerNames => (string[])UncachedPlayerNamesField.GetValue(null); public static string[] UncachedPlayerUiNames => (string[])UncachedPlayerUiNamesField.GetValue(null); public static Gun AsGun(this PickupObject po) { return (Gun)(object)((po is Gun) ? po : null); } public static PlayerItem AsActive(this PickupObject po) { return (PlayerItem)(object)((po is PlayerItem) ? po : null); } public static PassiveItem AsPassive(this PickupObject po) { return (PassiveItem)(object)((po is PassiveItem) ? po : null); } public static T As(this object o) { return (o is T val) ? val : default(T); } public static T AddComponent(this Component self) where T : Component { return self.gameObject.AddComponent(); } public static T GetOrAddComponent(this Component self) where T : Component { return GameObjectExtensions.GetOrAddComponent(self.gameObject); } public static string AddToAtlas(string textureName, string overrideName = null) { ItemInfo info; return AddToAtlas(Plugin.bundle.LoadAsset(textureName), out info, overrideName); } public static string AddToAtlas(string textureName, out ItemInfo info, string overrideName = null) { return AddToAtlas(Plugin.bundle.LoadAsset(textureName), out info, overrideName); } public static tk2dSpriteDefinition Sprite(this tk2dSpriteAnimationFrame frame) { return frame.spriteCollection.spriteDefinitions[frame.spriteId]; } public static PlayerControllerExt Ext(this PlayerController pc) { if ((Object)(object)pc != (Object)null) { return ((Component)(object)pc).GetOrAddComponent(); } return null; } public static void StealthPlayer(this PlayerController player, string reason, bool allowStealing = true, bool disableEnemyCollision = true, GameObject poof = null, string stealthUnstealthSound = null, bool enableStealthShader = true) { //IL_0094: Unknown result type (might be due to invalid IL or missing references) if (enableStealthShader) { player.ChangeSpecialShaderFlag(1, 1f); } ((GameActor)player).SetIsStealthed(true, reason); if (disableEnemyCollision) { ((BraveBehaviour)player).specRigidbody.AddCollisionLayerIgnoreOverride(CollisionMask.LayerToMask((CollisionLayer)2, (CollisionLayer)3)); } if ((Object)(object)poof != (Object)null) { ((GameActor)player).PlayEffectOnActor(poof, Vector3.zero, false, true, false); } if (allowStealing) { player.SetCapableOfStealing(true, reason, (float?)null); player.OnItemStolen += BreakStealthOnSteal; } player.OnDidUnstealthyAction += BreakStealth; if (!string.IsNullOrEmpty(stealthUnstealthSound)) { AkSoundEngine.PostEvent(stealthUnstealthSound, ((Component)player).gameObject); } void BreakStealth(PlayerController obj) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)poof != (Object)null) { ((GameActor)obj).PlayEffectOnActor(poof, Vector3.zero, false, true, false); } obj.OnDidUnstealthyAction -= BreakStealth; if (allowStealing) { obj.SetCapableOfStealing(false, reason, (float?)null); obj.OnItemStolen -= BreakStealthOnSteal; } if (disableEnemyCollision) { ((BraveBehaviour)obj).specRigidbody.RemoveCollisionLayerIgnoreOverride(CollisionMask.LayerToMask((CollisionLayer)2, (CollisionLayer)3)); } if (enableStealthShader) { obj.ChangeSpecialShaderFlag(1, 0f); } ((GameActor)obj).SetIsStealthed(false, reason); if (!string.IsNullOrEmpty(stealthUnstealthSound)) { AkSoundEngine.PostEvent(stealthUnstealthSound, ((Component)obj).gameObject); } } void BreakStealthOnSteal(PlayerController arg1, ShopItemController arg2) { BreakStealth(arg1); } } public static void ReplaceShader(this tk2dSpriteDefinition def, string shaderName) { if (def != null) { if ((Object)(object)def.material != (Object)null) { def.material.shader = ShaderCache.Acquire(shaderName); } if ((Object)(object)def.materialInst != (Object)null) { def.materialInst.shader = ShaderCache.Acquire(shaderName); } } } public static string AddToAtlas(Texture2D tex, string overrideName = null) { ItemInfo info; return AddToAtlas(tex, out info, overrideName); } public static string AddToAtlas(Texture2D tex, out ItemInfo info, string overrideName = null) { string text = overrideName ?? ("ccr_" + ((Object)tex).name); info = Plugin.UIRootPrefab.Manager.DefaultAtlas.AddNewItemToAtlas(tex, text); return text; } public static ItemInfo AddNewItemToAtlas(this dfAtlas atlas, Texture2D tex, string name = null) { //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: 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_0047: Expected O, but got Unknown //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004e: 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_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) if (string.IsNullOrEmpty(name)) { name = ((Object)tex).name; } if (atlas[name] != (ItemInfo)null) { return atlas[name]; } ItemInfo val = new ItemInfo { border = new RectOffset(), deleted = false, name = name, region = atlas.FindFirstValidEmptySpace(new IntVector2(((Texture)tex).width, ((Texture)tex).height)), rotated = false, sizeInPixels = new Vector2((float)((Texture)tex).width, (float)((Texture)tex).height), texture = tex, textureGUID = name }; int num = Mathf.RoundToInt(((Rect)(ref val.region)).x * (float)((Texture)atlas.Texture).width); int num2 = Mathf.RoundToInt(((Rect)(ref val.region)).y * (float)((Texture)atlas.Texture).height); for (int i = num; i < Mathf.RoundToInt(((Rect)(ref val.region)).xMax * (float)((Texture)atlas.Texture).width); i++) { for (int j = num2; j < Mathf.RoundToInt(((Rect)(ref val.region)).yMax * (float)((Texture)atlas.Texture).height); j++) { atlas.Texture.SetPixel(i, j, tex.GetPixel(i - num, j - num2)); } } atlas.Texture.Apply(); atlas.AddItem(val); return val; } public static Rect FindFirstValidEmptySpace(this dfAtlas atlas, IntVector2 pixelScale) { //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_03a5: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02c9: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0171: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_0203: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Unknown result type (might be due to invalid IL or missing references) //IL_0211: Unknown result type (might be due to invalid IL or missing references) //IL_0216: 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_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)atlas == (Object)null || (Object)(object)atlas.Texture == (Object)null || !ETGMod.IsReadable(atlas.Texture)) { return new Rect(0f, 0f, 0f, 0f); } Vector2Int val = default(Vector2Int); ((Vector2Int)(ref val))..ctor(0, 0); int num = -1; List pixelRegions = atlas.GetPixelRegions(); bool flag; RectInt self = default(RectInt); do { flag = false; foreach (RectInt item in pixelRegions) { RectInt val2; if (item.Overlaps(new RectInt(val, pixelScale.ToVector2Int()))) { flag = true; num++; if (num >= pixelRegions.Count) { return new Rect(0f, 0f, 0f, 0f); } val2 = pixelRegions[num]; val = ((RectInt)(ref val2)).max + Vector2Int.one; if (((Vector2Int)(ref val)).x > ((Texture)atlas.Texture).width || ((Vector2Int)(ref val)).y > ((Texture)atlas.Texture).height) { atlas.ResizeAtlas(new IntVector2(((Texture)atlas.Texture).width * 2, ((Texture)atlas.Texture).height * 2)); } break; } bool flag2 = false; foreach (RectInt item2 in pixelRegions) { RectInt current2 = item2; ((RectInt)(ref self))..ctor(val, pixelScale.ToVector2Int()); if (((RectInt)(ref current2)).x < ((RectInt)(ref self)).x || ((RectInt)(ref current2)).y < ((RectInt)(ref self)).y || !self.Overlaps(current2)) { continue; } flag = true; flag2 = true; num++; if (num >= pixelRegions.Count) { return new Rect(0f, 0f, 0f, 0f); } val2 = pixelRegions[num]; val = ((RectInt)(ref val2)).max + Vector2Int.one; if (((Vector2Int)(ref val)).x > ((Texture)atlas.Texture).width || ((Vector2Int)(ref val)).y > ((Texture)atlas.Texture).height) { atlas.ResizeAtlas(new IntVector2(((Texture)atlas.Texture).width * 2, ((Texture)atlas.Texture).height * 2)); } break; } if (flag2) { break; } } } while (flag); RectInt val3 = default(RectInt); ((RectInt)(ref val3))..ctor(val, pixelScale.ToVector2Int()); if (((RectInt)(ref val3)).xMax > ((Texture)atlas.Texture).width || ((RectInt)(ref val3)).yMax > ((Texture)atlas.Texture).height) { atlas.ResizeAtlas(new IntVector2(((Texture)atlas.Texture).width * 2, ((Texture)atlas.Texture).height * 2)); } RectInt val4 = default(RectInt); ((RectInt)(ref val4))..ctor(val, pixelScale.ToVector2Int()); Rect result = default(Rect); ((Rect)(ref result))..ctor((float)((RectInt)(ref val4)).x / (float)((Texture)atlas.Texture).width, (float)((RectInt)(ref val4)).y / (float)((Texture)atlas.Texture).height, (float)((RectInt)(ref val4)).width / (float)((Texture)atlas.Texture).width, (float)((RectInt)(ref val4)).height / (float)((Texture)atlas.Texture).height); return result; } public static List GetPixelRegions(this dfAtlas atlas) { return atlas.Items.ConvertAll((Converter)((ItemInfo item) => new RectInt(Mathf.RoundToInt(((Rect)(ref item.region)).x * (float)((Texture)atlas.Texture).width), Mathf.RoundToInt(((Rect)(ref item.region)).y * (float)((Texture)atlas.Texture).height), Mathf.RoundToInt(((Rect)(ref item.region)).width * (float)((Texture)atlas.Texture).width), Mathf.RoundToInt(((Rect)(ref item.region)).height * (float)((Texture)atlas.Texture).height)))); } public static Vector2Int ToVector2Int(this IntVector2 vector) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) return new Vector2Int(vector.x, vector.y); } public static bool Overlaps(this RectInt self, RectInt other) { return ((RectInt)(ref other)).xMax > ((RectInt)(ref self)).xMin && ((RectInt)(ref other)).xMin < ((RectInt)(ref self)).xMax && ((RectInt)(ref other)).yMax > ((RectInt)(ref self)).yMin && ((RectInt)(ref other)).yMin < ((RectInt)(ref self)).yMax; } public static void ChangeMaterials(this tk2dSpriteDefinition def, ChangeMaterialsAction change) { if ((Object)(object)def.material != (Object)null) { change(ref def.material); } if ((Object)(object)def.materialInst != (Object)null) { change(ref def.materialInst); } } public static void ResizeAtlas(this dfAtlas atlas, IntVector2 newDimensions) { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: 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) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) Texture2D texture = atlas.Texture; if (!ETGMod.IsReadable(texture) || (((Texture)texture).width == newDimensions.x && ((Texture)texture).height == newDimensions.y)) { return; } foreach (ItemInfo item in atlas.Items) { _ = item.region; if (true) { ((Rect)(ref item.region)).x = ((Rect)(ref item.region)).x * (float)((Texture)texture).width / (float)newDimensions.x; ((Rect)(ref item.region)).y = ((Rect)(ref item.region)).y * (float)((Texture)texture).height / (float)newDimensions.y; ((Rect)(ref item.region)).width = ((Rect)(ref item.region)).width * (float)((Texture)texture).width / (float)newDimensions.x; ((Rect)(ref item.region)).height = ((Rect)(ref item.region)).height * (float)((Texture)texture).height / (float)newDimensions.y; } } texture.ResizeBetter(newDimensions.x, newDimensions.y); atlas.Material.SetTexture("_MainTex", (Texture)(object)texture); } public static Projectile OwnedShootProjectile(Projectile proj, Vector2 position, float angle, GameActor owner) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) GameObject val = SpawnManager.SpawnProjectile(((Component)proj).gameObject, Vector2.op_Implicit(position), Quaternion.Euler(0f, 0f, angle), true); Projectile component = val.GetComponent(); if ((Object)(object)component != (Object)null) { component.Owner = owner; component.Shooter = ((BraveBehaviour)owner).specRigidbody; } return component; } public static Vector2 GetRelativeAim(this PlayerController player) { //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) BraveInput instanceForPlayer = BraveInput.GetInstanceForPlayer(player.PlayerIDX); if ((Object)(object)instanceForPlayer != (Object)null) { if (instanceForPlayer.IsKeyboardAndMouse(false)) { return Vector3Extensions.XY(player.unadjustedAimPoint) - ((GameActor)player).CenterPosition; } if (instanceForPlayer.ActiveActions == null) { return Vector2.zero; } return ((TwoAxisInputControl)instanceForPlayer.ActiveActions.Aim).Vector; } return Vector2.zero; } public static T EnumeratorGetField(this object obj, string name) { return (T)obj.GetType().EnumeratorField(name).GetValue(obj); } public static FieldInfo EnumeratorField(this MethodBase method, string name) { return method.DeclaringType.EnumeratorField(name); } public static FieldInfo EnumeratorField(this Type tp, string name) { return tp.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).First((FieldInfo x) => (object)x != null && x.Name != null && (x.Name.Contains("<" + name + ">__") || x.Name == name)); } public static bool ResizeBetter(this Texture2D tex, int width, int height) { //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) if (ETGMod.IsReadable(tex)) { Color[][] array = new Color[Math.Min(((Texture)tex).width, width)][]; for (int i = 0; i < Math.Min(((Texture)tex).width, width); i++) { for (int j = 0; j < Math.Min(((Texture)tex).height, height); j++) { if (array[i] == null) { array[i] = (Color[])(object)new Color[Math.Min(((Texture)tex).height, height)]; } array[i][j] = tex.GetPixel(i, j); } } bool result = tex.Resize(width, height); for (int k = 0; k < ((Texture)tex).width; k++) { for (int l = 0; l < ((Texture)tex).height; l++) { bool flag = false; if (k < array.Length && l < array[k].Length) { flag = true; tex.SetPixel(k, l, array[k][l]); } if (!flag) { tex.SetPixel(k, l, Color.clear); } } } tex.Apply(); return result; } return tex.Resize(width, height); } public static VariableDefinition DeclareLocal(this ILContext ctx) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown VariableDefinition val = new VariableDefinition(ctx.Import(typeof(T))); ctx.Body.Variables.Add(val); return val; } public static VariableDefinition DeclareLocal(this ILCursor curs) { return curs.Context.DeclareLocal(); } public static bool Calls(this Instruction instr, MethodBase mthd) { return ILPatternMatchingExt.MatchCallOrCallvirt(instr, mthd); } public static bool JumpToNext(this ILCursor curs, Func predicate, int times = 1) { for (int i = 0; i < times; i++) { if (!curs.TryGotoNext((MoveType)2, new Func[1] { predicate })) { return false; } } return true; } public static bool JumpBeforeNext(this ILCursor curs, Func predicate, int times = 1) { for (int i = 0; i < times - 1; i++) { if (!curs.TryGotoNext((MoveType)2, new Func[1] { predicate })) { return false; } } if (curs.TryGotoNext((MoveType)0, new Func[1] { predicate })) { return true; } return false; } public static IEnumerable MatchBefore(this ILCursor curs, Func predicate) { while (curs.JumpBeforeNext(predicate)) { yield return null; curs.JumpToNext(predicate); } } public static IEnumerable MatchAfter(this ILCursor curs, Func predicate) { while (curs.JumpToNext(predicate)) { yield return null; } } public static void EmitStaticDelegate(this ILCursor crs, Delegate call) { //IL_0028: Unknown result type (might be due to invalid IL or missing references) if (call.GetInvocationList().Length != 1 || call.Target != null) { throw new ArgumentException("Delegate is either not static or has additional invocations"); } crs.Emit(OpCodes.Call, (MethodBase)call.Method); } public static FoyerCharacterSelectFlag AddToBreach(this PlayerController player, string assetPath, Vector3 breachPosition, List unlockPrereqs, IntRect obstacle, IntRect bulletblocker, IntVector2 additionalShadowOffset, string overheadElementPath, string breachName, string facecardAnimationPrefix, float facecardIdleFps, string itemsTexture, string description1Text = null, string description2Text = null, string overrideChangeCharacterString = null, string overrideYesResponse = null, string overrideNoResponse = null) { //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01ab: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: 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_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_0227: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Expected O, but got Unknown //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_0274: Unknown result type (might be due to invalid IL or missing references) //IL_0305: Unknown result type (might be due to invalid IL or missing references) //IL_030a: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_0322: Unknown result type (might be due to invalid IL or missing references) //IL_0327: Unknown result type (might be due to invalid IL or missing references) //IL_032e: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Expected O, but got Unknown //IL_0348: Expected O, but got Unknown //IL_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Expected O, but got Unknown //IL_0449: Unknown result type (might be due to invalid IL or missing references) //IL_0450: Expected O, but got Unknown //IL_049b: Unknown result type (might be due to invalid IL or missing references) //IL_04a0: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Expected O, but got Unknown //IL_05b7: Unknown result type (might be due to invalid IL or missing references) //IL_068f: Unknown result type (might be due to invalid IL or missing references) //IL_0696: Expected O, but got Unknown //IL_06cc: 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_06f8: Unknown result type (might be due to invalid IL or missing references) //IL_06fd: Unknown result type (might be due to invalid IL or missing references) //IL_0708: Unknown result type (might be due to invalid IL or missing references) //IL_0712: Expected O, but got Unknown //IL_0712: Unknown result type (might be due to invalid IL or missing references) //IL_071d: Unknown result type (might be due to invalid IL or missing references) //IL_071f: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_0726: Unknown result type (might be due to invalid IL or missing references) //IL_072b: Unknown result type (might be due to invalid IL or missing references) //IL_0733: Expected O, but got Unknown //IL_073a: Unknown result type (might be due to invalid IL or missing references) //IL_073f: Unknown result type (might be due to invalid IL or missing references) //IL_0756: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Unknown result type (might be due to invalid IL or missing references) //IL_0780: Unknown result type (might be due to invalid IL or missing references) //IL_0793: Unknown result type (might be due to invalid IL or missing references) //IL_07a6: Unknown result type (might be due to invalid IL or missing references) //IL_07bd: Unknown result type (might be due to invalid IL or missing references) //IL_07c8: Unknown result type (might be due to invalid IL or missing references) //IL_07d3: Unknown result type (might be due to invalid IL or missing references) //IL_07de: Unknown result type (might be due to invalid IL or missing references) //IL_07e9: Unknown result type (might be due to invalid IL or missing references) //IL_07f4: Unknown result type (might be due to invalid IL or missing references) //IL_07ff: Unknown result type (might be due to invalid IL or missing references) //IL_080a: Unknown result type (might be due to invalid IL or missing references) //IL_0815: Unknown result type (might be due to invalid IL or missing references) //IL_0820: Unknown result type (might be due to invalid IL or missing references) //IL_082b: Unknown result type (might be due to invalid IL or missing references) //IL_0836: Unknown result type (might be due to invalid IL or missing references) //IL_0841: Unknown result type (might be due to invalid IL or missing references) //IL_084c: Unknown result type (might be due to invalid IL or missing references) //IL_0857: Unknown result type (might be due to invalid IL or missing references) //IL_0862: Unknown result type (might be due to invalid IL or missing references) //IL_086d: Unknown result type (might be due to invalid IL or missing references) //IL_0878: Unknown result type (might be due to invalid IL or missing references) //IL_0883: Unknown result type (might be due to invalid IL or missing references) //IL_088e: Unknown result type (might be due to invalid IL or missing references) //IL_0899: Unknown result type (might be due to invalid IL or missing references) //IL_08a4: Unknown result type (might be due to invalid IL or missing references) //IL_08af: Unknown result type (might be due to invalid IL or missing references) //IL_08ba: Unknown result type (might be due to invalid IL or missing references) //IL_0905: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Unknown result type (might be due to invalid IL or missing references) //IL_091b: Unknown result type (might be due to invalid IL or missing references) //IL_0926: Unknown result type (might be due to invalid IL or missing references) //IL_0931: Unknown result type (might be due to invalid IL or missing references) //IL_0960: Unknown result type (might be due to invalid IL or missing references) //IL_099b: Unknown result type (might be due to invalid IL or missing references) //IL_09c6: Unknown result type (might be due to invalid IL or missing references) //IL_09f6: Expected O, but got Unknown //IL_09fc: Unknown result type (might be due to invalid IL or missing references) //IL_0a03: Expected O, but got Unknown //IL_0a39: Unknown result type (might be due to invalid IL or missing references) //IL_0a3e: Unknown result type (might be due to invalid IL or missing references) //IL_0a6a: Unknown result type (might be due to invalid IL or missing references) //IL_0a6f: Unknown result type (might be due to invalid IL or missing references) //IL_0a86: Unknown result type (might be due to invalid IL or missing references) //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ab0: Unknown result type (might be due to invalid IL or missing references) //IL_0ac3: Unknown result type (might be due to invalid IL or missing references) //IL_0ad6: Unknown result type (might be due to invalid IL or missing references) //IL_0ae9: Unknown result type (might be due to invalid IL or missing references) //IL_0af4: Unknown result type (might be due to invalid IL or missing references) //IL_0aff: Unknown result type (might be due to invalid IL or missing references) //IL_0b0a: Unknown result type (might be due to invalid IL or missing references) //IL_0b15: Unknown result type (might be due to invalid IL or missing references) //IL_0b20: Unknown result type (might be due to invalid IL or missing references) //IL_0b2b: Unknown result type (might be due to invalid IL or missing references) //IL_0b36: Unknown result type (might be due to invalid IL or missing references) //IL_0b41: Unknown result type (might be due to invalid IL or missing references) //IL_0b4c: Unknown result type (might be due to invalid IL or missing references) //IL_0b57: Unknown result type (might be due to invalid IL or missing references) //IL_0b62: Unknown result type (might be due to invalid IL or missing references) //IL_0b6d: Unknown result type (might be due to invalid IL or missing references) //IL_0b78: Unknown result type (might be due to invalid IL or missing references) //IL_0b83: Unknown result type (might be due to invalid IL or missing references) //IL_0b8e: Unknown result type (might be due to invalid IL or missing references) //IL_0b99: Unknown result type (might be due to invalid IL or missing references) //IL_0ba4: Unknown result type (might be due to invalid IL or missing references) //IL_0baf: Unknown result type (might be due to invalid IL or missing references) //IL_0bba: Unknown result type (might be due to invalid IL or missing references) //IL_0bc5: Unknown result type (might be due to invalid IL or missing references) //IL_0bd0: Unknown result type (might be due to invalid IL or missing references) //IL_0bdb: Unknown result type (might be due to invalid IL or missing references) //IL_0be6: Unknown result type (might be due to invalid IL or missing references) //IL_0bf1: Unknown result type (might be due to invalid IL or missing references) //IL_0bfc: Unknown result type (might be due to invalid IL or missing references) //IL_0c07: Unknown result type (might be due to invalid IL or missing references) //IL_0c12: Unknown result type (might be due to invalid IL or missing references) //IL_0c1d: Unknown result type (might be due to invalid IL or missing references) //IL_0c28: Unknown result type (might be due to invalid IL or missing references) //IL_0c33: Unknown result type (might be due to invalid IL or missing references) //IL_0c3e: Unknown result type (might be due to invalid IL or missing references) //IL_0c4e: Expected O, but got Unknown //IL_0c54: Unknown result type (might be due to invalid IL or missing references) //IL_0c5b: Expected O, but got Unknown //IL_0c91: Unknown result type (might be due to invalid IL or missing references) //IL_0c96: Unknown result type (might be due to invalid IL or missing references) //IL_0cbd: Unknown result type (might be due to invalid IL or missing references) //IL_0cc2: Unknown result type (might be due to invalid IL or missing references) //IL_0ccd: Unknown result type (might be due to invalid IL or missing references) //IL_0cd7: Expected O, but got Unknown //IL_0cd7: Unknown result type (might be due to invalid IL or missing references) //IL_0ce2: Unknown result type (might be due to invalid IL or missing references) //IL_0ce4: Unknown result type (might be due to invalid IL or missing references) //IL_0ce9: Unknown result type (might be due to invalid IL or missing references) //IL_0ceb: Unknown result type (might be due to invalid IL or missing references) //IL_0cf0: Unknown result type (might be due to invalid IL or missing references) //IL_0cf8: Expected O, but got Unknown //IL_0cfa: Unknown result type (might be due to invalid IL or missing references) //IL_0cff: Unknown result type (might be due to invalid IL or missing references) //IL_0d0a: Unknown result type (might be due to invalid IL or missing references) //IL_0d14: Expected O, but got Unknown //IL_0d14: Unknown result type (might be due to invalid IL or missing references) //IL_0d1f: Unknown result type (might be due to invalid IL or missing references) //IL_0d21: Unknown result type (might be due to invalid IL or missing references) //IL_0d26: Unknown result type (might be due to invalid IL or missing references) //IL_0d28: Unknown result type (might be due to invalid IL or missing references) //IL_0d2d: Unknown result type (might be due to invalid IL or missing references) //IL_0d35: Expected O, but got Unknown //IL_0d37: Unknown result type (might be due to invalid IL or missing references) //IL_0d3c: Unknown result type (might be due to invalid IL or missing references) //IL_0d47: Unknown result type (might be due to invalid IL or missing references) //IL_0d51: Expected O, but got Unknown //IL_0d51: Unknown result type (might be due to invalid IL or missing references) //IL_0d5c: Unknown result type (might be due to invalid IL or missing references) //IL_0d5e: Unknown result type (might be due to invalid IL or missing references) //IL_0d63: Unknown result type (might be due to invalid IL or missing references) //IL_0d65: Unknown result type (might be due to invalid IL or missing references) //IL_0d6a: Unknown result type (might be due to invalid IL or missing references) //IL_0d72: Expected O, but got Unknown //IL_0d79: Unknown result type (might be due to invalid IL or missing references) //IL_0d7e: Unknown result type (might be due to invalid IL or missing references) //IL_0da1: Unknown result type (might be due to invalid IL or missing references) //IL_0dc4: Unknown result type (might be due to invalid IL or missing references) //IL_0ddf: Unknown result type (might be due to invalid IL or missing references) //IL_0dfa: Unknown result type (might be due to invalid IL or missing references) //IL_0e15: Unknown result type (might be due to invalid IL or missing references) //IL_0e38: Unknown result type (might be due to invalid IL or missing references) //IL_0e4b: Unknown result type (might be due to invalid IL or missing references) //IL_0e56: Unknown result type (might be due to invalid IL or missing references) //IL_0e61: Unknown result type (might be due to invalid IL or missing references) //IL_0e6c: Unknown result type (might be due to invalid IL or missing references) //IL_0e77: Unknown result type (might be due to invalid IL or missing references) //IL_0e82: Unknown result type (might be due to invalid IL or missing references) //IL_0e8d: Unknown result type (might be due to invalid IL or missing references) //IL_0e98: Unknown result type (might be due to invalid IL or missing references) //IL_0ea3: Unknown result type (might be due to invalid IL or missing references) //IL_0eaf: Unknown result type (might be due to invalid IL or missing references) //IL_0eb4: Unknown result type (might be due to invalid IL or missing references) //IL_0eca: Expected O, but got Unknown //IL_0ed1: Unknown result type (might be due to invalid IL or missing references) //IL_0ed6: Unknown result type (might be due to invalid IL or missing references) //IL_0eec: Expected O, but got Unknown //IL_0ef3: Unknown result type (might be due to invalid IL or missing references) //IL_0ef8: Unknown result type (might be due to invalid IL or missing references) //IL_0f0e: Expected O, but got Unknown //IL_0f15: Unknown result type (might be due to invalid IL or missing references) //IL_0f1a: Unknown result type (might be due to invalid IL or missing references) //IL_0f2a: Expected O, but got Unknown //IL_0f30: Unknown result type (might be due to invalid IL or missing references) //IL_0f3b: Unknown result type (might be due to invalid IL or missing references) //IL_0f46: Unknown result type (might be due to invalid IL or missing references) //IL_0f51: Unknown result type (might be due to invalid IL or missing references) //IL_0f5c: Unknown result type (might be due to invalid IL or missing references) //IL_0f67: Unknown result type (might be due to invalid IL or missing references) //IL_0f72: Unknown result type (might be due to invalid IL or missing references) //IL_0f7d: Unknown result type (might be due to invalid IL or missing references) //IL_0f88: Unknown result type (might be due to invalid IL or missing references) //IL_0f93: Unknown result type (might be due to invalid IL or missing references) //IL_0f9e: Unknown result type (might be due to invalid IL or missing references) //IL_0fa9: Unknown result type (might be due to invalid IL or missing references) //IL_0fb4: Unknown result type (might be due to invalid IL or missing references) //IL_0fbf: Unknown result type (might be due to invalid IL or missing references) //IL_11a7: Unknown result type (might be due to invalid IL or missing references) //IL_11ca: Unknown result type (might be due to invalid IL or missing references) //IL_11f9: Unknown result type (might be due to invalid IL or missing references) //IL_1204: Unknown result type (might be due to invalid IL or missing references) //IL_120f: Unknown result type (might be due to invalid IL or missing references) //IL_12eb: Unknown result type (might be due to invalid IL or missing references) //IL_1416: Unknown result type (might be due to invalid IL or missing references) //IL_14ee: Unknown result type (might be due to invalid IL or missing references) //IL_15be: Expected O, but got Unknown //IL_15c4: Unknown result type (might be due to invalid IL or missing references) //IL_15cb: Expected O, but got Unknown //IL_1601: Unknown result type (might be due to invalid IL or missing references) //IL_1606: Unknown result type (might be due to invalid IL or missing references) //IL_1632: Unknown result type (might be due to invalid IL or missing references) //IL_1637: Unknown result type (might be due to invalid IL or missing references) //IL_1666: Unknown result type (might be due to invalid IL or missing references) //IL_1695: Unknown result type (might be due to invalid IL or missing references) //IL_16b8: Unknown result type (might be due to invalid IL or missing references) //IL_16db: Unknown result type (might be due to invalid IL or missing references) //IL_16fe: Unknown result type (might be due to invalid IL or missing references) //IL_1729: Unknown result type (might be due to invalid IL or missing references) //IL_1734: Unknown result type (might be due to invalid IL or missing references) //IL_173f: Unknown result type (might be due to invalid IL or missing references) //IL_174a: Unknown result type (might be due to invalid IL or missing references) //IL_1755: Unknown result type (might be due to invalid IL or missing references) //IL_1760: Unknown result type (might be due to invalid IL or missing references) //IL_176b: Unknown result type (might be due to invalid IL or missing references) //IL_1776: Unknown result type (might be due to invalid IL or missing references) //IL_1781: Unknown result type (might be due to invalid IL or missing references) //IL_178c: Unknown result type (might be due to invalid IL or missing references) //IL_1797: Unknown result type (might be due to invalid IL or missing references) //IL_17a2: Unknown result type (might be due to invalid IL or missing references) //IL_17ad: Unknown result type (might be due to invalid IL or missing references) //IL_17b8: Unknown result type (might be due to invalid IL or missing references) //IL_17c3: Unknown result type (might be due to invalid IL or missing references) //IL_17ce: Unknown result type (might be due to invalid IL or missing references) //IL_17d9: Unknown result type (might be due to invalid IL or missing references) //IL_17e4: Unknown result type (might be due to invalid IL or missing references) //IL_17ef: Unknown result type (might be due to invalid IL or missing references) //IL_17fa: Unknown result type (might be due to invalid IL or missing references) //IL_1805: Unknown result type (might be due to invalid IL or missing references) //IL_1810: Unknown result type (might be due to invalid IL or missing references) //IL_181b: Unknown result type (might be due to invalid IL or missing references) //IL_1826: Unknown result type (might be due to invalid IL or missing references) //IL_1886: Unknown result type (might be due to invalid IL or missing references) //IL_1891: Unknown result type (might be due to invalid IL or missing references) //IL_189c: Unknown result type (might be due to invalid IL or missing references) //IL_18a7: Unknown result type (might be due to invalid IL or missing references) //IL_18b2: Unknown result type (might be due to invalid IL or missing references) //IL_18e9: Unknown result type (might be due to invalid IL or missing references) //IL_1930: Unknown result type (might be due to invalid IL or missing references) //IL_1963: Unknown result type (might be due to invalid IL or missing references) //IL_19a0: Expected O, but got Unknown //IL_19a6: Unknown result type (might be due to invalid IL or missing references) //IL_19ad: Expected O, but got Unknown //IL_19e3: Unknown result type (might be due to invalid IL or missing references) //IL_19e8: Unknown result type (might be due to invalid IL or missing references) //IL_1a14: Unknown result type (might be due to invalid IL or missing references) //IL_1a19: Unknown result type (might be due to invalid IL or missing references) //IL_1a30: Unknown result type (might be due to invalid IL or missing references) //IL_1a47: Unknown result type (might be due to invalid IL or missing references) //IL_1a5a: Unknown result type (might be due to invalid IL or missing references) //IL_1a6d: Unknown result type (might be due to invalid IL or missing references) //IL_1a80: Unknown result type (might be due to invalid IL or missing references) //IL_1a93: Unknown result type (might be due to invalid IL or missing references) //IL_1a9e: Unknown result type (might be due to invalid IL or missing references) //IL_1aa9: Unknown result type (might be due to invalid IL or missing references) //IL_1ab4: Unknown result type (might be due to invalid IL or missing references) //IL_1abf: Unknown result type (might be due to invalid IL or missing references) //IL_1aca: Unknown result type (might be due to invalid IL or missing references) //IL_1ad5: Unknown result type (might be due to invalid IL or missing references) //IL_1ae0: Unknown result type (might be due to invalid IL or missing references) //IL_1aeb: Unknown result type (might be due to invalid IL or missing references) //IL_1af6: Unknown result type (might be due to invalid IL or missing references) //IL_1b01: Unknown result type (might be due to invalid IL or missing references) //IL_1b0c: Unknown result type (might be due to invalid IL or missing references) //IL_1b17: Unknown result type (might be due to invalid IL or missing references) //IL_1b22: Unknown result type (might be due to invalid IL or missing references) //IL_1b2d: Unknown result type (might be due to invalid IL or missing references) //IL_1b38: Unknown result type (might be due to invalid IL or missing references) //IL_1b43: Unknown result type (might be due to invalid IL or missing references) //IL_1b4e: Unknown result type (might be due to invalid IL or missing references) //IL_1b59: Unknown result type (might be due to invalid IL or missing references) //IL_1b64: Unknown result type (might be due to invalid IL or missing references) //IL_1b6f: Unknown result type (might be due to invalid IL or missing references) //IL_1b7a: Unknown result type (might be due to invalid IL or missing references) //IL_1b85: Unknown result type (might be due to invalid IL or missing references) //IL_1b90: Unknown result type (might be due to invalid IL or missing references) //IL_1b9b: Unknown result type (might be due to invalid IL or missing references) //IL_1ba6: Unknown result type (might be due to invalid IL or missing references) //IL_1bb1: Unknown result type (might be due to invalid IL or missing references) //IL_1bbc: Unknown result type (might be due to invalid IL or missing references) //IL_1bc7: Unknown result type (might be due to invalid IL or missing references) //IL_1bd2: Unknown result type (might be due to invalid IL or missing references) //IL_1bdd: Unknown result type (might be due to invalid IL or missing references) //IL_1be8: Unknown result type (might be due to invalid IL or missing references) //IL_1bf8: Expected O, but got Unknown //IL_1c1a: Unknown result type (might be due to invalid IL or missing references) //IL_1c20: Expected O, but got Unknown //IL_1c2c: Unknown result type (might be due to invalid IL or missing references) //IL_1c32: Expected O, but got Unknown //IL_1c3e: Unknown result type (might be due to invalid IL or missing references) //IL_1c44: Expected O, but got Unknown //IL_1c50: Unknown result type (might be due to invalid IL or missing references) //IL_1c56: Expected O, but got Unknown //IL_1c62: Unknown result type (might be due to invalid IL or missing references) //IL_1c68: Expected O, but got Unknown //IL_1c74: Unknown result type (might be due to invalid IL or missing references) //IL_1c7a: Expected O, but got Unknown //IL_1c86: Unknown result type (might be due to invalid IL or missing references) //IL_1c8c: Expected O, but got Unknown //IL_1c98: Unknown result type (might be due to invalid IL or missing references) //IL_1c9e: Expected O, but got Unknown //IL_1caa: Unknown result type (might be due to invalid IL or missing references) //IL_1cb0: Expected O, but got Unknown //IL_1cbd: Unknown result type (might be due to invalid IL or missing references) //IL_1cc3: Expected O, but got Unknown //IL_1cd0: Unknown result type (might be due to invalid IL or missing references) //IL_1cd6: Expected O, but got Unknown //IL_1cea: Unknown result type (might be due to invalid IL or missing references) //IL_1cef: Unknown result type (might be due to invalid IL or missing references) //IL_1cfa: Unknown result type (might be due to invalid IL or missing references) //IL_1d04: Expected O, but got Unknown //IL_1d04: Unknown result type (might be due to invalid IL or missing references) //IL_1d0f: Unknown result type (might be due to invalid IL or missing references) //IL_1d11: Unknown result type (might be due to invalid IL or missing references) //IL_1d16: Unknown result type (might be due to invalid IL or missing references) //IL_1d18: Unknown result type (might be due to invalid IL or missing references) //IL_1d1d: Unknown result type (might be due to invalid IL or missing references) //IL_1d25: Expected O, but got Unknown //IL_1d27: Unknown result type (might be due to invalid IL or missing references) //IL_1d2c: Unknown result type (might be due to invalid IL or missing references) //IL_1d37: Unknown result type (might be due to invalid IL or missing references) //IL_1d41: Expected O, but got Unknown //IL_1d41: Unknown result type (might be due to invalid IL or missing references) //IL_1d4c: Unknown result type (might be due to invalid IL or missing references) //IL_1d4e: Unknown result type (might be due to invalid IL or missing references) //IL_1d53: Unknown result type (might be due to invalid IL or missing references) //IL_1d55: Unknown result type (might be due to invalid IL or missing references) //IL_1d5a: Unknown result type (might be due to invalid IL or missing references) //IL_1d62: Expected O, but got Unknown //IL_1ea5: Unknown result type (might be due to invalid IL or missing references) //IL_1eb1: Unknown result type (might be due to invalid IL or missing references) //IL_1eb6: Unknown result type (might be due to invalid IL or missing references) //IL_1ebe: Unknown result type (might be due to invalid IL or missing references) //IL_1ebf: Unknown result type (might be due to invalid IL or missing references) //IL_1ec4: Unknown result type (might be due to invalid IL or missing references) //IL_1ecf: Unknown result type (might be due to invalid IL or missing references) //IL_1eda: Unknown result type (might be due to invalid IL or missing references) //IL_1ee5: Unknown result type (might be due to invalid IL or missing references) //IL_1ef5: Expected O, but got Unknown //IL_1efa: Expected O, but got Unknown //IL_1efd: Unknown result type (might be due to invalid IL or missing references) //IL_1f17: Unknown result type (might be due to invalid IL or missing references) //IL_1f1c: Unknown result type (might be due to invalid IL or missing references) //IL_1f40: Unknown result type (might be due to invalid IL or missing references) //IL_1f45: Unknown result type (might be due to invalid IL or missing references) //IL_1f8a: Unknown result type (might be due to invalid IL or missing references) //IL_1f96: Unknown result type (might be due to invalid IL or missing references) //IL_1f9b: Unknown result type (might be due to invalid IL or missing references) //IL_1fa3: Unknown result type (might be due to invalid IL or missing references) //IL_1fa4: Unknown result type (might be due to invalid IL or missing references) //IL_1fa9: Unknown result type (might be due to invalid IL or missing references) //IL_1fb4: Unknown result type (might be due to invalid IL or missing references) //IL_1fbf: Unknown result type (might be due to invalid IL or missing references) //IL_1fca: Unknown result type (might be due to invalid IL or missing references) //IL_1fda: Expected O, but got Unknown //IL_1fdf: Expected O, but got Unknown //IL_1ff4: Unknown result type (might be due to invalid IL or missing references) //IL_1ff9: Unknown result type (might be due to invalid IL or missing references) //IL_204c: Unknown result type (might be due to invalid IL or missing references) //IL_2051: Unknown result type (might be due to invalid IL or missing references) //IL_207f: Unknown result type (might be due to invalid IL or missing references) //IL_208f: Unknown result type (might be due to invalid IL or missing references) //IL_2094: Unknown result type (might be due to invalid IL or missing references) //IL_20e7: Unknown result type (might be due to invalid IL or missing references) //IL_20ec: Unknown result type (might be due to invalid IL or missing references) //IL_2134: Unknown result type (might be due to invalid IL or missing references) //IL_2144: Unknown result type (might be due to invalid IL or missing references) //IL_2149: Unknown result type (might be due to invalid IL or missing references) //IL_219c: Unknown result type (might be due to invalid IL or missing references) //IL_21a1: Unknown result type (might be due to invalid IL or missing references) //IL_21e1: Unknown result type (might be due to invalid IL or missing references) //IL_21f1: Unknown result type (might be due to invalid IL or missing references) //IL_21f6: Unknown result type (might be due to invalid IL or missing references) //IL_2249: Unknown result type (might be due to invalid IL or missing references) //IL_224e: Unknown result type (might be due to invalid IL or missing references) //IL_227f: Unknown result type (might be due to invalid IL or missing references) //IL_228f: Unknown result type (might be due to invalid IL or missing references) //IL_2294: Unknown result type (might be due to invalid IL or missing references) //IL_22e7: Unknown result type (might be due to invalid IL or missing references) //IL_22ec: Unknown result type (might be due to invalid IL or missing references) //IL_2300: Unknown result type (might be due to invalid IL or missing references) //IL_232e: Unknown result type (might be due to invalid IL or missing references) //IL_2333: Unknown result type (might be due to invalid IL or missing references) //IL_24e2: Unknown result type (might be due to invalid IL or missing references) //IL_237f: Unknown result type (might be due to invalid IL or missing references) //IL_2389: Unknown result type (might be due to invalid IL or missing references) //IL_238e: Unknown result type (might be due to invalid IL or missing references) GameObject val = Plugin.bundle.LoadAsset(assetPath); if ((Object)(object)val == (Object)null) { return null; } SpecialAssets.assets.Add((Object)(object)val); GameObject val2 = Plugin.bundle.LoadAsset(overheadElementPath); if ((Object)(object)val2 == (Object)null) { return null; } SpecialAssets.assets.Add((Object)(object)val2); string text = ((Object)player).name; if (!text.ToLowerInvariant().StartsWith("player")) { text = "Player" + text; } tk2dSprite tK2DSprite = tk2dSprite.AddComponent(val, ((Component)((BraveBehaviour)player).transform.Find("PlayerSprite")).GetComponent().Collection, ((Component)((BraveBehaviour)player).transform.Find("PlayerSprite")).GetComponent().GetClipByName("select_idle")?.frames?.FirstOrDefault()?.spriteId ?? ((Component)((BraveBehaviour)player).transform.Find("PlayerSprite")).GetComponent().spriteId); tk2dSpriteAnimator val3 = val.AddComponent(); val3.Library = ((Component)((BraveBehaviour)player).transform.Find("PlayerSprite")).GetComponent().Library; val3.defaultClipId = val3.GetClipIdByName("select_idle"); val3.playAutomatically = val3.defaultClipId >= 0; SpeculativeRigidbody val4 = val.AddComponent(); val4.PixelColliders = new List { new PixelCollider { CollisionLayer = (CollisionLayer)5, ColliderGenerationMode = (PixelColliderGeneration)0, ManualOffsetX = obstacle.Left, ManualOffsetY = obstacle.Bottom, ManualWidth = obstacle.Width, ManualHeight = obstacle.Height }, new PixelCollider { CollisionLayer = (CollisionLayer)8, ColliderGenerationMode = (PixelColliderGeneration)0, ManualOffsetX = bulletblocker.Left, ManualOffsetY = bulletblocker.Bottom, ManualWidth = bulletblocker.Width, ManualHeight = bulletblocker.Height } }; val4.TK2DSprite = (tk2dBaseSprite)(object)tK2DSprite; TalkDoerLite val5 = val.AddComponent(); val5.usesOverrideInteractionRegion = false; val5.overrideRegionOffset = Vector2.zero; val5.overrideRegionDimensions = new Vector2(10f, 10f); val5.overrideInteractionRadius = 2f; val5.PreventInteraction = false; val5.AllowPlayerToPassEventually = true; val5.speakPoint = val.transform.Find("TalkPoint"); val5.SpeaksGleepGlorpenese = false; val5.audioCharacterSpeechTag = player.characterAudioSpeechTag; val5.playerApproachRadius = 5f; val5.conversationBreakRadius = 7f; val5.echo1 = null; val5.echo2 = null; val5.PreventCoopInteraction = true; val5.IsPaletteSwapped = false; val5.PaletteTexture = null; TeleportSettings val6 = new TeleportSettings { anim = "", animDelay = 0f, timing = (Timing)0, vfx = null, vfxAnchor = null, vfxDelay = 0f }; TeleportSettings teleportInSettings = val6; val5.teleportOutSettings = val6; val5.teleportInSettings = teleportInSettings; val5.itemsToLeaveBehind = new List(); val5.shadow = ((Component)val.transform.Find("DefaultShadowSprite")).gameObject; val5.DisableOnShortcutRun = false; val5.OptionalMinimapIcon = null; val5.OverheadUIElementDelay = 0.5f; val5.OptionalCustomNotificationSprite = null; val5.OutlineDepth = 0.4f; val5.OutlineLuminanceCutoff = 0.05f; val5.ReassignPrefabReferences = new List(); val5.MovementSpeed = 3f; val5.PathableTiles = (CellTypes)2; val5.IsDoingForcedSpeech = false; PlayMakerFSM val7 = val.AddComponent(); Fsm val8 = new Fsm(); val8.dataVersion = 1; val8.usedInTemplate = null; val8.name = ((Object)player).name + " FoyerFSM"; val8.startState = "Sitting Around"; val8.states = (FsmState[])(object)new FsmState[5]; val8.events = (FsmEvent[])(object)new FsmEvent[11]; val8.globalTransitions = (FsmTransition[])(object)new FsmTransition[2]; FsmVariables val9 = new FsmVariables(); val9.categories = new string[1] { "" }; val9.floatVariables = (FsmFloat[])(object)new FsmFloat[0]; val9.intVariables = (FsmInt[])(object)new FsmInt[0]; val9.boolVariables = (FsmBool[])(object)new FsmBool[0]; val9.stringVariables = (FsmString[])(object)new FsmString[1] { new FsmString("currentMode") { value = "modeBegin" } }; val9.vector2Variables = (FsmVector2[])(object)new FsmVector2[0]; val9.vector3Variables = (FsmVector3[])(object)new FsmVector3[0]; val9.colorVariables = (FsmColor[])(object)new FsmColor[0]; val9.rectVariables = (FsmRect[])(object)new FsmRect[0]; val9.quaternionVariables = (FsmQuaternion[])(object)new FsmQuaternion[0]; val9.gameObjectVariables = (FsmGameObject[])(object)new FsmGameObject[0]; val9.objectVariables = (FsmObject[])(object)new FsmObject[0]; val9.materialVariables = (FsmMaterial[])(object)new FsmMaterial[0]; val9.textureVariables = (FsmTexture[])(object)new FsmTexture[0]; val9.arrayVariables = (FsmArray[])(object)new FsmArray[0]; val9.enumVariables = (FsmEnum[])(object)new FsmEnum[0]; val9.variableCategoryIDs = new int[0]; val8.variables = val9; val8.description = "Convict\n"; val8.docUrl = ""; val8.showStateLabel = true; val8.maxLoopCount = 0; val8.watermark = "Spy.png"; val8.password = ""; val8.locked = false; val8.manualUpdate = false; val8.keepDelayedEventsOnStateExit = false; val8.preprocessed = false; val8.editorFlags = (EditorFlags)3; val8.activeStateName = ""; val8.mouseEvents = false; val8.handleTriggerEnter2D = false; val8.handleTriggerExit2D = false; val8.handleTriggerStay2D = false; val8.handleCollisionEnter2D = false; val8.handleCollisionExit2D = false; val8.handleCollisionStay2D = false; val8.handleTriggerEnter = false; val8.handleTriggerExit = false; val8.handleTriggerStay = false; val8.handleCollisionEnter = false; val8.handleCollisionExit = false; val8.handleCollisionStay = false; val8.handleParticleCollision = false; val8.handleControllerColliderHit = false; val8.handleJointBreak = false; val8.handleJointBreak2D = false; val8.handleOnGUI = false; val8.handleFixedUpdate = false; val8.handleApplicationEvents = false; val8.handleAnimatorMove = false; val8.handleAnimatorIK = false; val7.fsm = val8; Fsm fsm = val7.fsm; FsmState[] array = new FsmState[5]; FsmState val10 = new FsmState((Fsm)null); val10.name = "Sitting Around"; val10.description = ""; val10.colorIndex = 1; val10.position = new Rect(63.75f, 105.5f, 115f, 32f); val10.isBreakpoint = false; val10.isSequence = false; val10.hideUnused = false; val10.transitions = (FsmTransition[])(object)new FsmTransition[1] { new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("playerInteract")), toState = "Mode Switchboard", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 } }; val10.actionData = new ActionData { actionNames = new List { "HutongGames.PlayMaker.Actions.EndConversation" }, customNames = new List { "" }, actionEnabled = new List { true }, actionIsOpen = new List { true }, actionStartIndex = new List { 0 }, actionHashCodes = new List { 68280249 }, unityObjectParams = new List(), fsmGameObjectParams = new List(), fsmOwnerDefaultParams = new List(), animationCurveParams = new List(), functionCallParams = new List(), fsmTemplateControlParams = new List(), fsmEventTargetParams = new List(), fsmPropertyParams = new List(), layoutOptionParams = new List(), fsmStringParams = new List(), fsmObjectParams = new List(), fsmVarParams = new List(), fsmArrayParams = new List(), fsmEnumParams = new List(), fsmFloatParams = new List(), fsmIntParams = new List(), fsmBoolParams = new List(), fsmVector2Params = new List(), fsmVector3Params = new List(), fsmColorParams = new List(), fsmRectParams = new List(), fsmQuaternionParams = new List(), stringParams = new List(), byteData = new List { 0, 0, 0, 0, 0, 0, 0, 0 }, arrayParamSizes = new List(), arrayParamTypes = new List(), customTypeSizes = new List(), customTypeNames = new List(), paramDataType = new List { (ParamDataType)17, (ParamDataType)17, (ParamDataType)17, (ParamDataType)17 }, paramName = new List { "killZombieTextBoxes", "doNotLerpCamera", "suppressReinteractDelay", "suppressFurtherInteraction" }, paramDataPos = new List { 0, 2, 4, 6 }, paramByteDataSize = new List { 2, 2, 2, 2 } }; array[0] = val10; val10 = new FsmState((Fsm)null); val10.name = "Mode Switchboard"; val10.description = ""; val10.colorIndex = 0; val10.position = new Rect(231.5313f, 113.6172f, 142f, 16f); val10.isBreakpoint = false; val10.isSequence = false; val10.hideUnused = false; val10.transitions = (FsmTransition[])(object)new FsmTransition[0]; val10.actionData = new ActionData { actionNames = new List { "HutongGames.PlayMaker.Actions.ModeSwitchboard" }, customNames = new List { "" }, actionEnabled = new List { true }, actionIsOpen = new List { true }, actionStartIndex = new List { 0 }, actionHashCodes = new List { 0 }, unityObjectParams = new List(), fsmGameObjectParams = new List(), fsmOwnerDefaultParams = new List(), animationCurveParams = new List(), functionCallParams = new List(), fsmTemplateControlParams = new List(), fsmEventTargetParams = new List(), fsmPropertyParams = new List(), layoutOptionParams = new List(), fsmStringParams = new List(), fsmObjectParams = new List(), fsmVarParams = new List(), fsmArrayParams = new List(), fsmEnumParams = new List(), fsmFloatParams = new List(), fsmIntParams = new List(), fsmBoolParams = new List(), fsmVector2Params = new List(), fsmVector3Params = new List(), fsmColorParams = new List(), fsmRectParams = new List(), fsmQuaternionParams = new List(), stringParams = new List(), byteData = new List(), arrayParamSizes = new List(), arrayParamTypes = new List(), customTypeSizes = new List(), customTypeNames = new List(), paramDataType = new List(), paramName = new List(), paramDataPos = new List(), paramByteDataSize = new List() }; array[1] = val10; val10 = new FsmState((Fsm)null); val10.name = "First Speech"; val10.description = ""; val10.colorIndex = 0; val10.position = new Rect(240.1953f, 247.6641f, 102f, 64f); val10.isBreakpoint = false; val10.isSequence = false; val10.hideUnused = false; val10.transitions = (FsmTransition[])(object)new FsmTransition[3] { new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("yes")), toState = "Do Character Change", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 }, new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("no")), toState = "End", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 }, new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("FINISHED")), toState = "End", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 } }; val10.actionData = new ActionData { actionNames = new List { "HutongGames.PlayMaker.Actions.BeginConversation", "HutongGames.PlayMaker.Actions.DialogueBox" }, customNames = new List { "", "" }, actionEnabled = new List { true, true }, actionIsOpen = new List { true, true }, actionStartIndex = new List { 0, 5 }, actionHashCodes = new List { 89987726, 34040686 }, unityObjectParams = new List { null }, fsmGameObjectParams = new List(), fsmOwnerDefaultParams = new List(), animationCurveParams = new List(), functionCallParams = new List(), fsmTemplateControlParams = new List(), fsmEventTargetParams = new List(), fsmPropertyParams = new List(), layoutOptionParams = new List(), fsmStringParams = new List { new FsmString("") { value = (overrideChangeCharacterString ?? "#CHARACTER_SELECT_CHANGE_QUESTION") }, new FsmString("") { value = (overrideYesResponse ?? "#YES") }, new FsmString("") { value = (overrideNoResponse ?? "#NO") }, new FsmString("") { value = "" } }, fsmObjectParams = new List(), fsmVarParams = new List(), fsmArrayParams = new List(), fsmEnumParams = new List(), fsmFloatParams = new List(), fsmIntParams = new List(), fsmBoolParams = new List(), fsmVector2Params = new List(), fsmVector3Params = new List(), fsmColorParams = new List(), fsmRectParams = new List(), fsmQuaternionParams = new List(), stringParams = new List(), byteData = new List { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 0, 121, 101, 115, 110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, arrayParamSizes = new List { 1, 2, 2 }, arrayParamTypes = new List { "HutongGames.PlayMaker.FsmString", "HutongGames.PlayMaker.FsmString", "HutongGames.PlayMaker.FsmEvent" }, customTypeSizes = new List(), customTypeNames = new List(), paramDataType = new List { (ParamDataType)7, (ParamDataType)7, (ParamDataType)15, (ParamDataType)1, (ParamDataType)8, (ParamDataType)7, (ParamDataType)7, (ParamDataType)16, (ParamDataType)12, (ParamDataType)18, (ParamDataType)12, (ParamDataType)18, (ParamDataType)18, (ParamDataType)12, (ParamDataType)23, (ParamDataType)23, (ParamDataType)17, (ParamDataType)15, (ParamDataType)15, (ParamDataType)17, (ParamDataType)18, (ParamDataType)17, (ParamDataType)17, (ParamDataType)5 }, paramName = new List { "conversationType", "locked", "overrideNpcScreenHeight", "UsesCustomScreenBuffer", "CustomScreenBuffer", "condition", "sequence", "persistentStringsToShow", "dialogue", "", "responses", "", "", "events", "", "", "skipWalkAwayEvent", "forceCloseTime", "zombieTime", "SuppressDefaultAnims", "OverrideTalkAnim", "PlayBoxOnInteractingPlayer", "IsThoughtBubble", "AlternativeTalker" }, paramDataPos = new List { 0, 4, 8, 13, 14, 22, 26, 30, 0, 0, 1, 1, 2, 2, 35, 38, 40, 42, 47, 52, 3, 54, 56, 0 }, paramByteDataSize = new List { 4, 4, 5, 1, 8, 4, 4, 5, 0, 0, 0, 0, 0, 0, 3, 2, 2, 5, 5, 2, 0, 2, 2, 0 } }; array[2] = val10; val10 = new FsmState((Fsm)null); val10.name = "Do Character Change"; val10.description = ""; val10.colorIndex = 0; val10.position = new Rect(477.6328f, 256.0547f, 160f, 16f); val10.isBreakpoint = false; val10.isSequence = true; val10.hideUnused = false; val10.transitions = (FsmTransition[])(object)new FsmTransition[0]; val10.actionData = new ActionData { actionNames = new List { "HutongGames.PlayMaker.Actions.EndConversation", "HutongGames.PlayMaker.Actions.ChangeToNewCharacter", "HutongGames.PlayMaker.Actions.RestartWhenFinished" }, customNames = new List { "", "", "" }, actionEnabled = new List { true, true, true }, actionIsOpen = new List { true, true, true }, actionStartIndex = new List { 0, 4, 5 }, actionHashCodes = new List { 68280249, 19973496, 0 }, unityObjectParams = new List(), fsmGameObjectParams = new List(), fsmOwnerDefaultParams = new List(), animationCurveParams = new List(), functionCallParams = new List(), fsmTemplateControlParams = new List(), fsmEventTargetParams = new List(), fsmPropertyParams = new List(), layoutOptionParams = new List(), fsmStringParams = new List(), fsmObjectParams = new List(), fsmVarParams = new List(), fsmArrayParams = new List(), fsmEnumParams = new List(), fsmFloatParams = new List(), fsmIntParams = new List(), fsmBoolParams = new List(), fsmVector2Params = new List(), fsmVector3Params = new List(), fsmColorParams = new List(), fsmRectParams = new List(), fsmQuaternionParams = new List(), stringParams = new List(), byteData = new List { 0, 0, 0, 0, 0, 0, 0, 0 }.Concat(FsmUtility.Encoding.GetBytes(text)).ToList(), arrayParamSizes = new List(), arrayParamTypes = new List(), customTypeSizes = new List(), customTypeNames = new List(), paramDataType = new List { (ParamDataType)17, (ParamDataType)17, (ParamDataType)17, (ParamDataType)17, (ParamDataType)3 }, paramName = new List { "killZombieTextBoxes", "doNotLerpCamera", "suppressReinteractDelay", "suppressFurtherInteraction", "PlayerPrefabPath" }, paramDataPos = new List { 0, 2, 4, 6, 8 }, paramByteDataSize = new List { 2, 2, 2, 2, text.Length } }; array[3] = val10; val10 = new FsmState((Fsm)null); val10.name = "End"; val10.description = ""; val10.colorIndex = 0; val10.position = new Rect(498.5f, 315f, 100f, 16f); val10.isBreakpoint = false; val10.isSequence = true; val10.hideUnused = false; val10.transitions = (FsmTransition[])(object)new FsmTransition[0]; val10.actionData = new ActionData { actionNames = new List { "HutongGames.PlayMaker.Actions.RestartWhenFinished" }, customNames = new List { "" }, actionEnabled = new List { true }, actionIsOpen = new List { true }, actionStartIndex = new List { 0 }, actionHashCodes = new List { 0 }, unityObjectParams = new List(), fsmGameObjectParams = new List(), fsmOwnerDefaultParams = new List(), animationCurveParams = new List(), functionCallParams = new List(), fsmTemplateControlParams = new List(), fsmEventTargetParams = new List(), fsmPropertyParams = new List(), layoutOptionParams = new List(), fsmStringParams = new List(), fsmObjectParams = new List(), fsmVarParams = new List(), fsmArrayParams = new List(), fsmEnumParams = new List(), fsmFloatParams = new List(), fsmIntParams = new List(), fsmBoolParams = new List(), fsmVector2Params = new List(), fsmVector3Params = new List(), fsmColorParams = new List(), fsmRectParams = new List(), fsmQuaternionParams = new List(), stringParams = new List(), byteData = new List(), arrayParamSizes = new List(), arrayParamTypes = new List(), customTypeSizes = new List(), customTypeNames = new List(), paramDataType = new List(), paramName = new List(), paramDataPos = new List(), paramByteDataSize = new List() }; array[4] = val10; fsm.states = (FsmState[])(object)array; val7.fsm.events = (FsmEvent[])(object)new FsmEvent[11] { new FsmEvent(FsmEvent.FindEvent("FINISHED")), new FsmEvent(FsmEvent.FindEvent("RESTART")), new FsmEvent(FsmEvent.FindEvent("modeBegin")), new FsmEvent(FsmEvent.FindEvent("modeCompletedTutorial")), new FsmEvent(FsmEvent.FindEvent("modeFirstSpeech")), new FsmEvent(FsmEvent.FindEvent("modeGatlingGull")), new FsmEvent(FsmEvent.FindEvent("modeNotCompletedTutorial")), new FsmEvent(FsmEvent.FindEvent("modeNothingElseToSay")), new FsmEvent(FsmEvent.FindEvent("no")), new FsmEvent(FsmEvent.FindEvent("playerInteract")), new FsmEvent(FsmEvent.FindEvent("yes")) }; val7.fsm.globalTransitions = (FsmTransition[])(object)new FsmTransition[2] { new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("RESTART")), toState = "Sitting Around", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 }, new FsmTransition { fsmEvent = new FsmEvent(FsmEvent.FindEvent("modeBegin")), toState = "First Speech", linkStyle = (CustomLinkStyle)0, linkConstraint = (CustomLinkConstraint)0, colorIndex = 0 } }; val7.fsmTemplate = null; CharacterSelectIdleDoer val11 = val.AddComponent(); val11.coreIdleAnimation = "select_idle"; val11.onSelectedAnimation = "select_select"; val11.phases = (CharacterSelectIdlePhase[])(object)new CharacterSelectIdlePhase[0]; val11.IsEevee = false; val11.EeveeTex = null; val11.AnimationLibraries = (tk2dSpriteAnimation[])(object)new tk2dSpriteAnimation[0]; FoyerCharacterSelectFlag val12 = val.AddComponent(); val12.CharacterPrefabPath = text; val12.OverheadElement = (val5.OverheadUIElementOnPreInteract = val2); val12.IsCoopCharacter = false; val12.IsGunslinger = false; val12.IsEevee = false; val12.prerequisites = unlockPrereqs.ToArray(); val12.AltCostumeLibrary = player.AlternateCostumeLibrary; tk2dBaseSprite component = ResourceCache.Acquire("DefaultShadowSprite").As().GetComponent(); tk2dSprite.AddComponent(((Component)val.transform.Find("DefaultShadowSprite")).gameObject, component.Collection, component.spriteId); dfPanel val13 = val2.AddComponent(); dfAtlas component2 = LoadHelper.LoadAssetFromAnywhere("TechBlue Skin").GetComponent(); dfAtlas component3 = LoadHelper.LoadAssetFromAnywhere("GameUIAtlas").GetComponent(); dfFont component4 = LoadHelper.LoadAssetFromAnywhere("OurFont_DaikonBitmap").GetComponent(); val13.atlas = component2; val13.backgroundSprite = ""; ((dfControl)val13).anchorStyle = (dfAnchorStyle)271; ((dfControl)val13).layout = new AnchorLayout((dfAnchorStyle)271) { owner = (dfControl)(object)val13, margins = new dfAnchorMargins { bottom = 0.5f, left = 0.4438f, right = 0.5563f, top = 0.3f } }; ((dfControl)val13).pivot = (dfPivotPoint)7; ((dfControl)val13).renderOrder = 34; ((dfControl)val13).size = new Vector2(162f, 162f); ((dfControl)val13).zindex = 0; ((dfControl)val13).tooltip = ""; FoyerInfoPanelController val14 = val2.AddComponent(); val14.characterIdentity = player.characterIdentity; Transform val15 = val2.transform.Find("TextPanel"); dfPanel val16 = (val14.textPanel = ((Component)(object)val15).AddComponent()); val16.atlas = component2; val16.backgroundSprite = ""; ((dfControl)val16).anchorStyle = (dfAnchorStyle)271; ((dfControl)val16).layout = new AnchorLayout((dfAnchorStyle)271) { owner = (dfControl)(object)val16, margins = new dfAnchorMargins { bottom = 0.7037f, left = 0.8519f, right = 0.8519f, top = -0.4074f } }; ((dfControl)val16).renderOrder = 35; ((dfControl)val16).size = new Vector2(0f, 202f); ((dfControl)val16).zindex = 0; ((dfControl)val16).tooltip = ""; ((dfControl)val16).clipChildren = true; dfLabel val17 = ((Component)(object)val15.Find("NameLabel")).AddComponent(); val17.atlas = component3; val17.backgroundSprite = "chamber_flash_letter_001"; val17.backgroundColor = new Color32((byte)0, (byte)0, (byte)0, byte.MaxValue); val17.font = (dfFontBase)(object)component4; val17.text = breachName; ((dfControl)val17).isLocalized = false; val17.textScale = 3f; ((dfControl)val17).anchorStyle = (dfAnchorStyle)4; ((dfControl)val17).renderOrder = 36; ((dfControl)val17).size = Vector2.zero; val17.autoSize = true; ((dfControl)val17).tooltip = ""; ((dfControl)val17).zindex = 0; dfLabel val18 = ((Component)(object)val15.Find("GunLabel")).AddComponent(); val18.atlas = component3; val18.backgroundSprite = "chamber_flash_letter_001"; val18.backgroundColor = new Color32((byte)0, (byte)0, (byte)0, byte.MaxValue); val18.font = (dfFontBase)(object)component4; val18.text = description2Text ?? ""; ((dfControl)val18).isVisible = !string.IsNullOrEmpty(description2Text); ((dfControl)val18).isLocalized = false; val18.textScale = 3f; ((dfControl)val18).anchorStyle = (dfAnchorStyle)4; ((dfControl)val18).renderOrder = 36; ((dfControl)val18).size = Vector2.zero; val18.autoSize = true; ((dfControl)val18).tooltip = ""; ((dfControl)val18).zindex = 0; dfLabel val19 = ((Component)(object)val15.Find("DescLabel")).AddComponent(); val19.atlas = component3; val19.backgroundSprite = "chamber_flash_letter_001"; val19.backgroundColor = new Color32((byte)0, (byte)0, (byte)0, byte.MaxValue); val19.font = (dfFontBase)(object)component4; val19.text = description1Text ?? ""; ((dfControl)val19).isVisible = !string.IsNullOrEmpty(description1Text); val19.textScale = 3f; ((dfControl)val19).anchorStyle = (dfAnchorStyle)4; ((dfControl)val19).renderOrder = 39; ((dfControl)val19).size = Vector2.zero; val19.autoSize = true; ((dfControl)val19).tooltip = ""; ((dfControl)val19).zindex = 3; dfLabel val20 = ((Component)(object)val15.Find("PastKilledLabel")).AddComponent(); val20.atlas = component3; val20.backgroundSprite = "chamber_flash_letter_001"; val20.backgroundColor = new Color32((byte)0, (byte)0, (byte)0, byte.MaxValue); val20.font = (dfFontBase)(object)component4; val20.text = "#CHARACTERSELECT_PASTKILLED"; ((dfControl)val20).isLocalized = true; val20.textScale = 3f; ((dfControl)val20).anchorStyle = (dfAnchorStyle)4; ((dfControl)val20).renderOrder = 37; ((dfControl)val20).size = Vector2.zero; val20.autoSize = true; ((dfControl)val20).tooltip = ""; ((dfControl)val20).zindex = 1; dfPanel val21 = (val14.itemsPanel = ((Component)(object)val15.Find("ItemsPanel")).AddComponent()); val21.atlas = component3; val21.backgroundColor = new Color32((byte)0, (byte)0, (byte)0, byte.MaxValue); val21.backgroundSprite = "chamber_flash_letter_001"; ((dfControl)val21).anchorStyle = (dfAnchorStyle)5; ((dfControl)val21).renderOrder = 40; ((dfControl)val21).zindex = 4; ((dfControl)val21).tooltip = ""; ((dfControl)val21).size = new Vector2(850f, 75f); if (!string.IsNullOrEmpty(itemsTexture)) { dfSprite val22 = ((Component)(object)((Component)val21).transform.Find("ItemsSprite")).AddComponent(); val22.atlas = component3; val22.spriteName = AddToAtlas(itemsTexture, out var info); ((dfControl)val22).size = info.sizeInPixels * 3f; ((dfControl)val22).renderOrder = 41; ((dfControl)val22).zindex = 5; ((dfControl)val22).tooltip = ""; } Transform val23 = val2.transform.Find("Arrow"); tk2dSpriteCollectionData collection = ((tk2dBaseSprite)((Component)LoadHelper.LoadAssetFromAnywhere("CHR_RoguePanel").transform.Find("Rogue Arrow")).GetComponent()).Collection; tk2dSpriteAnimation component5 = LoadHelper.LoadAssetFromAnywhere("Facecard_Animation").GetComponent(); val14.scaledSprites = (tk2dSprite[])(object)new tk2dSprite[1] { val14.arrow = tk2dSprite.AddComponent(((Component)val23).gameObject, collection, collection.GetSpriteIdByName("SelectionReticle")) }; tk2dSpriteAnimator val24 = ((Component)(object)val23).AddComponent(); val24.defaultClipId = 22; val24.playAutomatically = true; val24.Library = component5; Transform val25 = val23.Find("Sprite FaceCard"); ((Component)val25).gameObject.layer = LayerMask.NameToLayer("GUI"); CharacterSelectFacecardIdleDoer val26 = ((Component)(object)val25).AddComponent(); val26.appearAnimation = facecardAnimationPrefix + "_facecard_appear"; val26.coreIdleAnimation = facecardAnimationPrefix + "_facecard_idle"; val26.idleMin = 0f; val26.idleMax = 0f; val26.usesMultipleIdleAnimations = false; val26.multipleIdleAnimations = new string[0]; val26.EeveeTex = null; breachCharacters[val] = breachPosition; return val12; } private static void AddPlayerName(string name) { UncachedPlayerNamesField.SetValue(null, CollectionExtensions.AddToArray(UncachedPlayerNames, name)); } private static void AddPlayerUiName(string name) { UncachedPlayerUiNamesField.SetValue(null, CollectionExtensions.AddToArray(UncachedPlayerUiNames, name)); } public static void AddPunchoutSprites(this PlayerController p, string punchoutprefix, string facecardprefix) { //IL_0034: Unknown result type (might be due to invalid IL or missing references) if (UncachedPlayerNames.Length == 7) { AddPlayerName("dummy"); AddPlayerUiName("dummy"); } AddPlayerName(punchoutprefix); punchoutSprites.Add(p.characterIdentity, UncachedPlayerNames.Length - 1); AddPlayerUiName("ccr_" + facecardprefix + "_00"); punchoutFacecardAtlas.AddNewItemToAtlas(Plugin.bundle.LoadAsset(facecardprefix + "_001"), "ccr_" + facecardprefix + "_001"); punchoutFacecardAtlas.AddNewItemToAtlas(Plugin.bundle.LoadAsset(facecardprefix + "_002"), "ccr_" + facecardprefix + "_002"); punchoutFacecardAtlas.AddNewItemToAtlas(Plugin.bundle.LoadAsset(facecardprefix + "_003"), "ccr_" + facecardprefix + "_003"); Dictionary dictionary = new Dictionary { { punchoutprefix + "_hit_left", "Play_BOSS_Punchout_Punch_Hit_01" }, { punchoutprefix + "_hit_right", "Play_BOSS_Punchout_Punch_Hit_01" }, { punchoutprefix + "_dodge_right", "Play_BOSS_RatPunchout_Player_Dodge_01" }, { punchoutprefix + "_dodge_left", "Play_BOSS_RatPunchout_Player_Dodge_01" }, { punchoutprefix + "_duck", "Play_BOSS_RatPunchout_Player_Dodge_01" }, { punchoutprefix + "_block_hit", "Play_BOSS_Punchout_Punch_Block_01" }, { punchoutprefix + "_punch_right", "Play_BOSS_Punchout_Swing_Right_01" }, { punchoutprefix + "_punch_left", "Play_BOSS_Punchout_Swing_Left_01" }, { punchoutprefix + "_super", "Play_BOSS_RatPunchout_Player_Charge_01" }, { punchoutprefix + "_knockout", "Play_BOSS_Punchout_Punch_KO_01" } }; foreach (KeyValuePair item in dictionary) { tk2dSpriteAnimationFrame val = punchoutAnim.GetClipByName(item.Key).frames[0]; val.triggerEvent = true; val.eventAudio = item.Value; } } public static void AddOffset(this tk2dSpriteDefinition def, IntVector2 vec) { //IL_0003: 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_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) Vector3 val = ((IntVector2)(ref vec)).ToVector3() / 16f; def.position0 += val; def.position1 += val; def.position2 += val; def.position3 += val; } public static string AddCustomAmmoType(string name, string objName, string texture) { //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Expected O, but got Unknown Transform transform = Plugin.bundle.LoadAsset(objName).transform; dfTiledSprite val = ((Component)transform.Find("AmmoType")).gameObject.SetupDfSpriteFromTexture(Plugin.bundle.LoadAsset(texture + "full"), ShaderCache.Acquire("Daikon Forge/Default UI Shader")); dfTiledSprite val2 = ((Component)transform.Find("Empty")).gameObject.SetupDfSpriteFromTexture(Plugin.bundle.LoadAsset(texture + "empty"), ShaderCache.Acquire("Daikon Forge/Default UI Shader")); ((dfControl)val).zindex = 7; ((dfControl)val2).zindex = 5; GameUIAmmoType val3 = new GameUIAmmoType { ammoBarBG = val2, ammoBarFG = val, ammoType = (AmmoType)14, customAmmoType = name }; addedAmmoTypes.Add(val3); if (GameUIRoot.HasInstance) { foreach (GameUIAmmoController ammoController in GameUIRoot.Instance.ammoControllers) { if (ammoController.m_initialized) { ammoController.ammoTypes = CollectionExtensions.AddToArray(ammoController.ammoTypes, val3); } } } return name; } public static T SetupDfSpriteFromTexture(this GameObject obj, Texture2D texture, Shader shader) where T : dfSprite { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0076: 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_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown T orAddComponent = GameObjectExtensions.GetOrAddComponent(obj); dfAtlas orAddComponent2 = GameObjectExtensions.GetOrAddComponent(obj); orAddComponent2.Material = new Material(shader); orAddComponent2.Material.mainTexture = (Texture)(object)texture; orAddComponent2.Items.Clear(); ItemInfo val = new ItemInfo { border = new RectOffset(), deleted = false, name = "main_sprite", region = new Rect(Vector2.zero, new Vector2(1f, 1f)), rotated = false, sizeInPixels = new Vector2((float)((Texture)texture).width, (float)((Texture)texture).height), texture = null, textureGUID = "main_sprite" }; orAddComponent2.AddItem(val); ((dfSprite)orAddComponent).Atlas = orAddComponent2; ((dfSprite)orAddComponent).SpriteName = "main_sprite"; ((dfControl)(object)orAddComponent).zindex = 0; stuff.Add(obj); return orAddComponent; } } } namespace ReturnUnusedCharacters.EnumExtension { [EnumExtension(typeof(CustomSynergyType))] public class CustomSynergyTypeE { public static CustomSynergyType CYBERPUNK; public static CustomSynergyType ZIP_BOMB; public static CustomSynergyType RAD_POISONING; public static CustomSynergyType MYSTERIOUS_STRANGER; public static CustomSynergyType PSYCHOBUFF; public static CustomSynergyType PEWPEW_BOY; public static CustomSynergyType LIGHTNING_FAST; public static CustomSynergyType NEW_AND_IMPROVED; public static CustomSynergyType REDUNDANT_SYSTEMS; public static CustomSynergyType SPRAY_AND_PRAY; public static CustomSynergyType KNOT_A_TYPO; public static CustomSynergyType YOU_WIN_RAR; public static CustomSynergyType FILE_COMPRESSION; } public class EnumExtensionAttribute : Attribute { public Type type; public EnumExtensionAttribute(Type extensiontype) { type = extensiontype; } } [EnumExtension(typeof(GungeonFlags))] public static class GungeonFlagsE { public static GungeonFlags UNLOCKABLE_DRAGUN_LAMEY; public static GungeonFlags UNLOCKABLE_DRAGUN_COSMONAUT; public static GungeonFlags UNLOCKABLE_DRAGUN_NINJA; public static GungeonFlags UNLOCKABLE_RAT_LAMEY; public static GungeonFlags UNLOCKABLE_RAT_COSMONAUT; public static GungeonFlags UNLOCKABLE_RAT_NINJA; public static GungeonFlags UNLOCKABLE_BOSSRUSH_LAMEY; public static GungeonFlags UNLOCKABLE_BOSSRUSH_COSMONAUT; public static GungeonFlags UNLOCKABLE_BOSSRUSH_NINJA; public static GungeonFlags UNLOCKABLE_LICH_LAMEY; public static GungeonFlags UNLOCKABLE_LICH_COSMONAUT; public static GungeonFlags UNLOCKABLE_LICH_NINJA; } [EnumExtension(typeof(PlayableCharacters))] public class PlayableCharactersE { public static PlayableCharacters Lamey; public static PlayableCharacters Cosmonaut; public static PlayableCharacters Ninja; } } namespace ReturnUnusedCharacters.Components { public class BountyTarget : BraveBehaviour { public GameObject vfx; public float KillTime; public int currencyToDrop; public Coroutine disableCR; public void Start() { if ((Object)(object)((BraveBehaviour)this).healthHaver != (Object)null && (Object)(object)((BraveBehaviour)this).aiActor != (Object)null) { disableCR = ((MonoBehaviour)this).StartCoroutine(DisableAfterTime()); ((BraveBehaviour)this).healthHaver.OnPreDeath += OnDeath; } } public override void OnDestroy() { ((BraveBehaviour)this).OnDestroy(); if ((Object)(object)((BraveBehaviour)this).healthHaver != (Object)null) { ((BraveBehaviour)this).healthHaver.OnPreDeath -= OnDeath; } } public void OnDeath(Vector2 d) { //IL_008e: Unknown result type (might be due to invalid IL or missing references) AkSoundEngine.PostEvent("Play_UI_challenge_clear_01", ((Component)this).gameObject); if (Object.op_Implicit((Object)(object)vfx)) { vfx.transform.parent = null; vfx.GetComponent().Play("contrack_skull_defeat"); Object.Destroy((Object)(object)vfx, 1.111f); } if (disableCR != null) { ((MonoBehaviour)this).StopCoroutine(disableCR); } if (Object.op_Implicit((Object)(object)((BraveBehaviour)this).aiActor)) { LootEngine.SpawnCurrency(((GameActor)((BraveBehaviour)this).aiActor).CenterPosition, currencyToDrop, false); } Object.Destroy((Object)(object)this); } public IEnumerator DisableAfterTime() { yield return (object)new WaitForSeconds(KillTime); if (Object.op_Implicit((Object)(object)vfx)) { vfx.transform.parent = null; vfx.GetComponent().Play("contrack_skull_lose"); Object.Destroy((Object)(object)vfx, 1.333f); } AkSoundEngine.PostEvent("Play_OBJ_metronome_fail_01", ((Component)this).gameObject); Object.Destroy((Object)(object)this); } } public class ChangeOrbitSettingsOnStealth : BraveBehaviour { private float lastTimeWhenStealthed = -99f; private PlayerOrbital orb; private float originalOrbitRadius; private float originalDegreesPerSecond; public float stealthedOrbitRadius; public float stealthedDegreesPerSecond; public float stealthForgivenessTime; public void Start() { orb = ((Component)this).GetComponent(); if ((Object)(object)orb != (Object)null) { originalOrbitRadius = orb.orbitRadius; originalDegreesPerSecond = orb.orbitDegreesPerSecond; } } public void Update() { if ((Object)(object)orb != (Object)null && (Object)(object)orb.Owner != (Object)null) { if (((GameActor)orb.Owner).IsStealthed) { lastTimeWhenStealthed = Time.time; orb.orbitRadius = stealthedOrbitRadius; orb.orbitDegreesPerSecond = stealthedDegreesPerSecond; } else if (Time.time - lastTimeWhenStealthed <= stealthForgivenessTime) { orb.orbitRadius = stealthedOrbitRadius; orb.orbitDegreesPerSecond = stealthedDegreesPerSecond; } else { orb.orbitRadius = originalOrbitRadius; orb.orbitDegreesPerSecond = originalDegreesPerSecond; } } } } public class DefaultLootMods : MonoBehaviour { public List lootMods; public void Start() { if (lootMods != null) { PlayerController component = ((Component)this).GetComponent(); if ((Object)(object)component != (Object)null) { PlayerController val = component; (val.lootModData ?? (val.lootModData = new List())).AddRange(lootMods); } } } } public class DestroyOnOwnerClearRoom : MonoBehaviour { public PlayerController own; public RoomHandler room; public void Connect(PlayerController o, RoomHandler r) { own = o; room = r; if ((Object)(object)own != (Object)null) { own.OnRoomClearEvent += DestroyOnRoomClear; } } public void Update() { if ((Object)(object)own != (Object)null && (own.CurrentRoom != room || !own.IsInCombat)) { Object.Destroy((Object)(object)((Component)this).gameObject); } } public void DestroyOnRoomClear(PlayerController p) { Object.Destroy((Object)(object)((Component)this).gameObject); } public void OnDestroy() { if ((Object)(object)own != (Object)null) { own.OnRoomClearEvent -= DestroyOnRoomClear; } } } public class DieInAirWithDelayProjectileHandler : BraveBehaviour { public float delay; public void Update() { if (Object.op_Implicit((Object)(object)((BraveBehaviour)this).projectile) && ((BraveBehaviour)this).projectile.ElapsedTime >= delay) { ((BraveBehaviour)this).projectile.DieInAir(false, true, true, false); } } } public class DontLoseDamageOnPierce : BraveBehaviour { public void Awake() { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Expected O, but got Unknown //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Expected O, but got Unknown SpeculativeRigidbody specRigidbody = ((BraveBehaviour)this).specRigidbody; specRigidbody.OnRigidbodyCollision = (OnRigidbodyCollisionDelegate)Delegate.Combine((Delegate?)(object)specRigidbody.OnRigidbodyCollision, (Delegate?)new OnRigidbodyCollisionDelegate(HasntPierced)); } public void HasntPierced(CollisionData data) { if (data != null && (Object)(object)data.MyRigidbody != (Object)null && (Object)(object)((BraveBehaviour)data.MyRigidbody).projectile != (Object)null) { ((BraveBehaviour)data.MyRigidbody).projectile.m_hasPierced = false; } } } public class PassiveTimeSlow : MonoBehaviour { public float timeMult = 1f; public void Update() { BraveTime.SetTimeScaleMultiplier(timeMult, ((Component)this).gameObject); } public void OnDestroy() { BraveTime.ClearMultiplier(((Component)this).gameObject); } } [HarmonyPatch] public class PlayerControllerExt : BraveBehaviour { [NonSerialized] public bool isRaged; [NonSerialized] public float rageElapsed; [NonSerialized] public GameObject instanceRageVFX; public GameObject rageOverheadVFXPrefab; public PlayerController player; public Action OnMinorBreakableBreak; public Action OnMajorBreakableBreak; public Action OnExplosion; public GameObject RageOverheadVFX { get { if ((Object)(object)rageOverheadVFXPrefab == (Object)null) { rageOverheadVFXPrefab = GlobalItemDatabase.EnragingPhotoObject.OverheadVFX; } return rageOverheadVFXPrefab; } } public void Awake() { player = ((Component)this).GetComponent(); } public void Rage(float duration) { //IL_004b: Unknown result type (might be due to invalid IL or missing references) if (isRaged) { if (Object.op_Implicit((Object)(object)RageOverheadVFX) && !Object.op_Implicit((Object)(object)instanceRageVFX)) { instanceRageVFX = ((GameActor)player).PlayEffectOnActor(RageOverheadVFX, new Vector3(0f, 1.375f, 0f), true, true, false); } rageElapsed = Mathf.Max(rageElapsed, duration); } else { ((MonoBehaviour)player).StartCoroutine(HandleRage(duration)); } } public IEnumerator HandleRage(float duration) { Color rageColor = new Color(0.5f, 0f, 0f, 0.75f); isRaged = true; instanceRageVFX = null; if (Object.op_Implicit((Object)(object)RageOverheadVFX)) { instanceRageVFX = ((GameActor)player).PlayEffectOnActor(RageOverheadVFX, new Vector3(0f, 1.375f, 0f), true, true, false); } StatModifier damageStat = StatModifier.Create((StatType)5, (ModifyMethod)1, 2f); player.ownerlessStatModifiers.Add(damageStat); player.stats.RecalculateStats(player, false, false); if ((Object)(object)((GameActor)player).CurrentGun != (Object)null) { ((GameActor)player).CurrentGun.ForceImmediateReload(false); } rageElapsed = duration; float particleCounter = 0f; while (rageElapsed > 0f) { rageElapsed -= BraveTime.DeltaTime; player.baseFlatColorOverride = Vector3Extensions.WithAlpha(rageColor, Mathf.Lerp(rageColor.a, 0f, Mathf.Clamp01(1f - rageElapsed))); if (Object.op_Implicit((Object)(object)instanceRageVFX) && rageElapsed < duration - 1f) { instanceRageVFX.GetComponent().PlayAndDestroyObject("rage_face_vfx_out", (Action)null); instanceRageVFX = null; } if ((int)GameManager.Options.ShaderQuality != 0 && (int)GameManager.Options.ShaderQuality != 3 && Object.op_Implicit((Object)(object)player) && player.IsVisible && !((GameActor)player).IsFalling) { particleCounter += BraveTime.DeltaTime * 40f; if (particleCounter > 1f) { int num = Mathf.FloorToInt(particleCounter); particleCounter %= 1f; GlobalSparksDoer.DoRandomParticleBurst(num, Vector2Extensions.ToVector3ZisY(((BraveBehaviour)player).sprite.WorldBottomLeft, 0f), Vector2Extensions.ToVector3ZisY(((BraveBehaviour)player).sprite.WorldTopRight, 0f), Vector3.up, 90f, 0.5f, (float?)null, (float?)null, (Color?)null, (SparksType)1); } } yield return null; } if (Object.op_Implicit((Object)(object)instanceRageVFX)) { instanceRageVFX.GetComponent().PlayAndDestroyObject("rage_face_vfx_out", (Action)null); } player.baseFlatColorOverride = Color.clear; player.ownerlessStatModifiers.Remove(damageStat); player.stats.RecalculateStats(player, false, false); isRaged = false; } [HarmonyPatch(typeof(MinorBreakable), "Break", new Type[] { })] [HarmonyPatch(typeof(MinorBreakable), "Break", new Type[] { typeof(Vector2) })] [HarmonyPostfix] public static void MinorBreak(MinorBreakable __instance) { if (!GameManager.HasInstance) { return; } PlayerController[] allPlayers = GameManager.Instance.AllPlayers; if (allPlayers == null) { return; } PlayerController[] array = allPlayers; foreach (PlayerController val in array) { if (!((Object)(object)val == (Object)null)) { val.Ext().OnMinorBreakableBreak?.Invoke(__instance, val); } } } [HarmonyPatch(typeof(MajorBreakable), "Break")] [HarmonyPostfix] public static void MajorBreak(MajorBreakable __instance, Vector2 sourceDirection) { //IL_0052: Unknown result type (might be due to invalid IL or missing references) if (!GameManager.HasInstance) { return; } PlayerController[] allPlayers = GameManager.Instance.AllPlayers; if (allPlayers == null) { return; } PlayerController[] array = allPlayers; foreach (PlayerController val in array) { if (!((Object)(object)val == (Object)null)) { val.Ext().OnMajorBreakableBreak?.Invoke(__instance, sourceDirection, val); } } } [HarmonyPatch(/*Could not decode attribute arguments.*/)] [HarmonyILManipulator] public static void Explosion(ILContext ctx, MethodBase mthd) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(ctx); FieldInfo explosionBegin = mthd.EnumeratorField("onExplosionBegin"); if (val.JumpToNext((Instruction x) => ILPatternMatchingExt.MatchLdfld(x, explosionBegin))) { val.Emit(OpCodes.Ldarg_0); val.EmitStaticDelegate(new Func(InvokeOnExplosion)); } } public static Action InvokeOnExplosion(Action _, object cr) { //IL_0063: Unknown result type (might be due to invalid IL or missing references) if (GameManager.HasInstance && GameManager.Instance.AllPlayers != null) { PlayerController[] allPlayers = GameManager.Instance.AllPlayers; foreach (PlayerController val in allPlayers) { if (!((Object)(object)val == (Object)null)) { val.Ext().OnExplosion?.Invoke(cr.EnumeratorGetField("data"), cr.EnumeratorGetField("position"), val); } } } return _; } } public class RadPoisoningSynergyProcessor : GunBehaviour { public AIActorDebuffEffect debuff; public float applyChance = 0.35f; public override void PostProcessProjectile(Projectile projectile) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) ((GunBehaviour)this).PostProcessProjectile(projectile); if (Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner) && ((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.RAD_POISONING, false) && Random.value < applyChance) { projectile.statusEffectsToApply.Add((GameActorEffect)(object)debuff); } } } public class MagnifyPlayerBullets : BraveBehaviour { public float stealthForgivenessTime; public float scaleMultiplier = 1f; public float damageMultiplier = 1f; public float scaleMultiplierStealthed = 1f; public float damageMultiplierStealthed = 1f; public int stealthedAdditionalPierces; private float lastTimeWhenStealthed = -99f; private PlayerOrbital orb; public void Start() { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Expected O, but got Unknown orb = ((Component)this).GetComponent(); SpeculativeRigidbody specRigidbody = ((BraveBehaviour)this).specRigidbody; specRigidbody.OnTriggerCollision = (OnTriggerDelegate)Delegate.Combine((Delegate?)(object)specRigidbody.OnTriggerCollision, (Delegate?)new OnTriggerDelegate(OnTrigger)); } public void OnTrigger(SpeculativeRigidbody specRigidbody, SpeculativeRigidbody sourceSpecRigidbody, CollisionData collisionData) { if (!((Object)(object)specRigidbody != (Object)null) || !((Object)(object)((BraveBehaviour)specRigidbody).projectile != (Object)null) || !((Object)(object)((BraveBehaviour)specRigidbody).projectile.Owner != (Object)null)) { return; } GameActor owner = ((BraveBehaviour)specRigidbody).projectile.Owner; PlayerController val = (PlayerController)(object)((owner is PlayerController) ? owner : null); if (val != null) { if (((GameActor)val).IsStealthed || Time.time - lastTimeWhenStealthed <= stealthForgivenessTime) { ((BraveBehaviour)specRigidbody).projectile.RuntimeUpdateScale(scaleMultiplierStealthed); ProjectileData baseData = ((BraveBehaviour)specRigidbody).projectile.baseData; baseData.damage *= damageMultiplierStealthed; PierceProjModifier orAddComponent = ((Component)(object)specRigidbody).GetOrAddComponent(); orAddComponent.penetration += stealthedAdditionalPierces; ((Component)(object)specRigidbody).GetOrAddComponent(); } else { ((BraveBehaviour)specRigidbody).projectile.RuntimeUpdateScale(scaleMultiplier); ProjectileData baseData2 = ((BraveBehaviour)specRigidbody).projectile.baseData; baseData2.damage *= damageMultiplier; } specRigidbody.RegisterTemporaryCollisionException(sourceSpecRigidbody, 0.1f, (float?)0.5f); sourceSpecRigidbody.RegisterTemporaryCollisionException(specRigidbody, 0.1f, (float?)0.5f); } } public void LateUpdate() { if ((Object)(object)orb != (Object)null && (Object)(object)orb.Owner != (Object)null && ((GameActor)orb.Owner).IsStealthed) { lastTimeWhenStealthed = Time.time; } } } } namespace ReturnUnusedCharacters.Characters.Ninja.Items { public class ShadowTwin : PassiveItem { public GameObject shadowCloneObj; public float spawnDelay; public static void Init() { string itemName = "Shadow Twin"; string itemShortDesc = "Behold the soul"; string itemLongDesc = "A strange purple amulet of origins better left forgotten. The power inside it siphons from your very shadow; manifesting itself as a physical reflection of the darkness inside your very soul."; ShadowTwin shadowTwin = ItemBuilder.EasyItemInit("shadowtwin", itemName, itemShortDesc, itemLongDesc, (ItemQuality)4, (int?)null, (string)null); shadowTwin.shadowCloneObj = GlobalItemDatabase.ShadowCloneObject.objectToSpawn; shadowTwin.spawnDelay = 3f; } public override void Pickup(PlayerController player) { ((PassiveItem)this).Pickup(player); player.OnEnteredCombat = (Action)Delegate.Combine(player.OnEnteredCombat, new Action(Clone)); } public void Clone() { ((MonoBehaviour)this).StartCoroutine(CloneCR(((PassiveItem)this).Owner.CurrentRoom)); } public IEnumerator CloneCR(RoomHandler r) { float ela = 0f; while (ela < spawnDelay) { if ((Object)(object)this == (Object)null || !((PassiveItem)this).PickedUp || (Object)(object)((PassiveItem)this).Owner == (Object)null || !((PassiveItem)this).Owner.IsInCombat || ((PassiveItem)this).Owner.CurrentRoom != r) { yield break; } ela += BraveTime.DeltaTime; yield return null; } GameObject go = Object.Instantiate(shadowCloneObj, Vector2.op_Implicit(((BraveBehaviour)((PassiveItem)this).Owner).specRigidbody.UnitCenter), Quaternion.identity); tk2dBaseSprite s = go.GetComponent(); if ((Object)(object)s != (Object)null) { s.PlaceAtPositionByAnchor(Vector2Extensions.ToVector3ZUp(((BraveBehaviour)((PassiveItem)this).Owner).specRigidbody.UnitCenter, ((BraveBehaviour)s).transform.position.z), (Anchor)4); if ((Object)(object)((BraveBehaviour)s).specRigidbody != (Object)null) { ((BraveBehaviour)s).specRigidbody.RegisterGhostCollisionException(((BraveBehaviour)((PassiveItem)this).Owner).specRigidbody); } } KageBunshinController sc = go.GetComponent(); if (Object.op_Implicit((Object)(object)sc)) { sc.Duration = -1f; sc.InitializeOwner(((PassiveItem)this).Owner); } go.AddComponent().Connect(((PassiveItem)this).Owner, r); } public override void DisableEffect(PlayerController player) { if ((Object)(object)player != (Object)null) { player.OnEnteredCombat = (Action)Delegate.Remove(player.OnEnteredCombat, new Action(Clone)); } ((PassiveItem)this).DisableEffect(player); } } public class Tamatebako : PlayerItem { public float timeMult; public static void Init() { string itemName = "Tamatebako"; string itemShortDesc = "Opened, to his regret"; string itemLongDesc = "A jeweled box that once belonged to the Mistress of the Sea. Although simply holding it gives one great luck, a terrible hum can be heard from within, and you can feel your hands grow old and weathered from simply holding it, and time itself slip away into it. What would happen if you were to open it?"; Tamatebako tamatebako = ItemBuilder.EasyItemInit("tamatebako", itemName, itemShortDesc, itemLongDesc, (ItemQuality)3, (int?)null, (string)null); ((PlayerItem)(object)tamatebako).SetCooldownType(ItemBuilder.CooldownType.Timed, 1f); ((PickupObject)(object)tamatebako).AddPassiveStatModifier((StatType)4, 3f, (ModifyMethod)0); tamatebako.timeMult = 0.9f; } public override void DoEffect(PlayerController user) { //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown ((PlayerItem)this).DoEffect(user); user.ownerlessStatModifiers.Add(StatModifier.Create((StatType)14, (ModifyMethod)0, 1f)); user.stats.RecalculateStats(user, false, false); Transform val = ((BraveBehaviour)user).transform.Find("TamatebakoTimeSlow"); GameObject val2; if ((Object)(object)val != (Object)null) { val2 = ((Component)val).gameObject; } else { GameObject val3 = new GameObject("TamatebakoTimeSlow"); val3.transform.parent = ((BraveBehaviour)user).transform; val3.transform.localPosition = Vector2.op_Implicit(Vector2.zero); val2 = val3; } if ((Object)(object)val2 != (Object)null) { GameObjectExtensions.GetOrAddComponent(val2).timeMult *= timeMult; } } } } namespace ReturnUnusedCharacters.Characters.Lamey { public class LameyCharacter { public static void Init() { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_047a: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Unknown result type (might be due to invalid IL or missing references) //IL_04b0: Unknown result type (might be due to invalid IL or missing references) //IL_04cb: Unknown result type (might be due to invalid IL or missing references) //IL_04e6: Unknown result type (might be due to invalid IL or missing references) //IL_0501: Unknown result type (might be due to invalid IL or missing references) //IL_0999: Unknown result type (might be due to invalid IL or missing references) //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_09a9: Unknown result type (might be due to invalid IL or missing references) //IL_09b9: Expected O, but got Unknown //IL_09bb: Unknown result type (might be due to invalid IL or missing references) //IL_09c0: Unknown result type (might be due to invalid IL or missing references) //IL_09cb: Unknown result type (might be due to invalid IL or missing references) //IL_09db: Expected O, but got Unknown //IL_09dd: Unknown result type (might be due to invalid IL or missing references) //IL_09e2: Unknown result type (might be due to invalid IL or missing references) //IL_09ed: Unknown result type (might be due to invalid IL or missing references) //IL_09fd: Expected O, but got Unknown //IL_09ff: Unknown result type (might be due to invalid IL or missing references) //IL_0a04: Unknown result type (might be due to invalid IL or missing references) //IL_0a0f: Unknown result type (might be due to invalid IL or missing references) //IL_0a1f: Expected O, but got Unknown //IL_0a21: Unknown result type (might be due to invalid IL or missing references) //IL_0a26: Unknown result type (might be due to invalid IL or missing references) //IL_0a31: Unknown result type (might be due to invalid IL or missing references) //IL_0a41: Expected O, but got Unknown //IL_0ad7: Unknown result type (might be due to invalid IL or missing references) //IL_0ad9: Unknown result type (might be due to invalid IL or missing references) //IL_0ae8: Unknown result type (might be due to invalid IL or missing references) //IL_0af3: Unknown result type (might be due to invalid IL or missing references) //IL_0afa: Unknown result type (might be due to invalid IL or missing references) //IL_0b22: Expected O, but got Unknown //IL_0b22: Expected O, but got Unknown //IL_0b37: Unknown result type (might be due to invalid IL or missing references) //IL_0b3c: Unknown result type (might be due to invalid IL or missing references) //IL_0b47: Unknown result type (might be due to invalid IL or missing references) //IL_0b52: Unknown result type (might be due to invalid IL or missing references) //IL_0b5e: Expected O, but got Unknown //IL_0b60: Unknown result type (might be due to invalid IL or missing references) //IL_0b65: Unknown result type (might be due to invalid IL or missing references) //IL_0b70: Unknown result type (might be due to invalid IL or missing references) //IL_0b7b: Unknown result type (might be due to invalid IL or missing references) //IL_0b87: Expected O, but got Unknown //IL_0b89: Unknown result type (might be due to invalid IL or missing references) //IL_0b8e: Unknown result type (might be due to invalid IL or missing references) //IL_0b99: Unknown result type (might be due to invalid IL or missing references) //IL_0ba4: Unknown result type (might be due to invalid IL or missing references) //IL_0baf: Unknown result type (might be due to invalid IL or missing references) //IL_0bba: Unknown result type (might be due to invalid IL or missing references) //IL_0bc6: Expected O, but got Unknown //IL_0be7: Unknown result type (might be due to invalid IL or missing references) //IL_0bec: Unknown result type (might be due to invalid IL or missing references) //IL_0cbb: Unknown result type (might be due to invalid IL or missing references) //IL_0cbd: Unknown result type (might be due to invalid IL or missing references) //IL_0cbf: Unknown result type (might be due to invalid IL or missing references) //IL_0cc4: Unknown result type (might be due to invalid IL or missing references) //IL_0cee: Unknown result type (might be due to invalid IL or missing references) //IL_0d02: Unknown result type (might be due to invalid IL or missing references) //IL_0d16: Unknown result type (might be due to invalid IL or missing references) //IL_0d2a: Unknown result type (might be due to invalid IL or missing references) //IL_0d3e: Unknown result type (might be due to invalid IL or missing references) //IL_0d52: Unknown result type (might be due to invalid IL or missing references) //IL_0d66: Unknown result type (might be due to invalid IL or missing references) //IL_0d7a: Unknown result type (might be due to invalid IL or missing references) //IL_0d8e: Unknown result type (might be due to invalid IL or missing references) //IL_0da2: Unknown result type (might be due to invalid IL or missing references) //IL_0db6: Unknown result type (might be due to invalid IL or missing references) //IL_0dca: Unknown result type (might be due to invalid IL or missing references) //IL_0dde: Unknown result type (might be due to invalid IL or missing references) //IL_0df2: Unknown result type (might be due to invalid IL or missing references) //IL_0e06: Unknown result type (might be due to invalid IL or missing references) //IL_0e1a: Unknown result type (might be due to invalid IL or missing references) //IL_0e2e: Unknown result type (might be due to invalid IL or missing references) //IL_0e42: Unknown result type (might be due to invalid IL or missing references) //IL_0e56: Unknown result type (might be due to invalid IL or missing references) //IL_0e6a: Unknown result type (might be due to invalid IL or missing references) //IL_0e7e: Unknown result type (might be due to invalid IL or missing references) //IL_0e93: Unknown result type (might be due to invalid IL or missing references) //IL_0ea8: Unknown result type (might be due to invalid IL or missing references) //IL_0ebd: Unknown result type (might be due to invalid IL or missing references) //IL_0ed2: Unknown result type (might be due to invalid IL or missing references) //IL_0ee7: Unknown result type (might be due to invalid IL or missing references) //IL_0efb: Unknown result type (might be due to invalid IL or missing references) //IL_0f0f: Unknown result type (might be due to invalid IL or missing references) //IL_0f23: Unknown result type (might be due to invalid IL or missing references) //IL_0f37: Unknown result type (might be due to invalid IL or missing references) //IL_0f4b: Unknown result type (might be due to invalid IL or missing references) //IL_0f5f: Unknown result type (might be due to invalid IL or missing references) //IL_0f73: Unknown result type (might be due to invalid IL or missing references) //IL_0f87: Unknown result type (might be due to invalid IL or missing references) //IL_0f9b: Unknown result type (might be due to invalid IL or missing references) //IL_0faf: Unknown result type (might be due to invalid IL or missing references) //IL_0fc3: Unknown result type (might be due to invalid IL or missing references) //IL_0fd7: Unknown result type (might be due to invalid IL or missing references) //IL_0feb: Unknown result type (might be due to invalid IL or missing references) //IL_0fff: Unknown result type (might be due to invalid IL or missing references) //IL_1013: Unknown result type (might be due to invalid IL or missing references) //IL_1027: Unknown result type (might be due to invalid IL or missing references) //IL_103c: Unknown result type (might be due to invalid IL or missing references) //IL_1051: Unknown result type (might be due to invalid IL or missing references) //IL_1066: Unknown result type (might be due to invalid IL or missing references) //IL_107b: Unknown result type (might be due to invalid IL or missing references) //IL_1090: Unknown result type (might be due to invalid IL or missing references) //IL_10a5: Unknown result type (might be due to invalid IL or missing references) //IL_10ba: Unknown result type (might be due to invalid IL or missing references) //IL_10cf: Unknown result type (might be due to invalid IL or missing references) //IL_10e4: Unknown result type (might be due to invalid IL or missing references) //IL_10f8: Unknown result type (might be due to invalid IL or missing references) //IL_110c: Unknown result type (might be due to invalid IL or missing references) //IL_1120: Unknown result type (might be due to invalid IL or missing references) //IL_1134: Unknown result type (might be due to invalid IL or missing references) //IL_116a: Unknown result type (might be due to invalid IL or missing references) //IL_079e: Unknown result type (might be due to invalid IL or missing references) //IL_07a3: Unknown result type (might be due to invalid IL or missing references) //IL_07ae: Unknown result type (might be due to invalid IL or missing references) //IL_07b1: Unknown result type (might be due to invalid IL or missing references) //IL_07b6: Unknown result type (might be due to invalid IL or missing references) //IL_07bb: Unknown result type (might be due to invalid IL or missing references) //IL_07c0: Unknown result type (might be due to invalid IL or missing references) //IL_07cc: Expected O, but got Unknown //IL_08a3: Unknown result type (might be due to invalid IL or missing references) //IL_08aa: Expected O, but got Unknown //IL_08b9: Unknown result type (might be due to invalid IL or missing references) GameObject val = (GameObject)BraveResources.Load("PlayerLamey", ".prefab"); SpecialAssets.assets.Add((Object)(object)val); PlayerController component = val.GetComponent(); component.startingGunIds = new List { GlobalItemDatabase.LameyGunId }; component.startingAlternateGunIds = new List { ItemBuilder.ItemIds["altlamey_gun"] }; component.startingActiveItemIds = new List { ItemBuilder.ItemIds["disguisehat"] }; component.startingPassiveItemIds = new List { ItemBuilder.ItemIds["magnifyingglass"] }; component.ownerlessStatModifiers.Add(StatModifier.Create((StatType)8, (ModifyMethod)0, 1f)); component.uiPortraitName = Toolbox.AddToAtlas("lamey_portrait"); component.characterIdentity = PlayableCharactersE.Lamey; component.characterAudioSpeechTag = "convict"; tk2dSpriteAnimation library = ((Component)((BraveBehaviour)component).transform.Find("PlayerSprite")).GetComponent().Library; tk2dSpriteCollectionData coll = ((Component)((BraveBehaviour)component).transform.Find("PlayerSprite")).GetComponent().Collection; library.GetClipByName("jetpack_front_right").name = "jetpack_right"; library.GetClipByName("jetpack_back_right").name = "jetpack_right_bw"; library.GetClipByName("jetpack_front_right_hand").name = "jetpack_right_hand"; component.AlternateCostumeLibrary.GetClipByName("jetpack_front_right").name = "jetpack_right"; component.AlternateCostumeLibrary.GetClipByName("jetpack_back_right").name = "jetpack_right_bw"; component.AlternateCostumeLibrary.GetClipByName("jetpack_front_right_hand").name = "jetpack_right_hand"; tk2dSpriteCollectionData altCollection = component.AlternateCostumeLibrary.clips[0].frames[0].spriteCollection; tk2dSpriteAnimation extraanim = Plugin.bundle.LoadAsset("RUCLameyExtraAnimation").GetComponent(); tk2dSpriteCollectionData extracoll = Plugin.bundle.LoadAsset("RUCLameyExtraCollection").GetComponent(); tk2dSpriteAnimationClip clipByName = library.GetClipByName("idle_forward_twohands"); for (int i = 0; i < clipByName.frames.Length; i++) { clipByName.frames[i].spriteId = clipByName.frames[i].spriteCollection.GetSpriteIdByName($"lamey_idle_front_twohand_00{i + 1}"); } library.clips = library.clips.Where((tk2dSpriteAnimationClip x) => !extraanim.clips.Any((tk2dSpriteAnimationClip val12) => val12.name == x.name)).Concat(extraanim.clips.Where((tk2dSpriteAnimationClip x) => !x.name.Contains("lamey2"))).ToArray(); component.AlternateCostumeLibrary.clips = component.AlternateCostumeLibrary.clips.Where((tk2dSpriteAnimationClip x) => !extraanim.clips.Any((tk2dSpriteAnimationClip val12) => val12.name == x.name)).Concat(extraanim.clips.Where((tk2dSpriteAnimationClip x) => x.name.Contains("lamey2"))).ToArray(); component.AlternateCostumeLibrary.clips = CollectionExtensions.AddRangeToArray(component.AlternateCostumeLibrary.clips, (tk2dSpriteAnimationClip[])(object)new tk2dSpriteAnimationClip[4] { AltClip(library.GetClipByName("run_right_twohands")), AltClip(library.GetClipByName("idle_backward_twohands")), AltClip(library.GetClipByName("idle_backward_hand")), AltClip(library.GetClipByName("doorway")) }); tk2dSpriteAnimation[] array = (tk2dSpriteAnimation[])(object)new tk2dSpriteAnimation[2] { library, component.AlternateCostumeLibrary }; List list = new List { "dodge", "dodge_bw", "dodge_left", "dodge_left_bw" }; List list2 = new List { "run_right", "run_right_bw", "run_down", "run_up", "run_right_hand", "run_down_hand", "run_up_hand", "run_down_twohands", "run_right_twohands", "run_up_twohands", "run_right_bw_twohands" }; Dictionary dictionary = new Dictionary { { "jetpack_down", new Vector2(0.6875f, 0.875f) }, { "jetpack_down_hand", new Vector2(0.6875f, 0.875f) }, { "jetpack_right", new Vector2(0.3125f, 0.6875f) }, { "jetpack_right_hand", new Vector2(0.3125f, 0.6875f) }, { "jetpack_right_bw", new Vector2(0.375f, 0.5625f) }, { "jetpack_up", new Vector2(0.6875f, 0.625f) } }; Dictionary dictionary2 = new Dictionary { { "pitfall", "Play_Fall" }, { "pitfall_down", "Play_Fall" }, { "pitfall_return", "Play_Respawn" } }; tk2dSpriteAnimation[] array2 = array; foreach (tk2dSpriteAnimation val2 in array2) { foreach (string item in list) { tk2dSpriteAnimationClip clipByName2 = val2.GetClipByName(item); if (clipByName2 == null) { Debug.Log((object)("clip " + item + " is null for library " + ((Object)val2).name)); } if (clipByName2.frames.Length != 0) { clipByName2.frames[0].triggerEvent = true; clipByName2.frames[0].eventAudio = "Play_Leap"; tk2dSpriteAnimationFrame val3 = clipByName2.frames.Where((tk2dSpriteAnimationFrame x) => x.groundedFrame && x.invulnerableFrame).FirstOrDefault(); if (val3 != null) { val3.triggerEvent = true; val3.eventAudio = "Play_Roll"; } } } foreach (string item2 in list2) { tk2dSpriteAnimationClip clipByName3 = val2.GetClipByName(item2); if (clipByName3 != null && clipByName3.frames.Length != 0) { clipByName3.frames[clipByName3.frames.Length - 1].triggerEvent = true; clipByName3.frames[clipByName3.frames.Length - 1].eventAudio = "Play_FS"; clipByName3.frames[Mathf.RoundToInt((float)clipByName3.frames.Length / 2f) - 1].triggerEvent = true; clipByName3.frames[Mathf.RoundToInt((float)clipByName3.frames.Length / 2f) - 1].eventAudio = "Play_FS"; } } foreach (KeyValuePair item3 in dictionary) { tk2dSpriteAnimationClip clipByName4 = val2.GetClipByName(item3.Key); if (clipByName4 != null) { for (int num2 = 0; num2 < clipByName4.frames.Length; num2++) { clipByName4.frames[num2].spriteCollection.SetAttachPoints(clipByName4.frames[num2].spriteId, (AttachPoint[])(object)new AttachPoint[1] { new AttachPoint { name = "jetpack", position = Vector2.op_Implicit(item3.Value), angle = 0f } }); } } } foreach (KeyValuePair item4 in dictionary2) { tk2dSpriteAnimationClip clipByName5 = val2.GetClipByName(item4.Key); if (clipByName5 == null) { Debug.Log((object)("clip " + item4.Key + " is null for library " + ((Object)val2).name)); } tk2dSpriteAnimationFrame val4 = clipByName5.frames[0]; val4.triggerEvent = true; val4.eventAudio = item4.Value; } tk2dSpriteAnimationClip[] clips = val2.clips; tk2dSpriteAnimationClip val5 = new tk2dSpriteAnimationClip(); val5.fps = 6f; val5.wrapMode = (WrapMode)0; val5.name = "timefall"; val5.frames = ((IEnumerable)new int[6] { 1, 2, 3, 4, 5, 6 }).Select((Func)((int x) => new tk2dSpriteAnimationFrame { spriteCollection = coll, spriteId = coll.GetSpriteIdByName($"lamey_timefall_00{x}") })).ToArray(); val2.clips = CollectionExtensions.AddToArray(clips, val5); tk2dSpriteAnimationClip[] clips2 = val2.clips; foreach (tk2dSpriteAnimationClip val6 in clips2) { tk2dSpriteAnimationFrame[] frames = val6.frames; foreach (tk2dSpriteAnimationFrame frame in frames) { tk2dSpriteDefinition def = frame.Sprite(); def.ReplaceShader(PlayerController.DefaultShaderName); } } } val.AddComponent().lootMods = new List { new LootModData { AssociatedPickupId = GlobalItemDatabase.GreyMauserId, DropRateMultiplier = 2f }, new LootModData { AssociatedPickupId = GlobalItemDatabase.ThePredatorId, DropRateMultiplier = 2f }, new LootModData { AssociatedPickupId = GlobalItemDatabase.BoxId, DropRateMultiplier = 2f }, new LootModData { AssociatedPickupId = GlobalItemDatabase.VorpalGunId, DropRateMultiplier = 2f }, new LootModData { AssociatedPickupId = GlobalItemDatabase.SuperSpaceTurtleId, DropRateMultiplier = 2f } }; Databases.Strings.Core.Set("#PLAYER_NAME_" + ((object)Unsafe.As(ref PlayableCharactersE.Lamey)/*cast due to .constrained prefix*/).ToString().ToUpperInvariant(), "Lamey"); Databases.Strings.Core.Set("#PLAYER_NICK_" + ((object)Unsafe.As(ref PlayableCharactersE.Lamey)/*cast due to .constrained prefix*/).ToString().ToUpperInvariant(), "detective"); Vector2 val7 = default(Vector2); ((Vector2)(ref val7))..ctor(32f, 17.5f); Vector2 val8 = default(Vector2); ((Vector2)(ref val8))..ctor(-0.5f, -0.75f); FoyerCharacterSelectFlag val9 = component.AddToBreach("lameybreachflag", Vector2.op_Implicit(val7), new List(), new IntRect(8, 1, 10, 4), new IntRect(7, 1, 12, 19), new IntVector2(-1, 0), "lameyoverheadpanel", "The Detective", "lamey", 5f, "lamey_items"); CharacterSelectIdleDoer component2 = ((Component)val9).GetComponent(); component2.phases = (CharacterSelectIdlePhase[])(object)new CharacterSelectIdlePhase[3] { new CharacterSelectIdlePhase { inAnimation = "select_bored", holdMin = 0f, holdMax = 0f }, new CharacterSelectIdlePhase { inAnimation = "select_sneeze", holdMin = 0f, holdMax = 0f }, new CharacterSelectIdlePhase { inAnimation = "select_bounty_pull", holdAnimation = "select_bounty_slap", holdMin = 1.125f, holdMax = 1.125f, outAnimation = "select_bounty_hide" } }; GameObject val10 = Plugin.bundle.LoadAsset("LameyAltCostumeSwapper"); CharacterCostumeSwapper val11 = val10.AddComponent(); val11.TargetCharacter = PlayableCharactersE.Lamey; val11.AlternateCostumeSprite = ((Component)val10.transform.Find("AltSprite")).GetComponent(); val11.CostumeSprite = ((Component)val10.transform.Find("NormalSprite")).GetComponent(); float heightOffGround = -0.5f; ((tk2dBaseSprite)val11.AlternateCostumeSprite).CurrentSprite.ReplaceShader("Brave/LitTk2dCustomFalloffTiltedCutout"); ((tk2dBaseSprite)val11.AlternateCostumeSprite).IsPerpendicular = false; ((tk2dBaseSprite)val11.AlternateCostumeSprite).HeightOffGround = heightOffGround; ((tk2dBaseSprite)val11.AlternateCostumeSprite).UpdateZDepth(); ((tk2dBaseSprite)val11.CostumeSprite).CurrentSprite.ReplaceShader("Brave/LitTk2dCustomFalloffTiltedCutout"); ((tk2dBaseSprite)val11.CostumeSprite).IsPerpendicular = false; ((tk2dBaseSprite)val11.CostumeSprite).HeightOffGround = heightOffGround; ((tk2dBaseSprite)val11.CostumeSprite).UpdateZDepth(); Toolbox.breachCharacters[val10] = Vector2.op_Implicit(val7 + val8); component.AddPunchoutSprites("ruc_lamey", "lamey_facecard"); Dictionary dictionary3 = new Dictionary { { "lamey_punch_block_001", new IntVector2(-9, 5) }, { "lamey_punch_block_002", new IntVector2(-9, 5) }, { "lamey_punch_block_hit_001", new IntVector2(-11, 5) }, { "lamey_punch_dodge_left_001", new IntVector2(-20, 5) }, { "lamey_punch_dodge_left_002", new IntVector2(-20, 5) }, { "lamey_punch_dodge_right_001", new IntVector2(-7, 5) }, { "lamey_punch_dodge_right_002", new IntVector2(-7, 5) }, { "lamey_punch_duck_001", new IntVector2(-12, 5) }, { "lamey_punch_duck_002", new IntVector2(-12, 5) }, { "lamey_punch_exhaust_001", new IntVector2(-8, 5) }, { "lamey_punch_exhaust_002", new IntVector2(-7, 5) }, { "lamey_punch_exhaust_003", new IntVector2(-7, 5) }, { "lamey_punch_hit_left_001", new IntVector2(-17, 0) }, { "lamey_punch_hit_left_002", new IntVector2(-20, 0) }, { "lamey_punch_hit_left_003", new IntVector2(-22, 0) }, { "lamey_punch_hit_right_001", new IntVector2(-10, 0) }, { "lamey_punch_hit_right_002", new IntVector2(-7, 0) }, { "lamey_punch_hit_right_003", new IntVector2(-5, 0) }, { "lamey_punch_idle_001", new IntVector2(-9, 5) }, { "lamey_punch_idle_002", new IntVector2(-10, 5) }, { "lamey_punch_idle_004", new IntVector2(-11, 5) }, { "lamey_punch_knockout_001", new IntVector2(-9, 13) }, { "lamey_punch_knockout_002", new IntVector2(-10, 14) }, { "lamey_punch_knockout_003", new IntVector2(-10, 15) }, { "lamey_punch_knockout_004", new IntVector2(-13, 20) }, { "lamey_punch_knockout_005", new IntVector2(-15, 13) }, { "lamey_punch_knockout_006", new IntVector2(-16, 8) }, { "lamey_punch_knockout_007", new IntVector2(-17, 8) }, { "lamey_punch_miss_left_002", new IntVector2(-6, 7) }, { "lamey_punch_miss_left_003", new IntVector2(-6, 7) }, { "lamey_punch_miss_right_002", new IntVector2(-11, 7) }, { "lamey_punch_miss_right_003", new IntVector2(-10, 7) }, { "lamey_punch_punch_blocked_left_002", new IntVector2(-9, 3) }, { "lamey_punch_punch_blocked_left_003", new IntVector2(-8, 3) }, { "lamey_punch_punch_blocked_right_002", new IntVector2(-14, 3) }, { "lamey_punch_punch_blocked_right_003", new IntVector2(-13, 3) }, { "lamey_punch_punch_left_001", new IntVector2(-8, 7) }, { "lamey_punch_punch_left_002", new IntVector2(-8, 7) }, { "lamey_punch_punch_left_003", new IntVector2(-12, 7) }, { "lamey_punch_punch_right_001", new IntVector2(-12, 7) }, { "lamey_punch_punch_right_002", new IntVector2(-12, 7) }, { "lamey_punch_punch_right_003", new IntVector2(-11, 7) }, { "lamey_punch_star_001", new IntVector2(-10, -9) }, { "lamey_punch_star_002", new IntVector2(-10, -11) }, { "lamey_punch_star_003", new IntVector2(-10, -11) }, { "lamey_punch_star_004", new IntVector2(-12, 26) }, { "lamey_punch_star_005", new IntVector2(-15, 33) }, { "lamey_punch_star_006", new IntVector2(-14, 28) }, { "lamey_punch_star_007", new IntVector2(-14, 19) }, { "lamey_punch_star_008", new IntVector2(-11, 18) }, { "lamey_punch_star_009", new IntVector2(-11, -8) }, { "lamey_punch_win_001", new IntVector2(-9, 6) }, { "lamey_punch_win_002", new IntVector2(-9, 6) }, { "lamey_punch_win_003", new IntVector2(-9, 6) }, { "lamey_punch_win_004", new IntVector2(-9, 6) } }; foreach (KeyValuePair item5 in dictionary3) { Toolbox.punchoutColl.GetSpriteDefinition(item5.Key).AddOffset(item5.Value); } tk2dSpriteAnimationClip AltClip(tk2dSpriteAnimationClip orig) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown return new tk2dSpriteAnimationClip(orig) { frames = orig.frames.Select(delegate(tk2dSpriteAnimationFrame x) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown tk2dSpriteAnimationFrame val12 = new tk2dSpriteAnimationFrame(); val12.CopyFrom(x); val12.spriteId = (val12.spriteCollection = altCollection).GetSpriteIdByName(x.Sprite().name.Replace("lamey", "lamey2"), -1); if (val12.spriteId == -1) { val12.spriteId = (val12.spriteCollection = extracoll).GetSpriteIdByName(x.Sprite().name.Replace("lamey", "lamey2"), -1); } return val12; }).ToArray() }; } } } } namespace ReturnUnusedCharacters.Characters.Lamey.Items { public class AltLameyGun { public static void Init() { //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01b1: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Expected O, but got Unknown //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_028a: Unknown result type (might be due to invalid IL or missing references) string gunName = "Lamey Gun"; string gunShortDesc = "Detective's Weapon"; string gunLongDesc = "Lamey's trusty gun, its perfect accuracy and high range allows to easily hit enemies even from long distances."; Action finish; Gun val = ItemBuilder.EasyGunInit("altlamey_gun", gunName, gunShortDesc, gunLongDesc, 500, 1.3f, GlobalItemDatabase.WitchPistolObject.muzzleFlashEffects, "heavylaser", (ItemQuality)(-50), (GunClass)0, out finish, null, "ccr:lamey_gun_alt"); val.InfiniteAmmo = true; ((PickupObject)val).PreventStartingOwnerFromDropping = true; tk2dBaseSprite componentInChildren = ((Component)GlobalItemDatabase.WitchPistolObject.DefaultModule.projectiles[0]).GetComponentInChildren(); Projectile val2 = ItemBuilder.EasyProjectileInit("altlameygunprojectile", 5.5f, 23f, 1000f, 9f, shouldRotate: true, ignoreDamageCaps: false, pierceMinorBreakables: false, (int?)componentInChildren.spriteId, componentInChildren.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); Light componentInChildren2 = ((Component)val2).GetComponentInChildren(); LightPulser val3 = ((Component)(object)componentInChildren2).AddComponent(); val3.flicker = false; val3.flickerRange = 2f; val3.normalRange = 2.8f; val3.pulseSpeed = 20f; val3.waitTime = 0.05f; ((Behaviour)val3).enabled = false; ObjectHeightController val4 = ((Component)(object)componentInChildren2).AddComponent(); val4.heightOffGround = -0.8f; BundleOfWandsLightController val5 = ((Component)(object)componentInChildren2).AddComponent(); val5.baseColor = new Color(0.9961f, 0f, 0.9961f); val2.hitEffects = GlobalItemDatabase.WitchPistolObject.DefaultModule.projectiles[0].hitEffects; val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)0, projectiles = new List { val2 }, cooldownTime = 0.2f, numberOfShotsInClip = 15, ammoType = (AmmoType)14, angleVariance = 0f, customAmmoType = Toolbox.AddCustomAmmoType("ccr_altlameygun", "altlameygunammotype", "altlameygun_clip") }); finish(); ((BraveBehaviour)val).encounterTrackable.journalData.SuppressInAmmonomicon = (EncounterDatabase.GetEntry(((BraveBehaviour)val).encounterTrackable.EncounterGuid).journalData.SuppressInAmmonomicon = true); ((BraveBehaviour)val).encounterTrackable.journalData.AmmonomiconSprite = (EncounterDatabase.GetEntry(((BraveBehaviour)val).encounterTrackable.EncounterGuid).journalData.AmmonomiconSprite = "lamey_gun_idle_01"); GlobalItemDatabase.LameyGunObject.gunSwitchGroup = val.gunSwitchGroup; ((PickupObject)GlobalItemDatabase.LameyGunObject).quality = (ItemQuality)(-50); GlobalItemDatabase.LameyGunObject.gunClass = val.gunClass; ((PickupObject)GlobalItemDatabase.LameyGunObject).PreventStartingOwnerFromDropping = true; ((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.journalData.PrimaryDisplayName = (EncounterDatabase.GetEntry(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.EncounterGuid).journalData.PrimaryDisplayName = ((BraveBehaviour)val).encounterTrackable.journalData.PrimaryDisplayName); ((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.journalData.NotificationPanelDescription = (EncounterDatabase.GetEntry(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.EncounterGuid).journalData.NotificationPanelDescription = ((BraveBehaviour)val).encounterTrackable.journalData.NotificationPanelDescription); ((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.journalData.AmmonomiconFullEntry = (EncounterDatabase.GetEntry(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.EncounterGuid).journalData.AmmonomiconFullEntry = ((BraveBehaviour)val).encounterTrackable.journalData.AmmonomiconFullEntry); ((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.journalData.AmmonomiconSprite = (EncounterDatabase.GetEntry(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.EncounterGuid).journalData.AmmonomiconSprite = "lamey_gun_idle_01"); ((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.journalData.SuppressInAmmonomicon = (EncounterDatabase.GetEntry(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).encounterTrackable.EncounterGuid).journalData.SuppressInAmmonomicon = false); ItemBuilder.AddSpriteToCollection(((BraveBehaviour)GlobalItemDatabase.LameyGunObject).sprite.CurrentSprite, AmmonomiconController.ForceInstance.EncounterIconCollection); } } public class Bounty : PassiveItem { public float TimeToKillBounty; public int bountyReward; public GameObject BountyVFX; public static void Init() { string itemName = "Contrackter"; string itemShortDesc = "Bounty-full"; string itemLongDesc = "An attachable bounty tool used by detectives and bounty hunters in Hegemotropolis. Capable of displaying detailed information about the target, down to their fingerprints, genetic makeup, and preferred pizza flavour. A good detective knows to appreciate whatever information is available. Of course, however, the most important is always the cash reward...\n\nRandomly marks an enemy for a bounty. Killing that enemy fast enough rewards you with extra casings."; Bounty bounty = ItemBuilder.EasyItemInit("bounty", itemName, itemShortDesc, itemLongDesc, (ItemQuality)3, (int?)null, (string)null); bounty.TimeToKillBounty = 15f; bounty.bountyReward = 5; bounty.BountyVFX = Plugin.bundle.LoadAsset("contrackskull"); } public override void Pickup(PlayerController player) { ((PassiveItem)this).Pickup(player); player.OnEnteredCombat = (Action)Delegate.Combine(player.OnEnteredCombat, new Action(ApplyBounty)); } public void ApplyBounty() { //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) if (((PassiveItem)this).Owner.CurrentRoom == null) { return; } List activeEnemies = ((PassiveItem)this).Owner.CurrentRoom.GetActiveEnemies((ActiveEnemyType)1); if (activeEnemies != null) { List list = activeEnemies.FindAll((AIActor x) => IsValidEnemy(x)); if (list.Count > 0) { AIActor val = BraveUtility.RandomElement(list); BountyTarget bountyTarget = ((Component)(object)val).AddComponent(); bountyTarget.vfx = ((GameActor)val).PlayEffectOnActor(BountyVFX, Vector2.op_Implicit(((!Object.op_Implicit((Object)(object)((BraveBehaviour)val).sprite)) ? Vector2.up : (Vector2.up * (((BraveBehaviour)val).sprite.WorldTopCenter.y - ((BraveBehaviour)val).sprite.WorldBottomCenter.y))) + Vector2.up), true, true, false); SpriteOutlineManager.AddOutlineToSprite(bountyTarget.vfx.GetComponent(), Color.black); bountyTarget.currencyToDrop = bountyReward; bountyTarget.KillTime = TimeToKillBounty; } } } public bool IsValidEnemy(AIActor testEnemy) { if (!Object.op_Implicit((Object)(object)testEnemy) || testEnemy.IsHarmlessEnemy) { return false; } if (Object.op_Implicit((Object)(object)((BraveBehaviour)testEnemy).healthHaver) && (((BraveBehaviour)testEnemy).healthHaver.PreventAllDamage || ((BraveBehaviour)testEnemy).healthHaver.IsBoss)) { return false; } if (Object.op_Implicit((Object)(object)((Component)testEnemy).GetComponent()) && !testEnemy.IsSignatureEnemy) { return false; } return true; } public override void DisableEffect(PlayerController player) { player.OnEnteredCombat = (Action)Delegate.Remove(player.OnEnteredCombat, new Action(ApplyBounty)); ((PassiveItem)this).DisableEffect(player); } } public class CyberPistol { public static void Init() { //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0176: Expected O, but got Unknown //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) string gunName = "Cyber Pistol"; string gunShortDesc = "Investigative Spirit"; string gunLongDesc = "One of the earliest models of Cybergun-branded weapons to be manufactured, the Cyber Pistol is much rougher than its newer counterparts, yet it remains popular amongst the detectives of the flashier planets in the Hegemony of Man's domain.\n\nIt is from this gun that the homing shots, a staple of Cyberguns, originated; simply because the designers thought it'd be cooler than a gun with reasonable spread. They were right."; Action finish; Gun val = ItemBuilder.EasyGunInit("cyberpistol", gunName, gunShortDesc, gunLongDesc, 250, 1f, GlobalItemDatabase.HegemonyRifleObject.muzzleFlashEffects, "heavylaser", (ItemQuality)3, (GunClass)1, out finish); tk2dBaseSprite componentInChildren = ((Component)GlobalItemDatabase.HegemonyRifleObject.DefaultModule.projectiles[0]).GetComponentInChildren(); Projectile val2 = ItemBuilder.EasyProjectileInit("cyberpistolprojectile", 12f, 23f, 1000f, 30f, shouldRotate: true, ignoreDamageCaps: false, pierceMinorBreakables: true, (int?)componentInChildren.spriteId, componentInChildren.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); HomingModifier val3 = ((Component)(object)val2).AddComponent(); val3.HomingRadius = 10f; val3.AngularVelocity = 420f; val2.hitEffects = GlobalItemDatabase.HegemonyRifleObject.DefaultModule.projectiles[0].hitEffects; val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)0, projectiles = new List { val2 }, cooldownTime = 0.15f, numberOfShotsInClip = 4, ammoType = (AmmoType)14, angleVariance = 35f, customAmmoType = Toolbox.AddCustomAmmoType("ccr_cyberpistol", "cyberpistolammotype", "cyberpistol_clip") }); val.carryPixelOffset = new IntVector2(3, 0); finish(); } } public class CyberSMG { public static void Init() { //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Expected O, but got Unknown string gunName = "Cyber SMG"; string gunShortDesc = "Poking where you should not"; string gunLongDesc = "A newer Cybergun design, heavily marketed as a weapon to be used by lone detectives when surrounded by nameless goons. After just a few bursts shot mindlessly around oneself, it is nigh-guaranteed that none (other than the weapon's manufacturers) will remain standing."; Action finish; Gun val = ItemBuilder.EasyGunInit("cybersmg", gunName, gunShortDesc, gunLongDesc, 500, 1f, GlobalItemDatabase.HegemonyRifleObject.muzzleFlashEffects, "CCR_CyberSMG", (ItemQuality)3, (GunClass)10, out finish); tk2dBaseSprite componentInChildren = ((Component)GlobalItemDatabase.RogueSpecialObject.DefaultModule.projectiles[0]).GetComponentInChildren(); Projectile val2 = ItemBuilder.EasyProjectileInit("cybersmgprojectile", 3.5f, 23f, 1000f, 5f, shouldRotate: true, ignoreDamageCaps: false, pierceMinorBreakables: false, (int?)componentInChildren.spriteId, componentInChildren.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); HomingModifier val3 = ((Component)(object)val2).AddComponent(); val3.HomingRadius = 10f; val3.AngularVelocity = 420f; val2.hitEffects = GlobalItemDatabase.RogueSpecialObject.DefaultModule.projectiles[0].hitEffects; val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)1, projectiles = new List { val2 }, cooldownTime = 0.1f, numberOfShotsInClip = 18, ammoType = (AmmoType)14, angleVariance = 35f, customAmmoType = Toolbox.AddCustomAmmoType("ccr_cybersmg", "cybersmgammotype", "cybersmg_clip") }); SoundManager.AddCustomSwitchData("WPN_Guns", "CCR_CyberSMG", "Play_WPN_Gun_Shot_01", new SwitchedEvent("Play_WPN_Gun_Shot_01", "WPN_Guns", "heavylaser")); SoundManager.AddCustomSwitchData("WPN_Guns", "CCR_CyberSMG", "Play_WPN_Gun_Reload_01", new SwitchedEvent("Play_WPN_Gun_Reload_01", "WPN_Guns", "Claw")); finish(); } } public class DotZipCarbine : GunBehaviour { public float statsPerKill; public float stats = 1f; private StatModifier ammoMod; private StatModifier clipMod; public Projectile zipBombSynergyProjectile; public float zipBombSynergyExplodeChance; public ExplosionData zipBombSynergyExplosionData; public float fileCompressionSynergyClipMult; public float fileCompressionSynergyDamageMult; public static void Init() { //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Unknown result type (might be due to invalid IL or missing references) //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Expected O, but got Unknown //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_023d: Unknown result type (might be due to invalid IL or missing references) Projectile srifleproj = GlobalItemDatabase.ShockRifleObject.DefaultModule.projectiles[0]; string gunName = "Dot Zip Carbine"; string gunShortDesc = "Bankrupted, creatively"; string gunLongDesc = "Has low stats, but very high maximum ammo and clip size. Having this weapon in your inventory allows you to hold an extra active item, and killing enemies with it slowly increases the maximum ammo and clip capacity of all guns in a linear, percentage-based manner.\n\nThe result of a catastrophically disastrous business decision from a once-beloved firearms and computing company, created after its sole owner became obssessed with the idea of a hyper-compact, cheap computer-gun. The Dot Zip Carbine turned out to be janky and unreliable, and its computerized stock was unable to do anything other than compressing files. Although it is responsible for its company going bankrupt, the Gungeon appears to have pitied this weapon, and has endowed its frame with the ability to compress and store much more than simple computer files."; Action finish; Gun val = ItemBuilder.EasyGunInit("dot_zip_carbine", gunName, gunShortDesc, gunLongDesc, 600, 1.5f, GlobalItemDatabase.HegemonyRifleObject.muzzleFlashEffects, "Battery", (ItemQuality)2, (GunClass)15, out finish); Projectile val2 = ItemBuilder.EasyProjectileInit("dotzipcarbineprojectile", 4f, 140f, 1000f, 20f, shouldRotate: true, ignoreDamageCaps: false, pierceMinorBreakables: true, (int?)((tk2dBaseSprite)((Component)srifleproj).GetComponentInChildren()).spriteId, ((tk2dBaseSprite)((Component)srifleproj).GetComponentInChildren()).Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); SetupLightningProjectile(val2); val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)1, projectiles = new List { val2 }, cooldownTime = 0.2f, numberOfShotsInClip = 20, ammoType = (AmmoType)14, angleVariance = 10f, customAmmoType = Toolbox.AddCustomAmmoType("ccr_dotzipcarbine", "dotzipcarbineammotype", "dot_zip_carbine_clip") }); DotZipCarbine dotZipCarbine = ((Component)(object)val).AddComponent(); dotZipCarbine.statsPerKill = 0.0005f; dotZipCarbine.zipBombSynergyProjectile = ItemBuilder.EasyProjectileInit("dotzipcarbinesynergyprojectile", 9f, 140f, 1000f, 20f, shouldRotate: true, ignoreDamageCaps: false, pierceMinorBreakables: true, (int?)((tk2dBaseSprite)((Component)srifleproj).GetComponentInChildren()).spriteId, ((tk2dBaseSprite)((Component)srifleproj).GetComponentInChildren()).Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); SetupLightningProjectile(dotZipCarbine.zipBombSynergyProjectile); dotZipCarbine.zipBombSynergyExplodeChance = 0.25f; dotZipCarbine.zipBombSynergyExplosionData = GlobalItemDatabase.ExplosiveRoundsObject.ExplosionData; dotZipCarbine.fileCompressionSynergyClipMult = 0.75f; dotZipCarbine.fileCompressionSynergyDamageMult = 2f; finish(); TransformGunSynergyProcessor val3 = ((Component)(object)dotZipCarbine).AddComponent(); val3.SynergyToCheck = CustomSynergyTypeE.YOU_WIN_RAR; val3.NonSynergyGunId = ((PickupObject)val).PickupObjectId; val3.SynergyGunId = InitWinRar(); void SetupLightningProjectile(Projectile proj) { //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) tk2dSpriteAnimator component = ((Component)((BraveBehaviour)proj).transform.Find("Sprite")).GetComponent(); component.Library = ((Component)((BraveBehaviour)srifleproj).transform.Find("Sprite")).GetComponent().Library; component.DefaultClipId = ((Component)((BraveBehaviour)srifleproj).transform.Find("Sprite")).GetComponent().DefaultClipId; Transform self = ((BraveBehaviour)proj).transform.Find("light"); ObjectHeightController val4 = ((Component)(object)self).AddComponent(); val4.heightOffGround = -0.8f; TimedObjectKiller val5 = ((Component)(object)self).AddComponent(); val5.lifeTime = 0.06f; val5.m_light = null; val5.m_poolType = (PoolType)0; val5.m_renderer = null; Transform val6 = ((BraveBehaviour)proj).transform.Find("Trail 1"); tk2dTiledSprite component2 = ((Component)val6).GetComponent(); tk2dTiledSprite componentInChildren = ((Component)srifleproj).GetComponentInChildren(); ((tk2dBaseSprite)component2).SetSprite(((tk2dBaseSprite)componentInChildren).Collection, ((tk2dBaseSprite)componentInChildren).spriteId); ((BraveBehaviour)component2).spriteAnimator.Library = ((BraveBehaviour)componentInChildren).spriteAnimator.Library; ((BraveBehaviour)component2).spriteAnimator.DefaultClipId = ((BraveBehaviour)componentInChildren).spriteAnimator.DefaultClipId; TrailController val7 = ((Component)(object)val6).AddComponent(); val7.animation = "electric_lightning_beam_middle"; val7.boneSpawnOffset = Vector2.zero; val7.cascadeTimer = 0.1f; val7.destroyOnEmpty = true; val7.DispersalDensity = 7f; val7.DispersalMaxCoherency = 1f; val7.DispersalMinCoherency = 0.8f; val7.DispersalParticleSystemPrefab = ((Component)srifleproj).GetComponentInChildren().DispersalParticleSystemPrefab; val7.FlipUvsY = false; val7.globalTimer = 0f; val7.rampHeight = false; val7.rampStartHeight = 2f; val7.rampTime = 1f; val7.softMaxLength = 0f; val7.startAnimation = ""; val7.usesAnimation = true; val7.usesCascadeTimer = false; val7.UsesDispersalParticles = true; val7.usesGlobalTimer = true; val7.usesSoftMaxLength = false; val7.usesStartAnimation = false; proj.hitEffects = srifleproj.hitEffects; } } public static int InitWinRar() { //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: 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_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Action finish; Gun val = ItemBuilder.EasyGunInit("winrar", "WinRar", "", "", 600, 1.5f, GlobalItemDatabase.HegemonyRifleObject.muzzleFlashEffects, "Battery", (ItemQuality)(-100), (GunClass)15, out finish, null, "ccr:dot_zip_carbine+you_win_rar"); string customAmmoType = Toolbox.AddCustomAmmoType("ccr_winrar", "winrarammotype", "winrar_clip"); Projectile component = Plugin.bundle.LoadAsset("dotzipcarbineprojectile").GetComponent(); int num = 4; for (int i = 0; i < num; i++) { val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)1, projectiles = new List { component }, cooldownTime = 0.35f, numberOfShotsInClip = 20, ammoType = (AmmoType)14, angleVariance = 20f, customAmmoType = customAmmoType, ammoCost = ((i == 0) ? 1 : 0) }); } val.RawSourceVolley.UsesShotgunStyleVelocityRandomizer = true; val.RawSourceVolley.IncreaseFinalSpeedPercentMax = 15f; val.RawSourceVolley.DecreaseFinalSpeedPercentMin = 15f; finish(); return ((PickupObject)val).PickupObjectId; } public override void OnPlayerPickup(PlayerController playerOwner) { ((GunBehaviour)this).OnPlayerPickup(playerOwner); ammoMod = StatModifier.Create((StatType)9, (ModifyMethod)1, stats); clipMod = StatModifier.Create((StatType)16, (ModifyMethod)1, stats); playerOwner.ownerlessStatModifiers.Add(ammoMod); playerOwner.ownerlessStatModifiers.Add(clipMod); playerOwner.stats.RecalculateStats(playerOwner, false, false); PlayerControllerExt playerControllerExt = playerOwner.Ext(); playerControllerExt.OnExplosion = (Action)Delegate.Combine(playerControllerExt.OnExplosion, new Action(ZipBombSynergy)); } public override void PostProcessProjectile(Projectile projectile) { //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) ((GunBehaviour)this).PostProcessProjectile(projectile); projectile.OnHitEnemy = (Action)Delegate.Combine(projectile.OnHitEnemy, new Action(AddStats)); if (!Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner)) { return; } if (((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.FILE_COMPRESSION, false)) { ProjectileData baseData = projectile.baseData; baseData.damage *= fileCompressionSynergyDamageMult; } if (((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.ZIP_BOMB, false) && Random.value < zipBombSynergyExplodeChance) { ExplosiveModifier val = ((Component)(object)projectile).AddComponent(); val.doExplosion = true; val.explosionData = zipBombSynergyExplosionData; val.IgnoreQueues = true; } if (!((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.KNOT_A_TYPO, false)) { return; } Projectile val2 = Toolbox.OwnedShootProjectile(projectile, Vector2.op_Implicit(((BraveBehaviour)projectile).transform.position), Random.Range(0f, 360f), ((GunBehaviour)this).GenericOwner); if ((Object)(object)val2 != (Object)null) { val2.OnHitEnemy = (Action)Delegate.Combine(val2.OnHitEnemy, new Action(AddStats)); if (Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner)) { ((GunBehaviour)this).PlayerOwner.DoPostProcessProjectile(val2); } } } public void AddStats(Projectile proj, SpeculativeRigidbody body, bool killed) { if (killed && (Object)(object)body != (Object)null && (Object)(object)((BraveBehaviour)body).aiActor != (Object)null && ((BraveBehaviour)body).aiActor.CanDropCurrency) { stats += statsPerKill; if (ammoMod != null) { ammoMod.amount = stats; } if (clipMod != null) { clipMod.amount = stats; } if ((Object)(object)((GunBehaviour)this).PlayerOwner != (Object)null) { ((GunBehaviour)this).PlayerOwner.stats.RecalculateStats(((GunBehaviour)this).PlayerOwner, false, false); } } } public void ZipBombSynergy(ExplosionData explosion, Vector3 pos, PlayerController pl) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) if (!pl.HasActiveBonusSynergy(CustomSynergyTypeE.ZIP_BOMB, false) || pl.CurrentRoom == null || pl.CurrentRoom.GetActiveEnemies((ActiveEnemyType)0) == null) { return; } IEnumerable source = from x in pl.CurrentRoom.GetActiveEnemies((ActiveEnemyType)0) where (Object)(object)x != (Object)null select x; IEnumerable enumerable = (from x in source where x.IsWorthShootingAt orderby Vector2.Distance(((GameActor)x).CenterPosition, Vector2.op_Implicit(pos)) select x).Concat(from x in source where !x.IsWorthShootingAt orderby Vector2.Distance(((GameActor)x).CenterPosition, Vector2.op_Implicit(pos)) select x).Take(8); foreach (AIActor item in enumerable) { Projectile val = Toolbox.OwnedShootProjectile(zipBombSynergyProjectile, Vector2.op_Implicit(pos), Vector2Extensions.ToAngle(((GameActor)item).CenterPosition - Vector3Extensions.XY(pos)), (GameActor)(object)pl); if ((Object)(object)val != (Object)null) { val.OnHitEnemy = (Action)Delegate.Combine(val.OnHitEnemy, new Action(AddStats)); pl.DoPostProcessProjectile(val); } } } public override void DisableEffectPlayer(PlayerController player) { ((GunBehaviour)this).DisableEffectPlayer(player); if (ammoMod != null) { player.ownerlessStatModifiers.Remove(ammoMod); } if (clipMod != null) { player.ownerlessStatModifiers.Remove(clipMod); } ammoMod = null; clipMod = null; player.stats.RecalculateStats(player, false, false); PlayerControllerExt playerControllerExt = player.Ext(); playerControllerExt.OnExplosion = (Action)Delegate.Remove(playerControllerExt.OnExplosion, new Action(ZipBombSynergy)); } public override void PostProcessVolley(ProjectileVolleyData volley) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) ((GunBehaviour)this).PostProcessVolley(volley); if (!Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner) || !((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.FILE_COMPRESSION, false)) { return; } foreach (ProjectileModule projectile in volley.projectiles) { if (projectile.numberOfShotsInClip > 1) { projectile.numberOfShotsInClip = Mathf.Max(Mathf.RoundToInt((float)projectile.numberOfShotsInClip * fileCompressionSynergyClipMult / 1.5f), 1); } } } } public class VegasSMG : GunBehaviour { public float rageChance; public float rageDuration; public float lastTimeUsedPewpewBoySynergy = -999f; public float pewpewBoySynergyCooldown; public float pewpewBoySynergyDuration; public Projectile mysteriousStrangerSynergyProjectile; public float mysteriousStrangerChance; public static void Init() { //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Expected O, but got Unknown //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) string gunName = "Vegas SMG"; string gunShortDesc = "No Wedding Bells for Today"; string gunLongDesc = "The Vegas SMG is a unique 12.7 mm submachine gun that never entered mass use due to its overly small quick, in spite of its large and expensive magazines. Although it was a commercial failure, its actual effectiveness is impressive for a manufacturer with more experience producing printers as opposed to actual guns."; Action finish; Gun val = ItemBuilder.EasyGunInit("vegas_smg", gunName, gunShortDesc, gunLongDesc, 500, 0.5f, GlobalItemDatabase.Mac10Object.muzzleFlashEffects, "CCR_VegasSMG", (ItemQuality)3, (GunClass)10, out finish); tk2dBaseSprite componentInChildren = ((Component)GlobalItemDatabase.Mac10Object.DefaultModule.projectiles[0]).GetComponentInChildren(); Projectile val2 = ItemBuilder.EasyProjectileInit("vegassmgprojectile", 8f, 23f, 1000f, 5f, shouldRotate: false, ignoreDamageCaps: false, pierceMinorBreakables: false, (int?)componentInChildren.spriteId, componentInChildren.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); val2.hitEffects = GlobalItemDatabase.Mac10Object.DefaultModule.projectiles[0].hitEffects; val.RawSourceVolley.projectiles.Add(new ProjectileModule { shootStyle = (ShootStyle)1, projectiles = new List { val2 }, cooldownTime = 0.1f, numberOfShotsInClip = 8, angleVariance = 35f }); SoundManager.AddCustomSwitchData("WPN_Guns", "CCR_VegasSMG", "Play_WPN_Gun_Shot_01", new SwitchedEvent("Play_WPN_Gun_Shot_01", "WPN_Guns", "Mac10")); SoundManager.AddCustomSwitchData("WPN_Guns", "CCR_VegasSMG", "Play_WPN_Gun_Reload_01", new SwitchedEvent("Play_WPN_Gun_Reload_01", "WPN_Guns", "Uzi")); VegasSMG vegasSMG = ((Component)(object)val).AddComponent(); vegasSMG.rageChance = 0.3f; vegasSMG.rageDuration = 4f; vegasSMG.pewpewBoySynergyCooldown = 10f; vegasSMG.pewpewBoySynergyDuration = 5f; Projectile val3 = GlobalItemDatabase.GunslingersAshesObject.DefaultModule.projectiles[0]; tk2dBaseSprite componentInChildren2 = ((Component)val3).GetComponentInChildren(); Projectile val4 = ItemBuilder.EasyProjectileInit("vegassmgstrangerprojectile", 12f, 0f, 1000f, 0f, shouldRotate: false, ignoreDamageCaps: false, pierceMinorBreakables: true, (int?)componentInChildren2.spriteId, componentInChildren2.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); val4.hitEffects = val3.hitEffects; tk2dSpriteAnimator spriteAnimator = ((BraveBehaviour)((Component)val4).GetComponentInChildren()).spriteAnimator; spriteAnimator.Library = ((BraveBehaviour)componentInChildren2).spriteAnimator.Library; spriteAnimator.DefaultClipId = ((BraveBehaviour)componentInChildren2).spriteAnimator.DefaultClipId; spriteAnimator.playAutomatically = ((BraveBehaviour)componentInChildren2).spriteAnimator.playAutomatically; SpawnProjModifier val5 = ((Component)(object)val4).AddComponent(); val5.alignToSurfaceNormal = false; val5.collisionSpawnProjectiles = (Projectile[])(object)new Projectile[0]; val5.collisionSpawnStyle = (CollisionSpawnStyle)1; val5.doOverrideObjectCollisionSpawnStyle = false; val5.elapsed = 0f; val5.fireRandomlyInAngle = false; val5.inFlightAimAtEnemies = true; val5.InFlightSourceTransform = null; val5.inFlightSpawnAngle = 360f; val5.inFlightSpawnAnimation = "gunslinger_projectile_shoot"; val5.inFlightSpawnCooldown = 2f; val5.numberToSpawnOnCollison = 0; val5.numToSpawnInFlight = 1; val5.overrideObjectSpawnStyle = (CollisionSpawnStyle)0; val5.PostprocessSpawnedProjectiles = false; val5.projectileToSpawnOnCollision = null; val5.randomRadialStartAngle = false; val5.spawnAudioEvent = ""; val5.spawnCollisionProjectilesOnBounce = false; val5.SpawnedProjectileScaleModifier = 1f; val5.SpawnedProjectilesInheritAppearance = false; val5.SpawnedProjectilesInheritData = false; val5.spawnOnObjectCollisions = false; val5.spawnProjecitlesOnDieInAir = false; val5.spawnProjectilesInFlight = true; val5.spawnProjectilesOnCollision = false; val5.startAngle = 180; val5.usesComplexSpawnInFlight = true; val5.UsesMultipleCollisionSpawnProjectiles = false; DieInAirWithDelayProjectileHandler dieInAirWithDelayProjectileHandler = ((Component)(object)val4).AddComponent(); dieInAirWithDelayProjectileHandler.delay = 2.5f; Projectile projectileToSpawnInFlight = ((Component)val3).GetComponent().projectileToSpawnInFlight; tk2dBaseSprite componentInChildren3 = ((Component)projectileToSpawnInFlight).GetComponentInChildren(); Projectile val6 = ItemBuilder.EasyProjectileInit("vegassmgstrangershotprojectile", 50f, 23f, 1000f, 9f, shouldRotate: false, ignoreDamageCaps: false, pierceMinorBreakables: true, (int?)componentInChildren3.spriteId, componentInChildren3.Collection, (Anchor)4, (int?)null, (int?)null, (int?)null, (int?)null); val6.hitEffects = projectileToSpawnInFlight.hitEffects; tk2dSpriteAnimator spriteAnimator2 = ((BraveBehaviour)((Component)((BraveBehaviour)projectileToSpawnInFlight).transform).GetComponentInChildren()).spriteAnimator; spriteAnimator2.Library = ((BraveBehaviour)componentInChildren3).spriteAnimator.Library; spriteAnimator2.DefaultClipId = ((BraveBehaviour)componentInChildren3).spriteAnimator.DefaultClipId; spriteAnimator2.playAutomatically = ((BraveBehaviour)componentInChildren3).spriteAnimator.playAutomatically; PierceProjModifier orAddComponent = ((Component)(object)val6).GetOrAddComponent(); orAddComponent.penetration = 1; val5.projectileToSpawnInFlight = val6; vegasSMG.mysteriousStrangerSynergyProjectile = val4; vegasSMG.mysteriousStrangerChance = 0.05f; finish(); } public override void PostProcessProjectile(Projectile projectile) { ((GunBehaviour)this).PostProcessProjectile(projectile); projectile.OnHitEnemy = (Action)Delegate.Combine(projectile.OnHitEnemy, new Action(ChanceToRageOnKill)); } public void ChanceToRageOnKill(Projectile proj, SpeculativeRigidbody body, bool killed) { //IL_0017: Unknown result type (might be due to invalid IL or missing references) if (killed && Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner) && ((GunBehaviour)this).PlayerOwner.HasActiveBonusSynergy(CustomSynergyTypeE.PSYCHOBUFF, false) && Random.value < rageChance) { ((GunBehaviour)this).PlayerOwner.Ext().Rage(rageDuration); } } public override void OnPlayerPickup(PlayerController playerOwner) { ((GunBehaviour)this).OnPlayerPickup(playerOwner); playerOwner.OnUsedPlayerItem += PewpewBoySynergy; } public void PewpewBoySynergy(PlayerController player, PlayerItem item) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) if (player.HasActiveBonusSynergy(CustomSynergyTypeE.PEWPEW_BOY, false) && Time.time - lastTimeUsedPewpewBoySynergy >= pewpewBoySynergyCooldown) { ((MonoBehaviour)player).StartCoroutine(HandlePewpewBoySynergyCR(player)); } } public IEnumerator HandlePewpewBoySynergyCR(PlayerController player) { if (!Object.op_Implicit((Object)(object)player)) { yield break; } StatModifier dmgMult = StatModifier.Create((StatType)5, (ModifyMethod)1, 1.5f); StatModifier firerateMult = StatModifier.Create((StatType)1, (ModifyMethod)1, 1.5f); player.ownerlessStatModifiers.Add(dmgMult); player.ownerlessStatModifiers.Add(firerateMult); player.stats.RecalculateStats(player, false, false); AkSoundEngine.PostEvent("Play_ITM_Macho_Brace_Active_01", ((Component)player).gameObject); SpriteOutlineManager.AddOutlineToSprite(((BraveBehaviour)player).sprite, new Color(0f, 1000f, 1000f)); float i = 0f; while (Object.op_Implicit((Object)(object)this) && Object.op_Implicit((Object)(object)player) && Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner) && i < pewpewBoySynergyDuration) { if (Object.op_Implicit((Object)(object)this)) { lastTimeUsedPewpewBoySynergy = Time.time; } yield return null; i += BraveTime.DeltaTime; } if (Object.op_Implicit((Object)(object)this)) { lastTimeUsedPewpewBoySynergy = Time.time; } if (Object.op_Implicit((Object)(object)player)) { SpriteOutlineManager.AddOutlineToSprite(((BraveBehaviour)player).sprite, player.outlineColor); player.ownerlessStatModifiers.Remove(dmgMult); player.ownerlessStatModifiers.Remove(firerateMult); player.stats.RecalculateStats(player, false, false); AkSoundEngine.PostEvent("Play_ITM_Macho_Brace_Fade_01", ((Component)player).gameObject); } if (Object.op_Implicit((Object)(object)this)) { while (Object.op_Implicit((Object)(object)this) && Object.op_Implicit((Object)(object)player) && Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner) && Time.time - lastTimeUsedPewpewBoySynergy <= pewpewBoySynergyCooldown) { yield return null; } if (Object.op_Implicit((Object)(object)this) && Object.op_Implicit((Object)(object)player) && Object.op_Implicit((Object)(object)((GunBehaviour)this).PlayerOwner)) { AkSoundEngine.PostEvent("Play_ITM_Macho_Brace_Active_01", ((Component)player).gameObject); } } } public override void OnDroppedByPlayer(PlayerController player) { ((GunBehaviour)this).OnDroppedByPlayer(player); player.OnUsedPlayerItem -= PewpewBoySynergy; } public override void OnPostFired(PlayerController player, Gun gun) { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) ((GunBehaviour)this).OnPostFired(player, gun); if (Object.op_Implicit((Object)(object)player) && player.CurrentRoom != null && player.HasActiveBonusSynergy(CustomSynergyTypeE.MYSTERIOUS_STRANGER, false) && Random.value < mysteriousStrangerChance) { IntVector2? randomAvailableCell = player.CurrentRoom.GetRandomAvailableCell((IntVector2?)IntVector2.One, (CellTypes?)null, false, (CellValidator)null); if (randomAvailableCell.HasValue) { Projectile proj = mysteriousStrangerSynergyProjectile; IntVector2 value = randomAvailableCell.Value; Toolbox.OwnedShootProjectile(proj, ((IntVector2)(ref value)).ToCenterVector2(), Random.Range(0f, 360f), (GameActor)(object)player); } } } } public class DisguiseHat : PlayerItem { public static void Init() { string itemName = "Disguise Kit"; string itemShortDesc = "Temporary Disguise"; string itemLongDesc = "Grants stealth, can't be used to steal from shops.\n\nThis disguise kit allows for easy and quick disguise, but the shopkeepers won't be tricked that easily"; DisguiseHat item = ItemBuilder.EasyItemInit("disguisehat", itemName, itemShortDesc, itemLongDesc, (ItemQuality)1, (int?)null, (string)null); ((PlayerItem)(object)item).SetCooldownType(ItemBuilder.CooldownType.PerRoom, 1f); } public override void DoEffect(PlayerController user) { ((PlayerItem)this).DoEffect(user); user.StealthPlayer("spapi_disguise", allowStealing: false, disableEnemyCollision: false, GlobalItemDatabase.SmokeBombObject.poofVfx, "Play_ENM_wizardred_appear_01"); } public override bool CanBeUsed(PlayerController user) { return !((GameActor)user).IsStealthed; } } public class MagnifyingGlass { public static GameObject fuckYouUnityImDoneWithYouIHateYou; public static void Init() { //IL_0035: Unknown result type (might be due to invalid IL or missing references) string itemName = "Magnifying Glass"; string itemShortDesc = "Magnifying Guon Stone"; string itemLongDesc = "Spins around the owner, magnifies bullets that pass through. Magnified bullets will have significantly increased size and slightly increased damage.\n\nLamey's trusty magnifying glass, she brings it everywhere she goes"; PlayerOrbitalItem val = ItemBuilder.EasyItemInit("magnifyingglass", itemName, itemShortDesc, itemLongDesc, (ItemQuality)2, (int?)null, (string)null); val.OrbitalPrefab = ItemBuilder.EasyGuonInit("MagnifyingGlassGuon", new IntVector2(6, 6), 2.5f, 80f, 0, shouldRotate: false, null, (CollisionLayer)8); SpecialAssets.assets.Add((Object)(object)((Component)val.OrbitalPrefab).gameObject); ((BraveBehaviour)val.OrbitalPrefab).specRigidbody.PixelColliders[0].IsTrigger = true; MagnifyPlayerBullets magnifyPlayerBullets = ((Component)(object)val.OrbitalPrefab).AddComponent(); magnifyPlayerBullets.scaleMultiplier = 2f; magnifyPlayerBullets.damageMultiplier = 1.15f; magnifyPlayerBullets.scaleMultiplierStealthed = 2.5f; magnifyPlayerBullets.damageMultiplierStealthed = 3f; magnifyPlayerBullets.stealthedAdditionalPierces = 1; ChangeOrbitSettingsOnStealth changeOrbitSettingsOnStealth = ((Component)(object)val.OrbitalPrefab).AddComponent(); changeOrbitSettingsOnStealth.stealthedOrbitRadius = 2f; changeOrbitSettingsOnStealth.stealthedDegreesPerSecond = 80f; changeOrbitSettingsOnStealth.stealthForgivenessTime = (magnifyPlayerBullets.stealthForgivenessTime = 0.5f); } } } namespace ReturnUnusedCharacters.Characters.Cosmonaut.Items { public class Agitprop : PassiveItem { public float rageDuration; public float rageChanceOnBreak; public static void Init() { string itemName = "Agitprop"; string itemShortDesc = "Chains to lose"; string itemLongDesc = "A piece of revolutionary propaganda from ages long past. Even today, the inflaming slogans do not fail to incite a righteous rage in some hearts.\n\nAble to grant bursts of power to the most destructive."; Agitprop agitprop = ItemBuilder.EasyItemInit("agitprop", itemName, itemShortDesc, itemLongDesc, (ItemQuality)2, (int?)null, (string)null); agitprop.rageDuration = 4f; agitprop.rageChanceOnBreak = 0.1f; } public override void Pickup(PlayerController player) { ((PassiveItem)this).Pickup(player); PlayerControllerExt playerControllerExt = player.Ext(); playerControllerExt.OnMinorBreakableBreak = (Action)Delegate.Combine(playerControllerExt.OnMinorBreakableBreak, new Action(RageOnMinorBreak)); PlayerControllerExt playerControllerExt2 = player.Ext(); playerControllerExt2.OnMajorBreakableBreak = (Action)Delegate.Combine(playerControllerExt2.OnMajorBreakableBreak, new Action(RageOnMajorBreak)); } public void RageOnMinorBreak(MinorBreakable m, PlayerController p) { if (Random.value <= rageChanceOnBreak) { p.Ext().Rage(rageDuration); } } public void RageOnMajorBreak(MajorBreakable m, Vector2 v, PlayerController p) { if (Random.value <= rageChanceOnBreak) { p.Ext().Rage(rageDuration); } } public override void DisableEffect(PlayerController player) { if ((Object)(object)player != (Object)null) { PlayerControllerExt playerControllerExt = player.Ext(); playerControllerExt.OnMinorBreakableBreak = (Action)Delegate.Remove(playerControllerExt.OnMinorBreakableBreak, new Action(RageOnMinorBreak)); PlayerControllerExt playerControllerExt2 = player.Ext(); playerControllerExt2.OnMajorBreakableBreak = (Action)Delegate.Remove(playerControllerExt2.OnMajorBreakableBreak, new Action(RageOnMajorBreak)); } ((PassiveItem)this).DisableEffect(player); } } } namespace ReturnUnusedCharacters.API.ItemAPI { public static class ItemBuilder { public enum CooldownType { Timed, Damage, PerRoom, None } public static tk2dSpriteCollectionData ammonomiconColl = AmmonomiconController.ForceInstance.EncounterIconCollection; public static AssetBundle sharedAssets; public static Dungeon ForgeDungeonPrefab; public static PrototypeDungeonRoom BlacksmithShop; public static GenericLootTable Shop_Key_Items_01; public static GenericLootTable Shop_Truck_Items_01; public static GenericLootTable Shop_Curse_Items_01; public static GenericLootTable Shop_Goop_Items_01; public static GenericLootTable Shop_Blank_Items_01; public static GenericLootTable BlackSmith_Items_01; public static Dictionary Guns = new Dictionary(); public static Dictionary Passive = new Dictionary(); public static Dictionary Active = new Dictionary(); public static Dictionary Item = new Dictionary(); public static Dictionary ItemIds = new Dictionary(); public static void InitItemBuilder() { try { sharedAssets = ResourceManager.LoadAssetBundle("shared_auto_001"); Shop_Key_Items_01 = sharedAssets.LoadAsset("Shop_Key_Items_01"); Shop_Truck_Items_01 = sharedAssets.LoadAsset("Shop_Truck_Items_01"); Shop_Curse_Items_01 = sharedAssets.LoadAsset("Shop_Curse_Items_01"); Shop_Goop_Items_01 = sharedAssets.LoadAsset("Shop_Goop_Items_01"); Shop_Blank_Items_01 = sharedAssets.LoadAsset("Shop_Blank_Items_01"); ForgeDungeonPrefab = DungeonDatabase.GetOrLoadByName("Base_Forge"); BlacksmithShop = ForgeDungeonPrefab.PatternSettings.flows[0].AllNodes[10].overrideExactRoom; DungeonPlaceableBehaviour nonenemyBehaviour = BlacksmithShop.placedObjects[8].nonenemyBehaviour; BlackSmith_Items_01 = ((BaseShopController)((nonenemyBehaviour is BaseShopController) ? nonenemyBehaviour : null)).shopItemsGroup2; ForgeDungeonPrefab = null; ItemIds = new Dictionary(); Passive = new Dictionary(); Active = new Dictionary(); Guns = new Dictionary(); Item = new Dictionary(); } catch (Exception ex) { ETGModConsole.Log((object)ex.Message, false); ETGModConsole.Log((object)ex.StackTrace, false); } } public static PlayerOrbital EasyGuonInit(string objectPath, IntVector2 hitboxSize, float orbitRadius = 2.5f, float degreesPerSecond = 120f, int tier = 0, bool shouldRotate = false, IntVector2? additionalHitboxPixelOffset = null, CollisionLayer? overrideCollisionLayer = null) { //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0097: 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_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Expected O, but got Unknown GameObject val = Plugin.bundle.LoadAsset(objectPath); ((tk2dBaseSprite)((Component)val.transform.Find("Sprite")).GetComponent()).CurrentSprite.ReplaceShader("tk2d/CutoutVertexColorTintableTilted"); SpeculativeRigidbody val2 = val.AddComponent(); IntVector2 val3 = (IntVector2)(((??)additionalHitboxPixelOffset) ?? IntVector2.Zero); val2.PixelColliders = new List { new PixelCollider { CollisionLayer = (CollisionLayer)(((??)overrideCollisionLayer) ?? 15), ColliderGenerationMode = (PixelColliderGeneration)0, ManualOffsetX = -hitboxSize.x / 2 + val3.x, ManualOffsetY = -hitboxSize.y / 2 + val3.y, ManualWidth = hitboxSize.x, ManualHeight = hitboxSize.y } }; PlayerOrbital val4 = val.AddComponent(); val4.orbitRadius = orbitRadius; val4.orbitDegreesPerSecond = degreesPerSecond; val4.SetOrbitalTier(tier); val4.shouldRotate = shouldRotate; SpecialAssets.assets.Add((Object)(object)val); return val4; } public static T EasyItemInit(string objectPath, string itemName, string itemShortDesc, string itemLongDesc, ItemQuality quality, int? ammonomiconPlacement = null, string overrideConsoleID = null) where T : PickupObject { //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Invalid comparison between Unknown and I4 //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Invalid comparison between Unknown and I4 GameObject val = Plugin.bundle.LoadAsset(objectPath); T val2 = val.AddComponent(); ((tk2dBaseSprite)((Component)(object)val2).GetComponent()).CurrentSprite.ReplaceShader("tk2d/CutoutVertexColorTintableTilted"); SetupItem((PickupObject)(object)val2, itemName, itemShortDesc, itemLongDesc, "ccr", overrideConsoleID); ((PickupObject)val2).quality = quality; if (ammonomiconPlacement.HasValue) { ((PickupObject)(object)val2).PlaceItemInAmmonomiconAfterItemById(ammonomiconPlacement.Value); } if ((int)quality == -50 || (int)quality == -100) { ((PickupObject)(object)val2).RemovePickupFromLootTables(); } return val2; } public static PickupObject RemovePickupFromLootTables(this PickupObject po) { WeightedGameObject val = GameManager.Instance.RewardManager.GunsLootTable.defaultItemDrops.FindWeightedGameObjectInCollection(po); if (val != null) { GameManager.Instance.RewardManager.GunsLootTable.defaultItemDrops.elements.Remove(val); } WeightedGameObject val2 = GameManager.Instance.RewardManager.ItemsLootTable.defaultItemDrops.FindWeightedGameObjectInCollection(po); if (val2 != null) { GameManager.Instance.RewardManager.ItemsLootTable.defaultItemDrops.elements.Remove(val2); } return po; } public static WeightedGameObject FindWeightedGameObjectInCollection(this WeightedGameObjectCollection collection, PickupObject po) { WeightedGameObject val = collection.FindWeightedGameObjectInCollection(po.PickupObjectId); if (val == null) { val = collection.FindWeightedGameObjectInCollection(((Component)po).gameObject); } return val; } public static WeightedGameObject FindWeightedGameObjectInCollection(this WeightedGameObjectCollection collection, int id) { foreach (WeightedGameObject element in collection.elements) { if (element.pickupId == id) { return element; } } return null; } public static WeightedGameObject FindWeightedGameObjectInCollection(this WeightedGameObjectCollection collection, GameObject obj) { foreach (WeightedGameObject element in collection.elements) { if ((Object)(object)element.gameObject == (Object)(object)obj) { return element; } } return null; } public static PickupObject PlaceItemInAmmonomiconAfterItemById(this PickupObject item, int id) { item.ForcedPositionInAmmonomicon = PickupObjectDatabase.GetById(id).ForcedPositionInAmmonomicon; return item; } public static int AddToAmmonomicon(tk2dSpriteDefinition spriteDefinition) { return AddSpriteToCollection(spriteDefinition, ammonomiconColl); } public static int AddSpriteToCollection(tk2dSpriteDefinition spriteDefinition, tk2dSpriteCollectionData collection) { tk2dSpriteDefinition[] spriteDefinitions = collection.spriteDefinitions; tk2dSpriteDefinition[] array = (collection.spriteDefinitions = spriteDefinitions.Concat((IEnumerable)(object)new tk2dSpriteDefinition[1] { spriteDefinition }).ToArray()); collection.spriteNameLookupDict = null; collection.InitDictionary(); return array.Length - 1; } public static void SetupItem(PickupObject item, string name, string shortDesc, string longDesc, string idPool, string overrideConsoleId = null) { try { ((BraveBehaviour)item).encounterTrackable = null; string name2 = ((Object)item).name; ((Object)((Component)item).gameObject).name = "ccr_" + ((Object)((Component)item).gameObject).name; Databases.Items.SetupItem(item, ((Object)item).name); AddToAmmonomicon(((BraveBehaviour)item).sprite.GetCurrentSpriteDef()); ((BraveBehaviour)item).encounterTrackable.journalData.AmmonomiconSprite = ((BraveBehaviour)item).sprite.GetCurrentSpriteDef().name; GunExt.SetName(item, name); GunExt.SetShortDescription(item, shortDesc); GunExt.SetLongDescription(item, longDesc); if (item is PlayerItem) { ((PlayerItem)((item is PlayerItem) ? item : null)).consumable = false; } if (!string.IsNullOrEmpty(overrideConsoleId)) { Game.Items.Add(overrideConsoleId, item); } else { Game.Items.Add(idPool + ":" + ETGMod.ToID(name), item); } Databases.Items.AddSpecific(false, item, false, "ANY"); ItemIds.Add(name2.ToLowerInvariant(), item.PickupObjectId); PassiveItem val = (PassiveItem)(object)((item is PassiveItem) ? item : null); if (val != null) { Passive.Add(name2.ToLowerInvariant(), val); } else { PlayerItem val2 = (PlayerItem)(object)((item is PlayerItem) ? item : null); if (val2 != null) { Active.Add(name2.ToLowerInvariant(), val2); } } Item.Add(name2.ToLowerInvariant(), item); } catch (Exception ex) { ETGModConsole.Log((object)ex.Message, false); ETGModConsole.Log((object)ex.StackTrace, false); } } public static Gun SetupBasicGunComponents(GameObject obj) { //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Expected O, but got Unknown //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Expected O, but got Unknown //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02f3: Unknown result type (might be due to invalid IL or missing references) //IL_02f9: Expected O, but got Unknown //IL_02fb: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_0319: Expected O, but got Unknown //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Expected O, but got Unknown //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Expected O, but got Unknown //IL_035b: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_0379: Expected O, but got Unknown //IL_037b: Unknown result type (might be due to invalid IL or missing references) //IL_0509: Unknown result type (might be due to invalid IL or missing references) //IL_050e: Unknown result type (might be due to invalid IL or missing references) //IL_0510: Unknown result type (might be due to invalid IL or missing references) //IL_051a: Expected O, but got Unknown //IL_05c5: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Unknown result type (might be due to invalid IL or missing references) Gun val = obj.AddComponent(); val.gunName = "gun"; val.gunSwitchGroup = string.Empty; val.isAudioLoop = false; val.lowersAudioWhileFiring = false; val.gunClass = (GunClass)0; val.currentGunStatModifiers = (StatModifier[])(object)new StatModifier[0]; val.passiveStatModifiers = (StatModifier[])(object)new StatModifier[0]; val.currentGunDamageTypeModifiers = (DamageTypeModifier[])(object)new DamageTypeModifier[0]; val.barrelOffset = obj.transform.Find("Barrel"); val.muzzleOffset = null; val.chargeOffset = null; val.reloadOffset = null; val.carryPixelOffset = new IntVector2(2, 0); val.carryPixelUpOffset = new IntVector2(0, 0); val.carryPixelDownOffset = new IntVector2(0, 0); val.UsesPerCharacterCarryPixelOffsets = false; val.PerCharacterPixelOffsets = (CharacterCarryPixelOffset[])(object)new CharacterCarryPixelOffset[0]; val.leftFacingPixelOffset = new IntVector2(0, 0); val.overrideOutOfAmmoHandedness = (GunHandedness)0; val.additionalHandState = (AdditionalHandState)0; val.gunPosition = (GunPositionOverride)0; val.forceFlat = false; val.RawSourceVolley = ScriptableObject.CreateInstance(); val.RawSourceVolley.projectiles = new List(); val.singleModule = null; val.rawOptionalReloadVolley = null; val.OverrideFinaleAudio = false; val.HasFiredHolsterShot = false; val.HasFiredReloadSynergy = false; val.modifiedVolley = null; val.modifiedFinalVolley = null; val.modifiedOptionalReloadVolley = null; val.DuctTapeMergedGunIDs = null; val.PreventNormalFireAudio = false; val.OverrideNormalFireAudioEvent = string.Empty; val.ammo = 100; val.CanGainAmmo = true; val.InfiniteAmmo = false; val.UsesBossDamageModifier = false; val.CustomBossDamageModifier = 1f; val.reloadTime = 1f; val.CanReloadNoMatterAmmo = false; val.blankDuringReload = false; val.blankReloadRadius = 0f; val.reflectDuringReload = false; val.blankKnockbackPower = 0f; val.blankDamageToEnemies = 0f; val.blankDamageScalingOnEmptyClip = 1f; val.doesScreenShake = false; val.gunScreenShake = new ScreenShakeSettings(); val.directionlessScreenShake = false; val.damageModifier = 0; val.thrownObject = null; val.procGunData = null; val.activeReloadData = null; val.ClearsCooldownsLikeAWP = false; val.AppliesHoming = false; val.AppliedHomingAngularVelocity = 0f; val.AppliedHomingDetectRadius = 0f; val.shootAnimation = string.Empty; val.usesContinuousFireAnimation = false; val.reloadAnimation = string.Empty; val.emptyReloadAnimation = string.Empty; val.idleAnimation = string.Empty; val.chargeAnimation = string.Empty; val.dischargeAnimation = string.Empty; val.emptyAnimation = string.Empty; val.introAnimation = string.Empty; val.finalShootAnimation = string.Empty; val.enemyPreFireAnimation = string.Empty; val.outOfAmmoAnimation = string.Empty; val.criticalFireAnimation = string.Empty; val.dodgeAnimation = string.Empty; val.usesDirectionalIdleAnimations = false; val.usesDirectionalAnimator = false; val.preventRotation = false; VFXPool val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.muzzleFlashEffects = val2; val.usesContinuousMuzzleFlash = false; val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.finalMuzzleFlashEffects = val2; val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.reloadEffects = val2; val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.emptyReloadEffects = val2; val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.activeReloadSuccessEffects = val2; val2 = new VFXPool(); val2.type = (VFXPoolType)0; val2.effects = (VFXComplex[])(object)new VFXComplex[0]; val.activeReloadFailedEffects = val2; val.light = null; val.baseLightIntensity = 0f; val.shellCasing = null; val.shellsToLaunchOnFire = 0; val.shellCasingOnFireFrameDelay = 0; val.shellsToLaunchOnReload = 0; val.reloadShellLaunchFrame = 0; val.clipObject = null; val.clipsToLaunchOnReload = 0; val.reloadClipLaunchFrame = 0; val.prefabName = string.Empty; val.rampBullets = false; val.rampStartHeight = 0f; val.rampTime = 0f; val.IgnoresAngleQuantization = false; val.IsTrickGun = false; val.TrickGunAlternatesHandedness = false; val.PreventOutlines = false; val.alternateVolley = null; val.alternateShootAnimation = string.Empty; val.alternateReloadAnimation = string.Empty; val.alternateIdleAnimation = string.Empty; val.alternateSwitchGroup = string.Empty; val.IsHeroSword = false; val.HeroSwordDoesntBlank = false; val.StarterGunForAchievement = false; val.CanSneakAttack = false; val.SneakAttackDamageMultiplier = 1f; val.SuppressLaserSight = false; val.RequiresFundsToShoot = false; val.CurrencyCostPerShot = 1; val.weaponPanelSpriteOverride = null; val.IsLuteCompanionBuff = false; val.MovesPlayerForwardOnChargeFire = false; val.LockedHorizontalOnCharge = false; val.LockedHorizontalCenterFireOffset = 0f; val.LockedHorizontalOnReload = false; val.GoopReloadsFree = false; val.IsUndertaleGun = false; val.LocalActiveReload = false; val.UsesRechargeLikeActiveItem = false; val.ActiveItemStyleRechargeAmount = 0f; val.CanAttackThroughObjects = false; val.CanCriticalFire = false; val.CriticalChance = 1f; val.CriticalDamageMultiplier = 1f; val.CriticalMuzzleFlashEffects = new VFXPool { type = (VFXPoolType)0 }; val.CriticalReplacementProjectile = null; val.GainsRateOfFireAsContinueAttack = false; val.RateOfFireMultiplierAdditionPerSecond = 0f; val.OnlyUsesIdleInWeaponBox = false; val.DisablesRendererOnCooldown = false; val.ObjectToInstantiateOnReload = null; val.AdditionalClipCapacity = 0; val.LastShotIndex = -1; val.DidTransformGunThisFrame = false; val.CustomLaserSightDistance = 30f; val.CustomLaserSightHeight = 0.25f; val.LastLaserSightEnemy = null; val.HasEverBeenAcquiredByPlayer = false; val.HasBeenPickedUp = false; val.OverrideAngleSnap = null; val.SetBaseMaxAmmo(100); if ((Object)(object)obj.transform.Find("SecondaryHand") != (Object)null) { val.gunHandedness = (GunHandedness)1; } else { val.gunHandedness = (GunHandedness)2; } obj.AddComponent(); return val; } public static Gun EasyGunInit(string assetPath, string gunName, string gunShortDesc, string gunLongDesc, int maxAmmo, float realoadTime, VFXPool muzzleflash, string gunSwitchGroup, ItemQuality quality, GunClass gunClass, out Action finish, int? ammonomiconPlacement = null, string overrideConsoleId = null, GameObject baseObject = null) { //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Expected O, but got Unknown //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Unknown result type (might be due to invalid IL or missing references) GameObject obj = baseObject ?? Plugin.bundle.LoadAsset(assetPath); Gun gun = SetupBasicGunComponents(obj); gun.gunName = gunName; gun.DefaultSpriteID = ((BraveBehaviour)gun).sprite.spriteId; Game.Items.Add(overrideConsoleId ?? ("ccr:" + ETGMod.ToID(gunName)), (PickupObject)(object)gun); gun.NewUpdateAnimations(); string notSpapiName = ((Object)gun).name; ((Object)((Component)gun).gameObject).name = "ccr_" + ((Object)((Component)gun).gameObject).name; string text = "#" + ((Object)gun).name.Replace(" ", "").ToUpperInvariant(); ((BraveBehaviour)gun).encounterTrackable.journalData = new JournalEntry { AmmonomiconSprite = ((BraveBehaviour)gun).sprite.CurrentSprite.name, PrimaryDisplayName = text + "_ENCNAME", NotificationPanelDescription = text + "_SHORTDESC", AmmonomiconFullEntry = text + "_LONGDESC" }; AddToAmmonomicon(((BraveBehaviour)gun).sprite.CurrentSprite); ((BraveBehaviour)gun).encounterTrackable.EncounterGuid = ETGMod.RemoveUnacceptableCharactersForGUID(((Object)((Component)gun).gameObject).name); ((BraveBehaviour)gun).encounterTrackable.prerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; ((BraveBehaviour)gun).encounterTrackable.journalData.SuppressKnownState = false; GunExt.SetName((PickupObject)(object)gun, gunName); GunExt.SetShortDescription((PickupObject)(object)gun, gunShortDesc); GunExt.SetLongDescription((PickupObject)(object)gun, gunLongDesc); gun.SetBaseMaxAmmo(maxAmmo); gun.ammo = maxAmmo; ((PickupObject)gun).quality = quality; gun.gunClass = gunClass; gun.reloadTime = realoadTime; gun.gunSwitchGroup = gunSwitchGroup; if (muzzleflash != null) { gun.muzzleFlashEffects = muzzleflash; } if (ammonomiconPlacement.HasValue) { ((PickupObject)(object)gun).PlaceItemInAmmonomiconAfterItemById(ammonomiconPlacement.Value); } finish = delegate { Databases.Items.AddSpecific((PickupObject)(object)gun, false, "ANY"); ItemIds.Add(notSpapiName.ToLowerInvariant(), ((PickupObject)gun).PickupObjectId); Guns.Add(notSpapiName.ToLowerInvariant(), gun); Item.Add(notSpapiName.ToLowerInvariant(), (PickupObject)(object)gun); }; return gun; } public static T SetupBasicProjectileComponents(GameObject obj) where T : Projectile { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0029: 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_003f: Expected O, but got Unknown //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Expected O, but got Unknown SpeculativeRigidbody val = obj.AddComponent(); val.TK2DSprite = (tk2dBaseSprite)(object)obj.GetComponentInChildren(); val.PixelColliders = new List { new PixelCollider { ColliderGenerationMode = (PixelColliderGeneration)1, CollisionLayer = (CollisionLayer)4, Sprite = val.TK2DSprite } }; T val2 = obj.AddComponent(); ((Projectile)val2).baseData = new ProjectileData(); ((Projectile)val2).persistTime = 0f; ((Projectile)val2).AdditionalBurstLimits = (SynergyBurstLimit[])(object)new SynergyBurstLimit[0]; return val2; } public static T EasyProjectileInit(string assetPath, float damage, float speed, float range, float knockback, bool shouldRotate, bool ignoreDamageCaps, bool pierceMinorBreakables, int? overrideSpriteId = null, tk2dSpriteCollectionData overrideSpriteCollection = null, Anchor anchor = (Anchor)4, int? overrideColliderPixelWidth = null, int? overrideColliderPixelHeight = null, int? overrideColliderOffsetX = null, int? overrideColliderOffsetY = null) where T : Projectile { //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Invalid comparison between Unknown and I4 //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Invalid comparison between Unknown and I4 //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Invalid comparison between Unknown and I4 //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Invalid comparison between Unknown and I4 //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Invalid comparison between Unknown and I4 //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Invalid comparison between Unknown and I4 //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Invalid comparison between Unknown and I4 //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Invalid comparison between Unknown and I4 //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Invalid comparison between Unknown and I4 //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Invalid comparison between Unknown and I4 //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Invalid comparison between Unknown and I4 //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Expected O, but got Unknown //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Invalid comparison between Unknown and I4 T val = SetupBasicProjectileComponents(Plugin.bundle.LoadAsset(assetPath)); if (overrideSpriteId.HasValue) { tk2dSprite componentInChildren = ((Component)(object)val).GetComponentInChildren(); if (componentInChildren != null) { ((tk2dBaseSprite)componentInChildren).SetSprite(overrideSpriteCollection ?? Databases.Items.ProjectileCollection, overrideSpriteId.Value); } } if ((Object)(object)((Component)(object)val).GetComponentInChildren() == (Object)null) { int num = 0; if ((int)anchor == 1 || (int)anchor == 4 || (int)anchor == 7) { num = -(overrideColliderPixelHeight.GetValueOrDefault() / 2); } else if ((int)anchor == 2 || (int)anchor == 5 || (int)anchor == 8) { num = -overrideColliderPixelHeight.GetValueOrDefault(); } int num2 = 0; if ((int)anchor == 3 || (int)anchor == 4 || (int)anchor == 3) { num2 = -(overrideColliderPixelHeight.GetValueOrDefault() / 2); } else if ((int)anchor == 6 || (int)anchor == 7 || (int)anchor == 8) { num2 = -overrideColliderPixelHeight.GetValueOrDefault(); } ((BraveBehaviour)(object)val).specRigidbody.PixelColliders = new List { new PixelCollider { ColliderGenerationMode = (PixelColliderGeneration)0, CollisionLayer = (CollisionLayer)4, ManualHeight = overrideColliderPixelHeight.GetValueOrDefault(), ManualWidth = overrideColliderPixelWidth.GetValueOrDefault(), ManualOffsetX = overrideColliderOffsetX.GetValueOrDefault() + num, ManualOffsetY = overrideColliderOffsetY.GetValueOrDefault() + num2 } }; } ((Projectile)val).baseData.damage = damage; ((Projectile)val).baseData.speed = speed; ((Projectile)val).baseData.range = range; ((Projectile)val).baseData.force = knockback; ((Projectile)val).shouldRotate = shouldRotate; ((Projectile)val).shouldFlipVertically = true; ((Projectile)val).ignoreDamageCaps = ignoreDamageCaps; ((Projectile)val).pierceMinorBreakables = pierceMinorBreakables; SpecialAssets.assets.Add((Object)(object)((Component)(object)val).gameObject); return val; } public static void NewUpdateAnimations(this Gun gun) { //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_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Invalid comparison between Unknown and I4 gun.idleAnimation = gun.NewUpdateAnimation("idle"); gun.dodgeAnimation = gun.NewUpdateAnimation("dodge"); gun.introAnimation = gun.NewUpdateAnimation("intro"); gun.emptyAnimation = gun.NewUpdateAnimation("empty"); gun.shootAnimation = gun.NewUpdateAnimation("fire"); bool flag = ((BraveBehaviour)gun).spriteAnimator.Library.GetClipByName(gun.shootAnimation) != null; bool flag2 = flag; if (flag2) { WrapMode wrapMode = ((BraveBehaviour)gun).spriteAnimator.Library.GetClipByName(gun.shootAnimation).wrapMode; bool flag3 = (int)wrapMode <= 1; flag2 = flag3; } if (flag2) { gun.usesContinuousFireAnimation = true; } gun.reloadAnimation = gun.NewUpdateAnimation("reload"); gun.chargeAnimation = gun.NewUpdateAnimation("charge"); gun.outOfAmmoAnimation = gun.NewUpdateAnimation("out_of_ammo"); gun.dischargeAnimation = gun.NewUpdateAnimation("discharge"); gun.finalShootAnimation = gun.NewUpdateAnimation("final_fire"); gun.emptyReloadAnimation = gun.NewUpdateAnimation("empty_reload"); gun.criticalFireAnimation = gun.NewUpdateAnimation("critical_fire"); gun.enemyPreFireAnimation = gun.NewUpdateAnimation("enemy_pre_fire"); gun.alternateShootAnimation = gun.NewUpdateAnimation("alternate_shoot"); gun.alternateReloadAnimation = gun.NewUpdateAnimation("alternate_reload"); gun.alternateIdleAnimation = gun.NewUpdateAnimation("alternate_idle"); } public static string NewUpdateAnimation(this Gun g, string name) { string text = ((Object)g).name.ToLowerInvariant() + "_" + name; if (((BraveBehaviour)g).spriteAnimator.Library.GetClipByName(text) != null) { return text; } return ""; } public static PlayerItem SetCooldownType(this PlayerItem item, CooldownType cooldownType, float value) { item.damageCooldown = 0f; item.roomCooldown = 0; item.timeCooldown = 0f; switch (cooldownType) { case CooldownType.Timed: item.timeCooldown = value; break; case CooldownType.Damage: item.damageCooldown = value; break; case CooldownType.PerRoom: item.roomCooldown = (int)value; break; } return item; } public static PickupObject AddToFlyntShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = Shop_Key_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddToTrorkShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = Shop_Truck_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddToGooptonShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = Shop_Goop_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddToCursulaShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = Shop_Curse_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddToOldRedShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = Shop_Blank_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddToBlacksmithShop(this PickupObject po) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown WeightedGameObjectCollection defaultItemDrops = BlackSmith_Items_01.defaultItemDrops; WeightedGameObject val = new WeightedGameObject(); val.rawGameObject = null; val.pickupId = po.PickupObjectId; val.weight = 1f; val.forceDuplicatesPossible = false; val.additionalPrerequisites = (DungeonPrerequisite[])(object)new DungeonPrerequisite[0]; defaultItemDrops.Add(val); return po; } public static PickupObject AddPassiveStatModifier(this PickupObject po, StatType statType, float amount, ModifyMethod method = (ModifyMethod)0) { //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_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_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown StatModifier val = new StatModifier { amount = amount, statToBoost = statType, modifyType = method }; if (po is PlayerItem) { PlayerItem val2 = (PlayerItem)(object)((po is PlayerItem) ? po : null); if (val2.passiveStatModifiers == null) { val2.passiveStatModifiers = (StatModifier[])(object)new StatModifier[1] { val }; } else { val2.passiveStatModifiers = val2.passiveStatModifiers.Concat((IEnumerable)(object)new StatModifier[1] { val }).ToArray(); } } else if (po is PassiveItem) { PassiveItem val3 = (PassiveItem)(object)((po is PassiveItem) ? po : null); if (val3.passiveStatModifiers == null) { val3.passiveStatModifiers = (StatModifier[])(object)new StatModifier[1] { val }; } else { val3.passiveStatModifiers = val3.passiveStatModifiers.Concat((IEnumerable)(object)new StatModifier[1] { val }).ToArray(); } } else { if (!(po is Gun)) { throw new NotSupportedException("Object must be of type PlayerItem, PassiveItem or Gun!"); } Gun val4 = (Gun)(object)((po is Gun) ? po : null); if (val4.passiveStatModifiers == null) { val4.passiveStatModifiers = (StatModifier[])(object)new StatModifier[1] { val }; } else { val4.passiveStatModifiers = val4.passiveStatModifiers.Concat((IEnumerable)(object)new StatModifier[1] { val }).ToArray(); } } return po; } public static IEnumerator HandleDuration(this PlayerItem item, float duration, PlayerController user, Action OnFinish) { if (!item.IsCurrentlyActive) { item.IsCurrentlyActive = true; item.m_activeElapsed = 0f; item.m_activeDuration = duration; item.OnActivationStatusChanged?.Invoke(item); while (item.m_activeElapsed < item.m_activeDuration && item.IsCurrentlyActive) { yield return null; } item.IsCurrentlyActive = false; OnFinish?.Invoke(user); } } } } namespace ReturnUnusedCharacters.API.SoundAPI { public class CustomSwitchData { public string OriginalEventName; public string SwitchGroup; public string RequiredSwitch; public List ReplacementEvents; public uint Play(GameObject go, Func playFunc) { try { if (ReplacementEvents != null) { uint? num = null; foreach (SwitchedEvent replacementEvent in ReplacementEvents) { uint num2 = playFunc(replacementEvent, go); num = num ?? num2; } if (!num.HasValue) { num = 0u; } return num.GetValueOrDefault(); } return 0u; } catch { return 0u; } } } public static class SoundManager { private delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5); private delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6); private delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7); private delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8); public static List CustomSwitchDatas; public static List StopEvents; public static List StopEventsMusic; public static List StopEventsObjects; public static List StopEventsWeapons; private static Dictionary> Switches; private static Hook SetSwitchHook; private static Hook PostEventPlayingIdHook; private static Hook PostEventExternalSourcesHook; private static Hook PostEventExternalsHook; private static Hook PostEventCallbackCookieHook; private static Hook PostEventFlagsHook; private static Hook PostEventHook; private static bool m_initialized; private static bool origSetSwitch; public static void Init() { //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Expected O, but got Unknown //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Expected O, but got Unknown //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Expected O, but got Unknown //IL_02eb: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Expected O, but got Unknown //IL_034c: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Expected O, but got Unknown //IL_03a0: Unknown result type (might be due to invalid IL or missing references) //IL_03aa: Expected O, but got Unknown //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Expected O, but got Unknown if (!m_initialized) { CustomSwitchDatas = new List(); Switches = new Dictionary>(); StopEvents = new List(); StopEventsMusic = new List(); StopEventsObjects = new List(); StopEventsWeapons = new List(); if (SetSwitchHook == null) { SetSwitchHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("SetSwitch", new Type[3] { typeof(string), typeof(string), typeof(GameObject) }), typeof(SoundManager).GetMethod("SetSwitch", BindingFlags.Static | BindingFlags.NonPublic)); } PostEventPlayingIdHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[8] { typeof(string), typeof(GameObject), typeof(uint), typeof(EventCallback), typeof(object), typeof(uint), typeof(AkExternalSourceInfo), typeof(uint) }), typeof(SoundManager).GetMethod("PostEventPlayingId", BindingFlags.Static | BindingFlags.NonPublic)); PostEventExternalSourcesHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[7] { typeof(string), typeof(GameObject), typeof(uint), typeof(EventCallback), typeof(object), typeof(uint), typeof(AkExternalSourceInfo) }), typeof(SoundManager).GetMethod("PostEventExternalSources", BindingFlags.Static | BindingFlags.NonPublic)); PostEventExternalsHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[6] { typeof(string), typeof(GameObject), typeof(uint), typeof(EventCallback), typeof(object), typeof(uint) }), typeof(SoundManager).GetMethod("PostEventExternals", BindingFlags.Static | BindingFlags.NonPublic)); PostEventCallbackCookieHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[5] { typeof(string), typeof(GameObject), typeof(uint), typeof(EventCallback), typeof(object) }), typeof(SoundManager).GetMethod("PostEventCallbackCookie", BindingFlags.Static | BindingFlags.NonPublic)); PostEventFlagsHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[3] { typeof(string), typeof(GameObject), typeof(uint) }), typeof(SoundManager).GetMethod("PostEventFlags", BindingFlags.Static | BindingFlags.NonPublic)); PostEventHook = new Hook((MethodBase)typeof(AkSoundEngine).GetMethod("PostEvent", new Type[2] { typeof(string), typeof(GameObject) }), typeof(SoundManager).GetMethod("PostEvent", BindingFlags.Static | BindingFlags.NonPublic)); m_initialized = true; } } public static void Unload() { if (m_initialized) { CustomSwitchDatas?.Clear(); CustomSwitchDatas = null; StopEvents?.Clear(); StopEventsMusic?.Clear(); StopEventsObjects?.Clear(); StopEventsWeapons?.Clear(); StopEvents = null; StopEventsMusic = null; StopEventsObjects = null; StopEventsWeapons = null; Hook postEventPlayingIdHook = PostEventPlayingIdHook; if (postEventPlayingIdHook != null) { postEventPlayingIdHook.Dispose(); } Hook postEventExternalSourcesHook = PostEventExternalSourcesHook; if (postEventExternalSourcesHook != null) { postEventExternalSourcesHook.Dispose(); } Hook postEventExternalsHook = PostEventExternalsHook; if (postEventExternalsHook != null) { postEventExternalsHook.Dispose(); } Hook postEventCallbackCookieHook = PostEventCallbackCookieHook; if (postEventCallbackCookieHook != null) { postEventCallbackCookieHook.Dispose(); } Hook postEventFlagsHook = PostEventFlagsHook; if (postEventFlagsHook != null) { postEventFlagsHook.Dispose(); } Hook postEventHook = PostEventHook; if (postEventHook != null) { postEventHook.Dispose(); } m_initialized = false; } } public static void LoadBankFromModFolderOrZip(this BaseUnityPlugin mod, string fileName) { if (!fileName.EndsWith(".bnk")) { fileName += ".bnk"; } LoadFromPath(ETGMod.FolderPath(mod), fileName); } public static void LoadBanksFromModFolderOrZip(this BaseUnityPlugin mod) { AutoloadFromPath(ETGMod.FolderPath(mod)); } public static void LoadBankFromModProject(string path) { path = path.Replace("/", ".").Replace("\\", "."); if (!path.EndsWith(".bnk")) { path += ".bnk"; } Assembly callingAssembly = Assembly.GetCallingAssembly(); using Stream stream = callingAssembly.GetManifestResourceStream(path); if (stream != null) { string text = path.Substring(0, path.LastIndexOf('.')); string name = path; if (text.LastIndexOf('.') >= 0) { name = text.Substring(text.LastIndexOf('.') + 1); } LoadSoundbankFromStream(stream, name); } } public static void LoadBanksFromModProject() { Assembly callingAssembly = Assembly.GetCallingAssembly(); string[] manifestResourceNames = callingAssembly.GetManifestResourceNames(); foreach (string text in manifestResourceNames) { using Stream stream = callingAssembly.GetManifestResourceStream(text); if (stream != null && text.EndsWith(".bnk")) { string text2 = text.Substring(0, text.LastIndexOf('.')); string name = text; if (text2.LastIndexOf('.') >= 0) { name = text2.Substring(text2.LastIndexOf('.') + 1); } LoadSoundbankFromStream(stream, name); } } } private static void LoadFromPath(string path, string filename) { if (string.IsNullOrEmpty(path)) { return; } path = path.Replace('/', Path.DirectorySeparatorChar); path = path.Replace('\\', Path.DirectorySeparatorChar); if (!Directory.Exists(path)) { return; } List list = new List(Directory.GetFiles(path, "*.bnk", SearchOption.AllDirectories)); for (int i = 0; i < list.Count; i++) { string path2 = list[i]; using FileStream stream = File.OpenRead(path2); string fileName = Path.GetFileName(path); if (fileName == filename) { LoadSoundbankFromStream(stream, fileName); break; } } } private static void AutoloadFromPath(string path) { if (string.IsNullOrEmpty(path)) { return; } path = path.Replace('/', Path.DirectorySeparatorChar); path = path.Replace('\\', Path.DirectorySeparatorChar); if (!Directory.Exists(path)) { return; } List list = new List(Directory.GetFiles(path, "*.bnk", SearchOption.AllDirectories)); for (int i = 0; i < list.Count; i++) { string path2 = list[i]; using FileStream stream = File.OpenRead(path2); string fileName = Path.GetFileName(path); LoadSoundbankFromStream(stream, fileName); } } private static byte[] StreamToByteArray(Stream input) { byte[] array = new byte[16384]; using MemoryStream memoryStream = new MemoryStream(); int count; while ((count = input.Read(array, 0, array.Length)) > 0) { memoryStream.Write(array, 0, count); } return memoryStream.ToArray(); } private static void LoadSoundbankFromStream(Stream stream, string name) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) byte[] array = StreamToByteArray(stream); IntPtr intPtr = Marshal.AllocHGlobal(array.Length); try { Marshal.Copy(array, 0, intPtr, array.Length); uint num = default(uint); AKRESULT val = AkSoundEngine.LoadAndDecodeBankFromMemory(intPtr, (uint)array.Length, false, name, false, ref num); } finally { Marshal.FreeHGlobal(intPtr); } } public static CustomSwitchData AddCustomSwitchData(string switchGroup, string switchValue, string originalEventName, params SwitchedEvent[] replacementEvents) { if (CustomSwitchDatas == null) { Init(); } CustomSwitchData customSwitchData = new CustomSwitchData { OriginalEventName = originalEventName, ReplacementEvents = new List(replacementEvents), RequiredSwitch = switchValue, SwitchGroup = switchGroup }; CustomSwitchDatas.Add(customSwitchData); return customSwitchData; } public static void RegisterStopEvent(string eventName, params StopEventType[] types) { if (StopEvents == null) { Init(); } StopEvents.Add(eventName); for (int i = 0; i < types.Length; i++) { switch (types[i]) { case StopEventType.Music: StopEventsMusic.Add(eventName); break; case StopEventType.Weapon: StopEventsWeapons.Add(eventName); break; case StopEventType.Object: StopEventsObjects.Add(eventName); break; } } } private static uint PostEventPlayingId(Func orig, string eventName, GameObject gameObject, uint flags, EventCallback callback, object cookie, uint externals, AkExternalSourceInfo externalSources, uint playingId) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g, flags, callback, cookie, externals, externalSources, playingId)); } private static uint PostEventExternalSources(Func orig, string eventName, GameObject gameObject, uint flags, EventCallback callback, object cookie, uint externals, AkExternalSourceInfo externalSources) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g, flags, callback, cookie, externals, externalSources)); } private static uint PostEventExternals(Func orig, string eventName, GameObject gameObject, uint flags, EventCallback callback, object cookie, uint externals) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g, flags, callback, cookie, externals)); } private static uint PostEventCallbackCookie(Func orig, string eventName, GameObject gameObject, uint flags, EventCallback callback, object cookie) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g, flags, callback, cookie)); } private static uint PostEventFlags(Func orig, string eventName, GameObject gameObject, uint flags) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g, flags)); } private static uint PostEvent(Func orig, string eventName, GameObject gameObject) { return ProcessEvent(eventName, gameObject, (string s, GameObject g) => orig(s, g)); } private static uint ProcessEvent(string eventName, GameObject go, Func orig) { try { if ((Object)(object)go != (Object)null && !string.IsNullOrEmpty(eventName)) { CustomSwitchData customSwitchData = GetCustomSwitchData(go, eventName); if (customSwitchData != null) { Func playFunc = delegate(SwitchedEvent switched, GameObject val) { if (!string.IsNullOrEmpty(switched.eventName)) { bool flag = false; if (!string.IsNullOrEmpty(switched.switchGroup) && switched.switchValue != null) { SetSwitchOrig(switched.switchGroup, switched.switchValue, val); flag = true; } uint result = orig(switched.eventName, val); if (flag) { ReturnSwitch(switched.switchGroup, val); } return result; } return 0u; }; return customSwitchData.Play(go, playFunc); } if (eventName.ToLowerInvariant() == "stop_snd_all") { foreach (string stopEvent in StopEvents) { if (!string.IsNullOrEmpty(stopEvent)) { orig(stopEvent, go); } } } if (eventName.ToLowerInvariant() == "stop_mus_all") { foreach (string item in StopEventsMusic) { if (!string.IsNullOrEmpty(item)) { orig(item, go); } } } if (eventName.ToLowerInvariant() == "stop_wpn_all") { foreach (string stopEventsWeapon in StopEventsWeapons) { if (!string.IsNullOrEmpty(stopEventsWeapon)) { orig(stopEventsWeapon, go); } } } if (eventName.ToLowerInvariant() == "stop_snd_obj") { foreach (string stopEventsObject in StopEventsObjects) { if (!string.IsNullOrEmpty(stopEventsObject)) { orig(stopEventsObject, go); } } } } if (eventName == null) { return 0u; } return orig(eventName, go); } catch { return 0u; } } private static CustomSwitchData GetCustomSwitchData(GameObject go, string eventName) { try { if (string.IsNullOrEmpty(eventName)) { return null; } if ((Object)(object)go != (Object)null && Switches.ContainsKey(go) && Switches[go] != null) { foreach (CustomSwitchData customSwitchData in CustomSwitchDatas) { if (!string.IsNullOrEmpty(customSwitchData.OriginalEventName) && customSwitchData.OriginalEventName.ToLowerInvariant() == eventName.ToLowerInvariant() && !string.IsNullOrEmpty(customSwitchData.SwitchGroup) && Switches != null && Switches.ContainsKey(go) && Switches[go].ContainsKey(customSwitchData.SwitchGroup.ToLowerInvariant()) && !string.IsNullOrEmpty(customSwitchData.RequiredSwitch) && Switches[go][customSwitchData.SwitchGroup.ToLowerInvariant()] == customSwitchData.RequiredSwitch.ToLowerInvariant()) { return customSwitchData; } } } return null; } catch { return null; } } private static AKRESULT SetSwitch(Func orig, string switchGroup, string switchValue, GameObject gameObject) { //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)gameObject != (Object)null && Switches != null && !origSetSwitch) { if (!Switches.ContainsKey(gameObject)) { Switches.Add(gameObject, new Dictionary { { switchGroup.ToLower(), switchValue.ToLower() } }); } else if (Switches[gameObject] == null) { Switches[gameObject] = new Dictionary { { switchGroup.ToLower(), switchValue.ToLower() } }; } else if (!Switches[gameObject].ContainsKey(switchGroup.ToLower())) { Switches[gameObject].Add(switchGroup.ToLower(), switchValue.ToLower()); } else { Switches[gameObject][switchGroup.ToLower()] = switchValue.ToLower(); } } return orig(switchGroup, switchValue, gameObject); } private static void SetSwitchOrig(string switchGroup, string switchValue, GameObject go) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) origSetSwitch = true; AkSoundEngine.SetSwitch(switchGroup, switchValue, go); origSetSwitch = false; } private static void ReturnSwitch(string switchGroup, GameObject go) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) if (Switches != null && Switches.ContainsKey(go) && Switches[go] != null && Switches[go].ContainsKey(switchGroup)) { origSetSwitch = true; AkSoundEngine.SetSwitch(switchGroup, Switches[go][switchGroup], go); origSetSwitch = false; } } } public enum StopEventType { None, Music, Weapon, Object } public class SwitchedEvent { public string eventName; public string switchGroup; public string switchValue; public SwitchedEvent() { } public SwitchedEvent(string s) { eventName = s; switchGroup = null; switchValue = null; } public SwitchedEvent(string eventName, string switchGroup, string switchValue) { this.eventName = eventName; this.switchGroup = switchGroup; this.switchValue = switchValue; } public static implicit operator SwitchedEvent(string s) { return new SwitchedEvent(s); } } }