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 CollectYourDead v1.0.3
LCCollectYourDead.dll
Decompiled 2 years 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 UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("LCCollectYourDead")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LCCollectYourDead")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e5414fef-ab62-4b31-b9d8-94bf927816d3")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")] [assembly: AssemblyVersion("1.0.0.0")] namespace LCCollectYourDead { [BepInPlugin("freesnow.collectyourdead", "Collect Your Dead", "1.0.0")] public class CollectYourDead : BaseUnityPlugin { private const string MOD_NAMESPACE = "freesnow.collectyourdead"; private const string MOD_NAME = "Collect Your Dead"; private const string MOD_VERSION = "1.0.0"; private readonly Harmony _harmony = new Harmony("freesnow.collectyourdead"); public ManualLogSource Logger { get; private set; } public static CollectYourDead Instance { get; private set; } private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } Logger = Logger.CreateLogSource("freesnow.collectyourdead"); Logger.LogInfo((object)"Collect Your Dead v1.0.0 is now running."); _harmony.PatchAll(); } } } namespace LCCollectYourDead.Patches { [HarmonyPatch(typeof(ShipTeleporter))] internal class ShipTeleporterPatch { [HarmonyPatch("beamUpPlayer")] [HarmonyPostfix] private static void CashEmIn(ShipTeleporter __instance) { PlayerControllerB targetedPlayer = StartOfRound.Instance.mapScreen.targetedPlayer; if ((Object)(object)targetedPlayer?.deadBody != (Object)null) { GrabbableObject grabBodyObject = targetedPlayer.deadBody.grabBodyObject; if ((Object)(object)grabBodyObject != (Object)null) { RoundManager.Instance.CollectNewScrapForThisRound(grabBodyObject); grabBodyObject.isInShipRoom = true; } } } } }