Please disclose if your mod was created primarily 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 Warm Torches v0.1.2
Plugins/VentureValheim.WarmTorches.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("VentureValheim.WarmTorches")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("VentureValheim.WarmTorches")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("EAF7A4D5-BA37-42A5-A062-5A1C61ECB64B")] [assembly: AssemblyFileVersion("0.1.2")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.1.2.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace VentureValheim.WarmTorches { [BepInPlugin("com.orianaventure.mod.WarmTorches", "WarmTorches", "0.1.2")] public class WarmTorchesPlugin : BaseUnityPlugin { [HarmonyPatch(typeof(EnvMan), "IsCold")] public static class Patch_EnvMan_IsCold { private static void Postfix(ref bool __result) { //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Invalid comparison between Unknown and I4 //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Invalid comparison between Unknown and I4 if (!__result) { return; } Player localPlayer = Player.m_localPlayer; if ((Object)(object)localPlayer != (Object)null) { if (((Humanoid)localPlayer).m_rightItem != null && ((Humanoid)localPlayer).m_rightItem.m_shared != null && (int)((Humanoid)localPlayer).m_rightItem.m_shared.m_itemType == 15) { __result = false; } else if (((Humanoid)localPlayer).m_leftItem != null && ((Humanoid)localPlayer).m_leftItem.m_shared != null && (int)((Humanoid)localPlayer).m_leftItem.m_shared.m_itemType == 15) { __result = false; } } } } private const string ModName = "WarmTorches"; private const string ModVersion = "0.1.2"; private const string Author = "com.orianaventure.mod"; private const string ModGUID = "com.orianaventure.mod.WarmTorches"; private readonly Harmony HarmonyInstance = new Harmony("com.orianaventure.mod.WarmTorches"); public static readonly ManualLogSource WarmTorchesLogger = Logger.CreateLogSource("WarmTorches"); public void Awake() { WarmTorchesLogger.LogInfo((object)"Feeling Hot Hot Hot!"); Assembly executingAssembly = Assembly.GetExecutingAssembly(); HarmonyInstance.PatchAll(executingAssembly); } } }