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 SharedHealthPacks v1.0.1
SharedHealthPacks.dll
Decompiled a year agousing System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using SharedHealthPacks.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("SharedHealthPacks")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SharedHealthPacks")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c54820f5-3229-4f30-a372-56712566cbcb")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace SharedHealthPacks { [BepInPlugin("Cuajitox.REPO.SharedHealthPacks", "R.E.P.O SharedHealthPacks", "1.0.0")] public class TeamBoostersBase : BaseUnityPlugin { private const string mod_guid = "Cuajitox.REPO.SharedHealthPacks"; private const string mod_name = "R.E.P.O SharedHealthPacks"; private const string mod_version = "1.0.0"; private readonly Harmony harmony = new Harmony("Cuajitox.REPO.SharedHealthPacks"); private static TeamBoostersBase instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } mls = Logger.CreateLogSource("Cuajitox.REPO.SharedHealthPacks"); mls.LogInfo((object)"SharedHealthPacks mod has been activated"); harmony.PatchAll(typeof(TeamBoostersBase)); harmony.PatchAll(typeof(ItemHealthPackUpdatePatch)); } } } namespace SharedHealthPacks.Patches { [HarmonyPatch(typeof(ItemHealthPack), "OnDestroy")] public static class ItemHealthPackUpdatePatch { [HarmonyPostfix] public static void Postfix(ItemHealthPack __instance) { List<PlayerAvatar> list = SemiFunc.PlayerGetAll(); foreach (PlayerAvatar item in list) { item.playerHealth.HealOther(__instance.healAmount, true); } } } }