Core Keeper is now using mod.io for their official mod support Read more here
Decompiled source of NoMoHungah v0.0.1
NoSmeltingTimes.dll
Decompiled 2 years 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.Core.Logging.Interpolation; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("NoSmeltingTimes")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("My first plugin")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("NoSmeltingTimes")] [assembly: AssemblyTitle("NoSmeltingTimes")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.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 NoSmeltingTimes { [HarmonyPatch(typeof(HungerAndRunningSystem))] internal class HungerAndRunningSystemPatch { [HarmonyPatch("OriginalLambdaBody")] [HarmonyPostfix] private static void postFix(ref HungerCD ___hunger) { ___hunger.hunger = 100; } } [BepInPlugin("NoSmeltingTimes", "NoSmeltingTimes", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string PLUGIN_GUID = "com.lazackna.nomohungah"; public const string PLUGIN_NAME = "NoMoHunga"; public const string PLUGIN_VERSION = "0.1"; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Expected O, but got Unknown Harmony val = new Harmony("com.lazackna.nomohungah"); val.PatchAll(typeof(HungerAndRunningSystemPatch)); ManualLogSource logger = ((BaseUnityPlugin)this).Logger; bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val2 = new BepInExInfoLogInterpolatedStringHandler(18, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val2).AppendLiteral("Plugin "); ((BepInExLogInterpolatedStringHandler)val2).AppendFormatted<string>("NoSmeltingTimes"); ((BepInExLogInterpolatedStringHandler)val2).AppendLiteral(" is loaded!"); } logger.LogInfo(val2); } } public static class PluginInfo { public const string PLUGIN_GUID = "NoSmeltingTimes"; public const string PLUGIN_NAME = "NoSmeltingTimes"; public const string PLUGIN_VERSION = "1.0.0"; } }