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;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ScrapMultiplier")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ScrapMultiplier")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("d4f94caa-37cc-42de-9617-cd2ea0d94394")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ScrapMultiplier;
[BepInPlugin("com.VandalFandal.Mods", "Scrap Multiplier Mod", "1.0.0")]
public class ScrapMultiplierPlugin : BaseUnityPlugin
{
public static ConfigEntry<float> ScrapMultiplierConfig;
private void Awake()
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Expected O, but got Unknown
ScrapMultiplierConfig = ((BaseUnityPlugin)this).Config.Bind<float>("General", "ScrapMultiplier", 4f, "Multiplier for the amount of scrap spawned.");
Harmony val = new Harmony("com.VandalFandal.Mods.scrapmultiplier");
val.PatchAll(typeof(ScrapMultiplierRoundManager));
((BaseUnityPlugin)this).Logger.LogInfo((object)" \r\n /$$$$$$ /$$ /$$ \r\n /$$__ $$| $$| $$ \r\n| $$ \\ $$| $$| $$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ \r\n| $$$$$$$$| $$| $$ | $$ | $$ /$$__ $$| $$ | $$ /$$__ $$ /$$_____/ /$$_____/ /$$__ $$|____ $$ /$$__ $$ \r\n| $$__ $$| $$| $$ | $$ | $$| $$ \\ $$| $$ | $$| $$ \\__/ | $$$$$$ | $$ | $$ \\__/ /$$$$$$$| $$ \\ $$ \r\n| $$ | $$| $$| $$ | $$ | $$| $$ | $$| $$ | $$| $$ \\____ $$| $$ | $$ /$$__ $$| $$ | $$ \r\n| $$ | $$| $$| $$ | $$$$$$$| $$$$$$/| $$$$$$/| $$ /$$$$$$$/| $$$$$$$| $$ | $$$$$$$| $$$$$$$/ \r\n|__/ |__/|__/|__/ \\____ $$ \\______/ \\______/ |__/ |_______/ \\_______/|__/ \\_______/| $$____/ \r\n /$$ | $$ | $$ \r\n | $$$$$$/ | $$ \r\n \\______/ |__/ \r\n /$$ /$$ /$$ \r\n | $$ | $$ | $$ \r\n /$$$$$$ /$$$$$$ /$$$$$$ | $$$$$$$ /$$$$$$ | $$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ \r\n |____ $$ /$$__ $$ /$$__ $$ | $$__ $$ /$$__ $$| $$ /$$__ $$| $$__ $$ /$$__ $$ |_ $$_/ /$$__ $$ \r\n /$$$$$$$| $$ \\__/| $$$$$$$$ | $$ \\ $$| $$$$$$$$| $$| $$ \\ $$| $$ \\ $$| $$ \\ $$ | $$ | $$ \\ $$ \r\n /$$__ $$| $$ | $$_____/ | $$ | $$| $$_____/| $$| $$ | $$| $$ | $$| $$ | $$ | $$ /$$| $$ | $$ \r\n| $$$$$$$| $$ | $$$$$$$ | $$$$$$$/| $$$$$$$| $$| $$$$$$/| $$ | $$| $$$$$$$ | $$$$/| $$$$$$/ \r\n \\_______/|__/ \\_______/ |_______/ \\_______/|__/ \\______/ |__/ |__/ \\____ $$ \\___/ \\______/ \r\n /$$ \\ $$ \r\n | $$$$$$/ \r\n \\______/ \r\n \r\n \r\n /$$ /$$ /$$$$$$$ \r\n | $$ | $$ /$$_____/ \r\n | $$ | $$| $$$$$$ \r\n | $$ | $$ \\____ $$ \r\n | $$$$$$/ /$$$$$$$//$$ /$$ /$$ \r\n \\______/ |_______/|__/|__/|__/ \r\n \r\n \r\n \r\n");
}
}
[HarmonyPatch(typeof(RoundManager))]
public static class ScrapMultiplierRoundManager
{
[HarmonyPatch("SpawnScrapInLevel")]
[HarmonyPrefix]
public static void SpawnScrapInLevelPrefix(RoundManager __instance)
{
__instance.scrapAmountMultiplier = ScrapMultiplierPlugin.ScrapMultiplierConfig.Value;
}
}