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 NeverEncumbered v1.0.0
plugins/NeverEncumbered.dll
Decompiled 9 hours agousing 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: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("rollstuhltreter.valheim.neverencumbered", "Never Encumbered", "1.0.0")] public class NeverEncumberedMod : BaseUnityPlugin { public const string PluginGuid = "rollstuhltreter.valheim.neverencumbered"; public const string PluginName = "Never Encumbered"; public const string PluginVersion = "1.0.0"; internal static ConfigEntry<bool> Enable; private void Awake() { //IL_0025: Unknown result type (might be due to invalid IL or missing references) Enable = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Enable", true, "When enabled, raises the maximum carry weight to 99999. Changes take effect immediately."); new Harmony("rollstuhltreter.valheim.neverencumbered").PatchAll(); } } [HarmonyPatch(typeof(Player), "GetMaxCarryWeight")] public static class NeverEncumberedPatch { private static readonly Type PlayerType = typeof(Player); private static void Postfix(ref float __result) { if (NeverEncumberedMod.Enable != null && NeverEncumberedMod.Enable.Value) { __result = 99999f; } } }