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 AxeComboWhenChoppingTree v1.0.3
AxeComboWhenChoppingTree.dll
Decompiled 7 months agousing System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [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("blacks7ar")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.3")] [assembly: AssemblyInformationalVersion("1.0.3")] [assembly: AssemblyProduct("1.0.3")] [assembly: AssemblyTitle("AxeComboWhenChoppingTree")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.3.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 AxeComboWhenChoppingTree { [BepInPlugin("blacks7ar.AxeComboWhenChoppingTree", "AxeComboWhenChoppingTree", "1.0.3")] public class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(ObjectDB), "Awake")] public static class Patch { public static void Postfix(ObjectDB __instance) { //IL_0097: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)null || __instance.m_items.Count <= 0 || (Object)(object)__instance.GetItemPrefab("Wood") == (Object)null) { return; } foreach (ItemDrop item in from item in __instance.m_items select item.GetComponent<ItemDrop>() into axe where (Object)(object)axe != (Object)null && ((Object)((Component)axe).gameObject).name.ToLower().Contains("axe") select axe) { item.m_itemData.m_shared.m_attack.m_resetChainIfHit = (DestructibleType)0; } } } private const string modGUID = "blacks7ar.AxeComboWhenChoppingTree"; public const string modName = "AxeComboWhenChoppingTree"; public const string modAuthor = "blacks7ar"; public const string modVersion = "1.0.3"; public const string modLink = "https://valheim.thunderstore.io/package/blacks7ar/AxeComboWhenChoppingTree/"; private static readonly Harmony _harmony = new Harmony("blacks7ar.AxeComboWhenChoppingTree"); public void Awake() { Assembly executingAssembly = Assembly.GetExecutingAssembly(); _harmony.PatchAll(executingAssembly); } } }