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 with Toggle", "1.1.0")]
public class GiantCoinsMod : BaseUnityPlugin
{
public static ConfigEntry<bool> ModEnabled;
public static ConfigEntry<float> 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<bool>("General", "Enable Giant Coins", true, "Toggle the mod on or off.");
CoinSize = ((BaseUnityPlugin)this).Config.Bind<float>("General", "Coin Size", 5f, "How big the coins should be.");
Harmony val = new Harmony("com.error.giantcoins");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Giant Coins Mod Loaded! Check F1 for the toggle.");
}
}
[HarmonyPatch(typeof(Coin), "Start")]
public class CoinPatch
{
[HarmonyPostfix]
private static void Postfix(Coin __instance)
{
//IL_003a: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
if (!GiantCoinsMod.ModEnabled.Value)
{
((Component)__instance).transform.localScale = Vector3.one;
return;
}
float value = GiantCoinsMod.CoinSize.Value;
((Component)__instance).transform.localScale = new Vector3(value, value, value);
SphereCollider component = ((Component)__instance).GetComponent<SphereCollider>();
if ((Object)(object)component != (Object)null)
{
component.radius *= 1.2f;
}
}
}