using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
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("Valheim Mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Valheim Mod")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("30677dac-3934-4bbf-a7db-8a762197c56a")]
[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 Valheim_Mod;
[BepInPlugin("rjf.ValheimMod", "Valheim Mod", "1.0.1")]
[BepInProcess("valheim.exe")]
public class ValheimMod : BaseUnityPlugin
{
[HarmonyPatch(typeof(InventoryGui), "UpdateRecipe")]
private class Craft_Patch
{
private static void Prefix(ref InventoryGui __instance)
{
__instance.m_craftDuration = 0.01f;
}
}
private readonly Harmony harmony = new Harmony("rjf.ValheimMod");
private void Awake()
{
harmony.PatchAll();
}
}