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 UpgradedSuit v1.0.0
Healing mod.dll
Decompiled a year agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Healing_mod.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Healing mod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Healing mod")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a70c6449-a7ad-45e2-b473-ba3bad61a5e9")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace Healing_mod { [BepInPlugin("River.HealingMod", "Healing Mod", "1.0.0.0")] public class HealingModBase : BaseUnityPlugin { private const string modGUID = "River.HealingMod"; private const string modName = "Healing Mod"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("River.HealingMod"); private static HealingModBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("River.HealingMod"); mls.LogInfo((object)"HealingSuitReady to rumble"); harmony.PatchAll(typeof(HealingModBase)); harmony.PatchAll(typeof(PlayerControllerBPatch)); } } } namespace Healing_mod.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { public static float bat = 100f; [HarmonyPatch("Update")] [HarmonyPostfix] private static void UpgradedsuitpluspowerlegsPatch(ref int ___health, ref bool ___isInsideFactory, ref bool ___isInHangarShipRoom, ref float ___minVelocityToTakeDamage) { ___minVelocityToTakeDamage = bat / 2f; if (!Input.GetKey((KeyCode)104)) { return; } if (!___isInsideFactory) { if (!___isInHangarShipRoom) { bat += 1f; } else { bat += 0.5f; } if (bat > 100f) { bat = 100f; } } if (___health < 100 && bat > 0f) { bat -= 1f; ___health++; } } } }