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 ReducedJumpStamina v1.0.0
ReducedJumpStamina.dll
Decompiled 2 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyVersion("0.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 ReducedJumpStamina { [BepInPlugin("ReducedJumpStamina", "ReducedJumpStamina", "1.0.0")] [BepInProcess("valheim.exe")] [BepInIncompatibility("NoJumpStamina")] public class Plugin : BaseUnityPlugin { public const string PluginGuid = "ReducedJumpStamina"; public const string PluginName = "ReducedJumpStamina"; public const string PluginVersion = "1.0.0"; public const float JumpStaminaCost = 2f; private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("ReducedJumpStamina").PatchAll(typeof(Plugin).Assembly); } } [HarmonyPatch(typeof(Player), "Awake")] internal static class PlayerAwakePatch { private static void Postfix(Player __instance) { ((Character)__instance).m_jumpStaminaUsage = 2f; } } }