using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using HarmonyLib; 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("GiantCoinss")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("GiantCoinss")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("7aa552e9-919e-4565-a536-57c5cfe05bc4")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace GiantCoins; [BepInPlugin("com.error.giantcoins", "Giant Coins", "1.0.1")] public class GiantCoinsMod : BaseUnityPlugin { public static ConfigEntry ModEnabled; public static ConfigEntry CoinSize; private void Awake() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown ModEnabled = ((BaseUnityPlugin)this).Config.Bind("General", "Enable Giant Coins", true, "Master toggle for the mod."); CoinSize = ((BaseUnityPlugin)this).Config.Bind("General", "Coin Size", 5f, "How big the coins should be (1 is normal)."); Harmony val = new Harmony("com.error.giantcoins"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Giant Coins Mod Loaded! Throw some change."); } } [HarmonyPatch(typeof(Coin), "Start")] public class CoinPatch { [HarmonyPostfix] private static void Postfix(Coin __instance) { //IL_0028: Unknown result type (might be due to invalid IL or missing references) if (GiantCoinsMod.ModEnabled.Value) { float value = GiantCoinsMod.CoinSize.Value; ((Component)__instance).transform.localScale = new Vector3(value, value, value); SphereCollider component = ((Component)__instance).GetComponent(); if ((Object)(object)component != (Object)null) { component.radius *= 1.1f; } } } }