using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Jotunn.Utils; using Microsoft.CodeAnalysis; using UnboundLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")] [assembly: AssemblyVersion("0.0.0.0")] [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 VanillaArtFixes { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.rsmind.rounds.vanillaartfixes", "Vanilla Art Fixes", "1.0.4")] [BepInProcess("Rounds.exe")] public class VanillaArtFixes : BaseUnityPlugin { private const string ModId = "com.rsmind.rounds.vanillaartfixes"; private const string ModName = "Vanilla Art Fixes"; public const string Version = "1.0.4"; public const string ModInitials = "VAF"; private Dictionary themeDict = new Dictionary { { "Big Bullet", (CardThemeColorType)0 }, { "Buckshot", (CardThemeColorType)1 }, { "DrillAmmo", (CardThemeColorType)3 }, { "Echo", (CardThemeColorType)2 }, { "Implode", (CardThemeColorType)8 }, { "Leach", (CardThemeColorType)6 }, { "Saw", (CardThemeColorType)3 }, { "Shockwave", (CardThemeColorType)0 }, { "TasteOfBlood", (CardThemeColorType)4 }, { "Teleport", (CardThemeColorType)8 } }; public static bool Debug; internal static AssetBundle assets; public static VanillaArtFixes instance { get; private set; } private void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown Unbound.RegisterClientSideMod("com.rsmind.rounds.vanillaartfixes"); Harmony val = new Harmony("com.rsmind.rounds.vanillaartfixes"); val.PatchAll(); } private void Start() { //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) instance = this; assets = AssetUtils.LoadAssetBundleFromResources("vanillaartfixes", typeof(VanillaArtFixes).Assembly); if ((Object)(object)assets == (Object)null) { Debug.Log((object)"Failed to load Fancy Vanilla Icons asset bundle"); } CardInfo[] cards = CardChoice.instance.cards; foreach (CardInfo val in cards) { if (themeDict.ContainsKey(((Object)((Component)val).gameObject).name)) { val.colorTheme = themeDict[((Object)((Component)val).gameObject).name]; } val.cardArt = assets.LoadAsset(((Object)val.cardArt).name); } } } }