Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of FoxLover v1.0.0
FoxLover.dll
Decompiled 3 weeks agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("FoxLover")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("we love the stupid fluffy fox")] [assembly: AssemblyFileVersion("0.0.0.0")] [assembly: AssemblyInformationalVersion("0.0.0")] [assembly: AssemblyProduct("FoxLover")] [assembly: AssemblyTitle("FoxLover")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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 FoxLover { [BepInPlugin("butterystancakes.lethalcompany.foxlover", "Fox Lover", "1.0.0")] public class Plugin : BaseUnityPlugin { private const string PLUGIN_GUID = "butterystancakes.lethalcompany.foxlover"; private const string PLUGIN_NAME = "Fox Lover"; private const string PLUGIN_VERSION = "1.0.0"; internal static ManualLogSource Logger; internal static ConfigEntry<int> configIterations; internal static ConfigEntry<bool> configIgnoreCanSpawnMold; private void Awake() { //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) Logger = ((BaseUnityPlugin)this).Logger; configIterations = ((BaseUnityPlugin)this).Config.Bind<int>("Misc", "Iterations", 5, new ConfigDescription("All moons with fewer growth stages than this value will immediately get increased to this amount.", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 35), Array.Empty<object>())); configIgnoreCanSpawnMold = ((BaseUnityPlugin)this).Config.Bind<bool>("Misc", "Ignore canSpawnMold", false, "This will force moons which disable the \"canSpawnMold\" flag (including Gordion) to grow shrouds anyway."); new Harmony("butterystancakes.lethalcompany.foxlover").PatchAll(); Logger.LogInfo((object)"Fox Lover v1.0.0 loaded"); } } [HarmonyPatch] internal static class Patches { [HarmonyPatch(typeof(StartOfRound), "LoadPlanetsMoldSpreadData")] [HarmonyPostfix] private static void StartOfRound_Post_LoadPlanetsMoldSpreadData(StartOfRound __instance) { SelectableLevel[] levels = __instance.levels; foreach (SelectableLevel val in levels) { if ((val.canSpawnMold || Plugin.configIgnoreCanSpawnMold.Value) && val.moldSpreadIterations < Plugin.configIterations.Value) { val.moldSpreadIterations = Plugin.configIterations.Value; } } } } public static class PluginInfo { public const string PLUGIN_GUID = "FoxLover"; public const string PLUGIN_NAME = "FoxLover"; public const string PLUGIN_VERSION = "0.0.0"; } }