using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
[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("SlowHunger")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+756fd921f884642e8973fc158b15620d99b55312")]
[assembly: AssemblyProduct("SlowHunger")]
[assembly: AssemblyTitle("SlowHunger")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SlowHunger;
[BepInPlugin("t0y9n.peak.slowhunger", "SlowHunger", "1.0.0")]
public sealed class Plugin : BaseUnityPlugin
{
internal const string Guid = "t0y9n.peak.slowhunger";
internal static ConfigEntry<float> HungerRate;
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_0042: Unknown result type (might be due to invalid IL or missing references)
HungerRate = ((BaseUnityPlugin)this).Config.Bind<float>("General", "HungerRate", 0.5f, new ConfigDescription("Multiplier for hunger gained over time. 1 keeps the game default, 0.5 halves it, and 0 stops it.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 1f), Array.Empty<object>()));
new Harmony("t0y9n.peak.slowhunger").PatchAll(typeof(Plugin).Assembly);
((BaseUnityPlugin)this).Logger.LogInfo((object)("SlowHunger 1.0.0 loaded. HungerRate = " + HungerRate.Value));
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
internal static class HungerRatePatch
{
private static void Postfix(ref float __result)
{
__result *= Plugin.HungerRate.Value;
}
}