// Consolidated decompiled source — Azumatt-TorchesAreWarm v1.0.2 // Generated by Hexium's decompiled-source browser. Best-effort concatenation of every type in this // version's manifest — decompiler output isn't guaranteed to compile as-is. using System; using System.Runtime.CompilerServices; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UnityEngine; // ---- TorchesAreWarm.dll :: Microsoft.CodeAnalysis.EmbeddedAttribute ---- namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } // ---- TorchesAreWarm.dll :: TorchesAreWarm.TorchesAreWarmPlugin ---- namespace TorchesAreWarm { [BepInPlugin("Azumatt.TorchesAreWarm", "TorchesAreWarm", "1.0.2")] public class TorchesAreWarmPlugin : BaseUnityPlugin { internal const string ModName = "TorchesAreWarm"; internal const string ModVersion = "1.0.2"; internal const string Author = "Azumatt"; private const string ModGUID = "Azumatt.TorchesAreWarm"; private readonly Harmony _harmony = new Harmony("Azumatt.TorchesAreWarm"); public static readonly ManualLogSource TorchesAreWarmLogger = BepInEx.Logging.Logger.CreateLogSource("TorchesAreWarm"); private void Awake() { _harmony.PatchAll(); } } } // ---- TorchesAreWarm.dll :: TorchesAreWarm.PlayerCharacterCSPatch ---- namespace TorchesAreWarm { [HarmonyPatch(typeof(PlayerCharacter), "CS")] internal static class PlayerCharacterCSPatch { private static void Postfix(PlayerCharacter __instance) { if (!((Object)(object)Global.code.Player.weaponInHand == null) && (bool)(Object)(object)Global.code.Player.weaponInHand && ((Component)(object)Global.code.Player.weaponInHand).GetComponent().ItemID == RM.code.Torch.ItemID) { PlayerCharacter player = Global.code.Player; player.FireSourceHeat += 50f; } } } }